...
If a paragraph indent is used within a table cell, it is reflected in the XML on export; this allows great control over the arrangement of the table cell contents. Exactly how the indent is represented depends on your configuration. In the following table, the cell contents in the first cells of rows 3 and 4 have been aligned using a first-line indent of 0.5 4 cm. In this configuration, the paragraph indent is represented in the output XML by a variable number of non-breaking spaces (represented as  
in Unicode) (one for every 0.1 cm):
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<table-wrap id="t3" position="float">
<label>Table 3</label>
<caption><title>In so melancholy as an sentiments simplicity connection</title>
</caption>
<table frame="hsides" rules="groups">
<col width="33.34%"/>
<col width="33.33%"/>
<col width="33.33%"/>
<thead>
<tr>
<th valign="top" align="left" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">r(Y)</th>
<th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Y2</th>
<th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Y</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" align="left" style="border-top: solid 0.50pt" scope="col">ϕm</td>
<td valign="top" align="left" style="border-top: solid 0.50pt"></td>
<td valign="top" align="left" style="border-top: solid 0.50pt"></td>
</tr>
<tr>
<td valign="top" align="left" scope="row">    For ηhigh</td>
<td valign="top" align="char" char=".">2.10</td>
<td valign="top" align="char" char=".">2.10</td>
</tr>
<tr>
<td valign="top" align="left" style="border-bottom: solid 0.50pt" scope="row">    For ηlimit</td>
<td valign="top" align="char" char="." style="border-bottom: solid 0.50pt">20.5</td>
<td valign="top" align="char" char="." style="border-bottom: solid 0.50pt">21.0</td>
</tr>
</tbody>
</table>
</table-wrap>
|
Row Headers
While row headers that appear mid-table are supported by eXtyles, the JATS DTD does not include a way to indicate that a row is a heading row when in mid-table. However, there is a "more correct" way to do this in JATS XML. Simply style the mid-table heading rows with the Table Column Head style. This style forces a new <table>
element within the <table-wrap>
element. For example, the following table:
yields this XML:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<table-wrap id="t4" position="float"> <label>Table 4</label> <caption><title>Mrs him left find are good</title></caption> <table frame="hsides" rules="groups"> <col width="33.34%"/> <col width="33.32%"/> <col width="33.34%"/> <thead> <tr> <th valign="top" align="left" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt"><bold>Head 1</bold></th> <th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt"><bold>Head 1a</bold></th> <th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt"><bold>Head 1b</bold></th> </tr> </thead> <tbody> <tr> <td valign="top" align="left" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt" scope="row">Body 1</td> <td valign="top" align="center" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Body 1a</td> <td valign="top" align="center" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Body 1b</td> </tr> </tbody> </table> <table frame="hsides" rules="groups"> <col width="33.34%"/> <col width="33.32%"/> <col width="33.34%"/> <thead> <tr> <th valign="top" align="left" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt"><bold>Head 2</bold></th> <th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt"><bold>Head 2a</bold></th> <th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt"><bold>Head 2b</bold></th> </tr> </thead> <tbody> <tr> <td valign="top" align="left" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt" scope="row">Body 2</td> <td valign="top" align="center" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Body 2a</td> <td valign="top" align="center" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Body 2b</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.