NPS eXtyles User Guide

Figures and Tables

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.

eXtyles for National Parks will export images from the Word file during document Activation.

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.

Figure Captions

eXtyles includes four distinct paragraph styles for figure captions: Figure Caption, Figure Caption Continued, TOC Figure Caption, and Figure Alt Text.

eXtyles does not require that all of these versions of the caption be used for every image in the document: only Figure Caption is required. Whether the other caption styles are used is at the discretion of the National Parks.

  • Figure Caption is used to style the full caption of the image as it will appear next to the image in the body of the document.

  • Figure Caption Continued is used to style subsequent paragraphs of a caption, if there are more than one. Do not use Figure Caption to style additional paragraphs of the figure caption.

  • TOC Figure Caption is the version of the caption that will be used to generate the list of figures in the front matter in the PDF. This caption is often (but does not have to be) different from the primary caption. This paragraph style, when used, will export to <p content-type="toc"> in the <caption> for the figure in the XML (see the following sample).

  • Figure Alt Text is the version of the caption that is written to achieve accessibility standards. For example, this version of the caption is what will be read by screen readers, and so on. This paragraph style, when used, will export to <alt-text> in the <caption> for the figure in the XML (see the following sample).

  •  

Local formatting such as bold and italic can not be used in an accessibility caption for a figure. To avoid parsing errors, be sure to proof carefully captions that are styled as Figure Alt Text and remove any local formatting before XML export.

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

<fig id="fig001" position="float" fig-type="figure"> <label>Figure 1</label> <caption> <p>Location of coastal areas in Gateway National Recreation Area monitored according to the 1D shoreline position and the 2D dune/beach profile protocols.</p> <p>A second paragraph of the figure caption.</p> <p content-type="toc">Figure 1. Table of contents version of the caption.</p> </caption> <alt-text>This is the alt text for Figure 1, which will describe the image for screen readers.</alt-text> <graphic xlink:href="jms0912_fig001"/> </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_fig001

Unnumbered Figure

jms0912_figa

where jms0912 is whatever value was entered into the Object ID Prefix box in the Document Information dialog and fig001 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_fig001"/>

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 (fig001) 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.

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 Titles

eXtyles includes two distinct styles for table titles: Table Title and TOC Table Title. As with figure captions, titles styled as TOC Table Title will be used to generate a list of tables in the front matter in the PDF.

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

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>

Â