Next / Previous / Contents / Shipman's homepage

11.4. Inline graphics

To include an inline figure in the middle of a paragraph:

  1. Use the inlinemediaobject element.

  2. Inside this element, place an imageobject to specify the image. The format of this element is described in Section 11.1, “Formal and informal figures”.

  3. Include a textobject element with text that will appear in situations where the image cannot be displayed, such as browsers for the visually impaired.

Here is an example:

Use this icon Icon for circle by diameter to create a circle by specifying its diameter.

And here is the source for this paragraph:

    <para>
      Use this icon
      <inlinemediaobject>
        <imageobject>
          <imagedata fileref='circle-2.jpg'/>
        </imageobject>
        <textobject>
          <phrase>Icon for circle by diameter</phrase>
        </textobject>
      </inlinemediaobject>
      to create a circle by specifying its diameter.
    </para>