Introduction
Below are examples of JATS markup for figure and table captions/titles.
Figure Examples
Below are examples of JATS markup for figure captions/titles.
The Caption Element Remarks specify that figure captions use the label element for figure labels. The caption and title elements for the title text.
Table Examples
Below are examples of JATS markup for table captions/titles.
Table borders are displayed using the style attribute on the table tr and td elements.
<table>
<tbody>
<tr>
<td style="border-top:2px solid;border-left:2px solid;">Cell 1,1</td>
<td
style="border-top:2px solid;border-left:2px solid;border-right:2px solid;">Cell 1,2</td>
</tr>
<tr>
<td
style="border-top:2px solid;border-left:2px solid;border-bottom:2px solid;">Cell 2,1</td>
<td
style="border-top:2px solid;border-left:2px solid;border-bottom:2px solid;border-right:2px solid;">Cell 2,2</td>
</tr>
</tbody>
</table>
Table Example 1
The following example use the label element for figure labels. The caption and title elements for the title text.
The caption markup here is the same as with the figure example above. But the display has the non-styled caption text in bold. The expectation is that the display would be the same as the figure since the same markup is being used..
Cell 1,1 | Cell 1,2 |
Cell 2,1 | Cell 2,2 |
Table Example 2
The following example is identical to the above except the caption label and text are within a label element. The link must remain within the caption element as it is not allowed within a label element.
This caption display is as expected. But the markup is unusual with the caption text split between the label and caption elements and the caption text is in bold.
Cell 1,1 | Cell 1,2 |
Cell 2,1 | Cell 2,2 |