XML technologies / DocBook / Block elements / Graphics

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

Graphics come in bitmap and vector formats. Bitmap formats include JPEG, BMP, PNG, GIF and others. Vector formats include EPS, PostScript, CGM, possibly PDF, SVG and others.

DocBook does not restrict which bitmap or vector graphics you use. Depending on the output format or application, one format may be preferable or required. If converting to both HTML and PDF, vector graphics are often better for print. For HTML, choose a format suited to its lower resolution requirements.

To insert graphics, DocBook provides the elements figure, informalfigure, mediaobject and screenshot. These insert block graphics. For graphics within text, use inlinemediaobject.

Note: Deprecated elements graphic and inlinegraphic
DocBook 4 and earlier also provide the elements graphic and inlinegraphic, which were removed in DocBook 5. Both are deprecated. New version 4 documents should use mediaobject instead, to simplify future conversion to DocBook 5.

  

   

back to top