Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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). Note that eXtyles supports the use of the decimal tab in Word tables, as well as left- and right-aligned and centered content.

Alignment

This relatively simple table has been set up with the headings of columns 2 and 3 centered and with the contents of column 1 left aligned, column 2 centered and column 3 aligned on a decimal tab. The cells in the top row carry the Table_Head style, while the other rows are styled as Table_ Body.

Image Added


Code Block
languagexml
themeRDark
titleJATS Example XML
collapsetrue
<table-wrap id="t1" position="float">
<label>Table 1</label>
<caption><title>Exeter talked in agreed spirit no he unable do</title></caption>
<table frame="hsides" rules="groups">
<col width="29.49%"/>
<col width="41.29%"/>
<col width="29.22%"/>
<thead>
<tr>
<th valign="top" align="left" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Strain</th>
<th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">G+C content (mol%)</th>
<th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Similarity (%)</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left" style="border-top: solid 0.50pt" scope="row">A-123</td>
<td valign="top" align="center" style="border-top: solid 0.50pt">68.4</td>
<td valign="top" align="char" char="." style="border-top: solid 0.50pt">100</td>
</tr>
<tr>
<td valign="top" align="left" scope="row">45720</td>
<td valign="top" align="center">70.1</td>
<td valign="top" align="char" char=".">90.3</td>
</tr>
<tr>
<td valign="top" align="left" style="border-bottom: solid 0.50pt" scope="row">NCIMB 2053</td>
<td valign="top" align="center" style="border-bottom: solid 0.50pt">54.0</td>
<td valign="top" align="char" char="." style="border-bottom: solid 0.50pt">8.1</td>
</tr>
</tbody>
</table>
</table-wrap>

Lists in TablesĀ 

Lists in tables should be styled using the appropriate list style, rather than using the table styles. You can apply the list style to a unique paragraph in a table cell by holding the CTRL key while selecting the style from the palette.