kyoxiao / pandoc

Automatically exported from code.google.com/p/pandoc
GNU General Public License v2.0
0 stars 0 forks source link

Images as a figure with a caption in DocBook #267

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Pandoc 1.6 exports images in DocBook very strange. The captions are set wrong. 
I have to use:

cat text.db | sed -e 's/<inlinemediaobject>/<figure>/g' -e
's/<imageobject>//g' -e 's/<objectinfo>//g' -e
's/<\/objectinfo>/<mediaobject><imageobject>/g' -e
's/<\/inlinemediaobject>/<\/mediaobject><\/figure>/g'  > text.db

The OBJECTINFO element seems to be worthless and the included title
will be never shown:
http://www.docbook.org/tdg/en/html/objectinfo.html

The way to include an image with caption correctly is described here:
http://www.ibiblio.org/godoy/sgml/docbook/howto/using-docbook.html#INSERTING-PIC
TURES

Original issue reported on code.google.com by schm...@gmx.de on 10 Nov 2010 at 5:05

GoogleCodeExporter commented 8 years ago
Dup of 266

Original comment by fiddloso...@gmail.com on 24 Nov 2010 at 3:39