5.1.��Graphics as Figures

A How-To Recipe

Jeff Elpern


Task

Stuff goes here

Figure��1.��Example of Simple Image/Graphic with Figure Number and Title

Example of Simple Image/Graphic with Figure Number and Title

Solution

Stuff goes here.

<figure> 
   <title>Attachments for Multi-channel Publishing</title>
    <mediaobject> 
        <imageobject> 
            <imagedata
                fileref="cie-appbar-w450.png"
                format="PNG"/> 
        </imageobject>
    </mediaobject>
</figure>            

1

<figure> is the standard DocBook container element to create a numbered figure with title. In this example the <figure> element refers to a graphic images .

2

The <mediaobject> element supports one or multiple images via the imageobject element. In this basic markup fragment one <mediaobject> is used for all publishing channels. (see the section called ���Graphics for Multi-Channel Publishing��� for hi-quality print and web quality html publishing of the same image.)

3

The <imageobject> is a wrapper element for the imageobject and holds the associated meta-information about the image.

4

the <imagedata> element points to the graphic image file via the fileref attribute. In the SQI microPublishing the file is an attachment to the current page. Here file cie-appbar-w450.png is the application bar graphic.

Markup Fragment

Listed below is a "clean" (without callout numbers) DocBook markup fragment for presenting an image with a figure number and title. Just copy this markup fragment and past into you xml file at a point where <figure> is a valid element.

Figure��2.��Markup Fragment for Graphic with Figure Number and Title

<figure>
   <title>??? figure title goes here ???</title>
    <mediaobject>
        <imageobject>
            <imagedata
                fileref="image???.png"
                format="PNG"/>
        </imageobject>
    </mediaobject>
</figure>            

Discussion

Stuff goes here

Reference Material

Univ/CIE/KA/StrucDoc/HowToBookProto/ChapGraphics/figure (last edited 2015-03-06 18:11:25 by localhost)