Table Styles

This page describes how to style the various elements of tables in your Word document. All tables, or content styled with the Table elements of the paragraph styles palette, must be in Word table format. Otherwise, export is likely to produce parsing errors.

Table Title, Table Title Continued, Table Accessibility Caption

The styles Table Title, Table Title Continued and Table Accessibility Caption are all used for elements of the overall table caption, including the table number (if present). This content can be placed either inside or outside the Word table structure.

Table Title should contain the table number and the first paragraph of the table caption. The table number should be separated from the caption by some sort of strong separator, such as a period, a colon, or a tab. If the caption extends to a second or subsequent paragraph, these paragraphs should be styled using Table Title Continued.

The Table Accessibility Caption style is provided to accommodate a description of the table and its contents for the use of visually impaired users. Because the text is intended to be read by screenreaders, it must contain plain text only, with no face markup or other non-textual content.

Table Head, Table Body, Table Footnote

Table Head is used for the column head cells at the top of the columns of the Word table. Table Body is used for the table body cells. Table Footnote is used for table footnotes. This style also includes paragraphs, such as table legends, that fall after the table body and span the width of the table but are not cited from within the table as a table footnote. Content styled as Table Footnote may be inside or outside the Word table structure. For ease of table styling and to ensure that all paragraphs in the document are properly tagged, Inera recommends that table footnotes be placed after the table (i.e., outside of the table grid).

All tables, or content styled with the Table elements of the paragraph styles palette, must be in Word table format. Otherwise, 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.

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.

More detailed information about setting up tables in Word to generate optimal XML can be found here.

Table and Box Location in the Word File 

Numbered tables and boxes may be located in the Word file either at the end of the file or just after the paragraph where the item is first cited. In either situation, eXtyles NLM will correctly place the table or box in the XML file as set up in your configuration. 

In the case of unnumbered and/or uncited tables and boxes, the table or box must be placed in the Word file just after the paragraph where it should appear in the PDF file or HTML page.

Example

This illustration is an excerpt from the sample document: Sample 2_Book Review.docx

JATS XML Example
<table-wrap id="t1" position="float">
	<label>Table 1</label>
	<caption>
		<title>FIFA World Cup tournaments</title>
		<p>Hosts, winners and runners-up are shown. The tournament was not held in 1942 or 1946.</p>
	</caption>
	<long-desc>The table lists the hosts, winners and runners-up of each FIFA World Cup tournament from the first competition in 1930 to the tournament held in Brazil in 2014.</long-desc>
	<table frame="hsides" rules="groups">
		<col width="11.98%"/>
		<col width="35.06%"/>
		<col width="26.04%"/>
		<col width="26.92%"/>
		<thead>
			<tr>
				<th valign="top" align="left" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Year</th>
				<th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Host</th>
				<th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Winner</th>
				<th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Runner-up</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td valign="top" align="left" style="border-top: solid 0.50pt" scope="row">1930</td>
				<td valign="top" align="left" style="border-top: solid 0.50pt">Uruguay</td>
				<td valign="top" align="left" style="border-top: solid 0.50pt">Uruguay</td>
				<td valign="top" align="left" style="border-top: solid 0.50pt">Argentina</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1934</td>
				<td valign="top" align="left">Italy</td>
				<td valign="top" align="left">Italy</td>
				<td valign="top" align="left">Czechoslovakia</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1938</td>
				<td valign="top" align="left">France</td>
				<td valign="top" align="left">Italy</td>
				<td valign="top" align="left">Hungary</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1950</td>
				<td valign="top" align="left">Brazil</td>
				<td valign="top" align="left">Uruguay</td>
				<td valign="top" align="left">Brazil</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1954</td>
				<td valign="top" align="left">Switzerland</td>
				<td valign="top" align="left">West Germany</td>
				<td valign="top" align="left">Hungary</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1958</td>
				<td valign="top" align="left">Sweden</td>
				<td valign="top" align="left">Brazil</td>
				<td valign="top" align="left">Sweden</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1962</td>
				<td valign="top" align="left">Chile</td>
				<td valign="top" align="left">Brazil</td>
				<td valign="top" align="left">Czechoslovakia</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1966</td>
				<td valign="top" align="left">England</td>
				<td valign="top" align="left">England</td>
				<td valign="top" align="left">West Germany</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1970</td>
				<td valign="top" align="left">Mexico</td>
				<td valign="top" align="left">Brazil</td>
				<td valign="top" align="left">Italy</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1974</td>
				<td valign="top" align="left">West Germany</td>
				<td valign="top" align="left">West Germany</td>
				<td valign="top" align="left">Netherlands</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1978</td>
				<td valign="top" align="left">Argentina</td>
				<td valign="top" align="left">Argentina</td>
				<td valign="top" align="left">Netherlands</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1982</td>
				<td valign="top" align="left">Spain</td>
				<td valign="top" align="left">Italy</td>
				<td valign="top" align="left">West Germany</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1986</td>
				<td valign="top" align="left">Mexico*</td>
				<td valign="top" align="left">Argentina</td>
				<td valign="top" align="left">West Germany</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1990</td>
				<td valign="top" align="left">Italy</td>
				<td valign="top" align="left">West Germany</td>
				<td valign="top" align="left">Argentina</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1994</td>
				<td valign="top" align="left">United States</td>
				<td valign="top" align="left">Brazil</td>
				<td valign="top" align="left">Italy</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">1998</td>
				<td valign="top" align="left">France</td>
				<td valign="top" align="left">France</td>
				<td valign="top" align="left">Brazil</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">2002</td>
				<td valign="top" align="left">South Korea &amp; Japan</td>
				<td valign="top" align="left">Brazil</td>
				<td valign="top" align="left">Germany</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">2006</td>
				<td valign="top" align="left">Germany</td>
				<td valign="top" align="left">Italy</td>
				<td valign="top" align="left">France</td>
			</tr>
			<tr>
				<td valign="top" align="left" scope="row">2010</td>
				<td valign="top" align="left">South Africa</td>
				<td valign="top" align="left">Spain</td>
				<td valign="top" align="left">Netherlands</td>
			</tr>
			<tr>
				<td valign="top" align="left" style="border-bottom: solid 0.50pt" scope="row">2014</td>
				<td valign="top" align="left" style="border-bottom: solid 0.50pt">Brazil</td>
				<td valign="top" align="left" style="border-bottom: solid 0.50pt">Germany</td>
				<td valign="top" align="left" style="border-bottom: solid 0.50pt">Argentina</td>
			</tr>
		</tbody>
	</table>
	<table-wrap-foot>
		<p>*The 1986 tournament was originally awarded to Colombia.</p>
	</table-wrap-foot>
</table-wrap>

© 2021 Atypon Systems. All Rights Reserved.

Icons made by Freepik from Flaticon are licensed under CC 3.0 BY