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 3 Next »

Figures

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.

Tables

All tables, or content styled with the Table elements of the paragraph styles palette, must be in Word table format. Otherwise, the export is likely to produce parsing errors. All content for each table should be in a single Word table.

Splitting content for a single table across multiple Word tables will likely result in incorrect XML and may result in parsing errors.

Tables will be exported to XHTML format in the XML file. We recommend using the XHTML table model, because it has stronger support for borders and shading.

The more formatting you set correctly in Word, the more that formatting will be correctly reflected in the XML (cell alignment, column widths, cell borders, cell shading). Note that eXtyles supports the use of the decimal tab in Word tables, as well as left- and right-aligned and centered content.

Table Formatting Example

This relatively simple table has been set up with the following formatting options in Word:

  • column headings are centered

  • the contents of columns 1-4 are left aligned

  • column 5 is aligned on a decimal tab

  • column 6 is left aligned

  • row 2 has grey shading applied

Note that the cells in the top row carry the TableHead style, while the other rows are styled as TableBody.

Site

PID

Latitude (N)

Longitude (W)

Average error (m)

Survey methodology

Mad River

LV0346

40° 51' 54"

124° 09' 00"

0.002

Base Station

San Pablo

JT0321

38° 06' 26"

122° 17' 13"

0.03

RTK Network

Bolinas

BOLYBAY01*

37° 55' 50"

122° 41' 20"

0.001

Base Station

Morro

FV1099

35° 22' 02"

120° 50' 02"

0.01

Base Station

Pt. Mugu

EW6523

34° 07' 00"

119° 05' 08"

0.06

RTK Network

Newport

AD9435

33° 39' 52"

117° 52' 31"

0.01

RTK Network

Tijuana

B899

32° 35’ 38’’

117° 07’ 21’’

0.04

Base Station

<table-wrap id="t01" position="float">
<table rules="groups">
<col width="12.69%"/>
<col width="17.43%"/>
<col width="14.05%"/>
<col width="15.5%"/>
<col width="18.72%"/>
<col width="21.61%"/>
<thead>
<tr>
<td valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Site</td>
<td valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">PID</td>
<td valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Latitude (N)</td>
<td valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Longitude (W)</td>
<td valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Average error (m)</td>
<td valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Survey methodology</td>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left" style="border-top: solid 0.50pt" scope="row">Mad River</td>
<td valign="top" align="left" style="border-top: solid 0.50pt">LV0346</td>
<td valign="top" align="left" style="border-top: solid 0.50pt">40° 51' 54"</td>
<td valign="top" align="left" style="border-top: solid 0.50pt">124° 09' 00"</td>
<td valign="top" align="char" char="." style="border-top: solid 0.50pt">0.002</td>
<td valign="top" align="left" style="border-top: solid 0.50pt">Base Station</td>
</tr>
<tr>
<td valign="top" align="left" style="background-color:rgb(174,170,170)" scope="row">San Pablo</td>
<td valign="top" align="left" style="background-color:rgb(174,170,170)">JT0321</td>
<td valign="top" align="left" style="background-color:rgb(174,170,170)">38° 06' 26"</td>
<td valign="top" align="left" style="background-color:rgb(174,170,170)">122° 17' 13"</td>
<td valign="top" align="char" char="." style="background-color:rgb(174,170,170)">0.03</td>
<td valign="top" align="left" style="background-color:rgb(174,170,170)">RTK Network</td>
</tr>
<tr>
<td valign="top" align="left" scope="row">Bolinas</td>
<td valign="top" align="left">BOLYBAY01*</td>
<td valign="top" align="left">37° 55' 50"</td>
<td valign="top" align="left">122° 41' 20"</td>
<td valign="top" align="char" char=".">0.001</td>
<td valign="top" align="left">Base Station</td>
</tr>
<tr>
<td valign="top" align="left" scope="row">Morro</td>
<td valign="top" align="left">FV1099</td>
<td valign="top" align="left">35° 22' 02"</td>
<td valign="top" align="left">120° 50' 02"</td>
<td valign="top" align="char" char=".">0.01</td>
<td valign="top" align="left">Base Station</td>
</tr>
<tr>
<td valign="top" align="left" scope="row">Pt. Mugu</td>
<td valign="top" align="left">EW6523</td>
<td valign="top" align="left">34° 07' 00"</td>
<td valign="top" align="left">119° 05' 08"</td>
<td valign="top" align="char" char=".">0.06</td>
<td valign="top" align="left">RTK Network</td>
</tr>
<tr>
<td valign="top" align="left" scope="row">Newport</td>
<td valign="top" align="left">AD9435</td>
<td valign="top" align="left">33° 39' 52"</td>
<td valign="top" align="left">117° 52' 31"</td>
<td valign="top" align="char" char=".">0.01</td>
<td valign="top" align="left">RTK Network</td>
</tr>
<tr>
<td valign="top" align="left" style="border-bottom: solid 0.50pt" scope="row">Tijuana</td>
<td valign="top" align="left" style="border-bottom: solid 0.50pt">B899</td>
<td valign="top" align="left" style="border-bottom: solid 0.50pt">32° 35’ 38’’</td>
<td valign="top" align="left" style="border-bottom: solid 0.50pt">117° 07’ 21’’</td>
<td valign="top" align="char" char="." style="border-bottom: solid 0.50pt">0.04</td>
<td valign="top" align="left" style="border-bottom: solid 0.50pt">Base Station</td>
</tr>
</tbody></table></table-wrap>

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.