Figures in tables (OGPL)
Use tables to capture complex layouts of figures and text.
Example use of table and figures
- The text "1. Stretching exercise" is a table heading
- The first table entry spans two columns
- The text "NB. Upper knee should be ... " is a caption to the first figure
- The text "1. Back stretch ... " is a paragraph in the table entry
Example
XML
<div2 role="advice for patients">
<p><?Insert-Table ID="med-9780198566236-chapter-5-tableGroup-104"?></p>
</div2>
<!-- some text -->
<tableGroup id="med-9780198566236-chapter-5-tableGroup-104" doi="10.1093/med/9780198566236.003.0005.007.0121" placement="float">
<table id="med-9780198566236-chapter-5-table-104" colsep="0" rowsep="0"><titleGroup>
<title>
<p>
<enumerator>1.</enumerator> Stretching exercise</p>
</title></titleGroup><tgroup cols="2">
<colspec colnum="1" colname="col1"/>
<colspec colnum="2" colname="col2"/>
<thead>
<row rowsep="1">
<entry namest="col1" nameend="col2" align="left">
<p alignment="centre"><?Insert-Figure ID="med-9780198566236-chapter-5-figureGroup-21"?></p>
<p>
<b>1. Back stretch (stretches back muscles)</b> Lie on your back, hands above
your head. Bend your knees and, keeping your feet on the floor, roll your knees
to one side, slowly. Stay on one side for 10 seconds. <b>Repeat 3 times each
side</b>.</p>
</entry>
</row>
</thead>
<tbody>
<row>
<entry colname="col1" align="left">
<p alignment="centre"><?Insert-Figure ID="med-9780198566236-chapter-5-figureGroup-22"?></p>
<p>
<b>2. Deep lunge (stretches muscles in front of thigh and abdomen)</b> Kneel on
one knee, the other foot in front. Lift the knee up; keep looking forwards. Hold
for 5 seconds and <b>repeat 3 times each side</b>.</p>
</entry>
<entry colname="col2" align="left">
<p alignment="centre"><?Insert-Figure ID="med-9780198566236-chapter-5-figureGroup-23"?></p>
<p>
<b>3. One-leg stand–front (stretches front thigh)</b> Steady yourself with one
hand on something for support. Bend one leg up behind you. Hold your foot for 10
seconds and <b>repeat 3 times each side</b>.</p>
</entry>
</row>
</tbody></tgroup>
</table>
</tableGroup>
<!-- some text -->
<floatGroup>
<figureGroup id="med-9780198566236-chapter-5-figureGroup-21" doi="10.1093/med/9780198566236.003.0005.002.0001"><figure id="med-9780198566236-chapter-5-figure-21">
<caption>
<p>NB. Upper knee should be directly above lower knee</p>
</caption>
<graphic sysId="med-9780198566236-graphic-021.gif" id="med-9780198566236-chapter-5-graphic-21"/></figure>
</figureGroup>
<figureGroup id="med-9780198566236-chapter-5-figureGroup-22" doi="10.1093/med/9780198566236.003.0005.002.0001"><figure id="med-9780198566236-figure-22">
<graphic sysId="med-9780198566236-graphic-022.gif" id="med-9780198566236-chapter-5-graphic-22"/></figure>
</figureGroup>
<figureGroup id="med-9780198566236-chapter-5-figureGroup-23" doi="10.1093/med/9780198566236.003.0005.002.0001"><figure id="med-9780198566236-figure-23">
<graphic sysId="med-9780198566236-graphic-023.gif" id="med-9780198566236-chapter-5-graphic-23"/></figure>
</figureGroup>
</floatGroup>