NPS eXtyles User Guide

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

When images appear in the Word document they should be either removed or, if retained, styled with the Non-XML Text paragraph style from the eXtyles palette.

For the image captions it is not necessary to have separate paragraph styles for the number of the figure, table, or box and the rest of the caption. In the XML, eXtyles will automatically separate the number from the rest of the caption paragraph, provided that the display item is referred to by a recognized name (e.g., Figure, Fig., Example, Illustration, Table, Box, Video, etc.) and a consistent character (e.g., period, colon) is used to separate the two parts (i.e., caption and label). Special allowance can be made for captions that span more than one paragraph.

The following figure caption paragraphs in Word will yield the subsequent XML.

<fig id="fig01" position="float" fig-type="figure">
<label>Figure 1</label><caption><p>Map of all overflights extending 25 miles from the Mount Rushmore perimeter.</p><p>Flight tracks are black color with a line width of 0.3pt and a transparency of 50%.</p></caption>
<long-desc>Figure 1 Map of all overflights extending 25 miles from the Mount Rushmore perimeter and then additional alternative accessibility text describing the image.</long-desc>
<graphic xlink:href="jms0912_fig01"/>
</fig>

Figure Numbers and the <graphic> Element

In the XML eXtyles will generate a unique ID for each figure in the document, both numbered and unnumbered. It is important that this figure ID in the XML match exactly the file name of the image, which is external to the XML, so that an automated InDesign layout system can pull in the correct image.

Numbered Figure

jms0912_fig01

Unnumbered Figure

jms0912_figa

where jms0912 is whatever value was entered into the Object ID Prefix box in the Document Information dialog and fig01 and figa are generated by eXtyles during XML export.

The <graphic> Element

eXtyles will automatically generate unique figure IDs during XML export. The IDs will be placed in a <graphic> element in the XML that looks like this:

<graphic xlink:href="jms0912_fig01"/>

This information is then used to pull in and place the correct image during layout.

The information for how these IDs are constructed comes from different places in the document; specifically, the Document Information dialogue and the Word file. The prefix for the ID (jms0912) comes from the Object ID Prefix field in the Document Information dialogue. The figure number (fig01) comes from the figure label in the caption in the Word document (e.g., Figure 1. Caption text).

Figure Caption Location in the Word File

Figure captions must be located just after the paragraph where each figure is first cited. If captions have been collected at the end of the document, they will need to be moved to the proper place within the document before you export to XML.

Similarly, in the case of unnumbered figures, the caption must be placed in the Word file just after the paragraph where the figure should appear in the PDF file or HTML page.

  • No labels