aboutsummaryrefslogtreecommitdiff
path: root/test/tables
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2020-11-17 17:18:15 +0100
committerAlbert Krewinkel <albert+github@zeitkraut.de>2020-11-19 22:09:52 +0100
commitd2862421315a0be59e2e2ec088b9b24928224aa2 (patch)
tree6b4f6fc17364f639969754c3ade00fee604a9bb3 /test/tables
parent0c8ab8a12f69cdb2868ffe223aa938044fd447b4 (diff)
downloadpandoc-d2862421315a0be59e2e2ec088b9b24928224aa2.tar.gz
JATS writer: support advanced table features
Diffstat (limited to 'test/tables')
-rw-r--r--test/tables/nordics.jats_archiving58
-rw-r--r--test/tables/planets.jats_archiving128
-rw-r--r--test/tables/students.jats_archiving56
3 files changed, 242 insertions, 0 deletions
diff --git a/test/tables/nordics.jats_archiving b/test/tables/nordics.jats_archiving
new file mode 100644
index 000000000..5ac78bacd
--- /dev/null
+++ b/test/tables/nordics.jats_archiving
@@ -0,0 +1,58 @@
+<table-wrap>
+ <caption>
+ <p>States belonging to the <italic>Nordics.</italic></p>
+ </caption>
+ <table id="nordics">
+ <colgroup>
+ <col width="30%" />
+ <col width="30%" />
+ <col width="20%" />
+ <col width="20%" />
+ </colgroup>
+ <thead>
+ <tr>
+ <th align="center">Name</th>
+ <th align="center">Capital</th>
+ <th align="center">Population
+ (in 2018)</th>
+ <th align="center">Area
+ (in km<sup>2</sup>)</th>
+ </tr>
+ </thead>
+ <tfoot>
+ <tr id="summary">
+ <td align="center">Total</td>
+ <td align="left"></td>
+ <td align="left" id="total-population">27,376,022</td>
+ <td align="left" id="total-area">1,258,336</td>
+ </tr>
+ </tfoot>
+ <tbody>
+ <tr>
+ <th align="center">Denmark</th><td align="left">Copenhagen</td>
+ <td align="left">5,809,502</td>
+ <td align="left">43,094</td>
+ </tr>
+ <tr>
+ <th align="center">Finland</th><td align="left">Helsinki</td>
+ <td align="left">5,537,364</td>
+ <td align="left">338,145</td>
+ </tr>
+ <tr>
+ <th align="center">Iceland</th><td align="left">Reykjavik</td>
+ <td align="left">343,518</td>
+ <td align="left">103,000</td>
+ </tr>
+ <tr>
+ <th align="center">Norway</th><td align="left">Oslo</td>
+ <td align="left">5,372,191</td>
+ <td align="left">323,802</td>
+ </tr>
+ <tr>
+ <th align="center">Sweden</th><td align="left">Stockholm</td>
+ <td align="left">10,313,447</td>
+ <td align="left">450,295</td>
+ </tr>
+ </tbody>
+ </table>
+</table-wrap>
diff --git a/test/tables/planets.jats_archiving b/test/tables/planets.jats_archiving
new file mode 100644
index 000000000..e0158b6fa
--- /dev/null
+++ b/test/tables/planets.jats_archiving
@@ -0,0 +1,128 @@
+<table-wrap>
+ <caption>
+ <p>Data about the planets of our solar system.</p>
+ </caption>
+ <table>
+ <thead>
+ <tr>
+ <th align="center" colspan="2"></th>
+ <th>Name</th>
+ <th align="right">Mass (10^24kg)</th>
+ <th align="right">Diameter (km)</th>
+ <th align="right">Density (kg/m^3)</th>
+ <th align="right">Gravity (m/s^2)</th>
+ <th align="right">Length of day (hours)</th>
+ <th align="right">Distance from Sun (10^6km)</th>
+ <th align="right">Mean temperature (C)</th>
+ <th align="right">Number of moons</th>
+ <th>Notes</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th align="center" rowspan="4" colspan="2">Terrestrial planets</th>
+ <th>Mercury</th><td align="right">0.330</td>
+ <td align="right">4,879</td>
+ <td align="right">5427</td>
+ <td align="right">3.7</td>
+ <td align="right">4222.6</td>
+ <td align="right">57.9</td>
+ <td align="right">167</td>
+ <td align="right">0</td>
+ <td>Closest to the Sun</td>
+ </tr>
+ <tr>
+ <th>Venus</th><td align="right">4.87</td>
+ <td align="right">12,104</td>
+ <td align="right">5243</td>
+ <td align="right">8.9</td>
+ <td align="right">2802.0</td>
+ <td align="right">108.2</td>
+ <td align="right">464</td>
+ <td align="right">0</td>
+ <td></td>
+ </tr>
+ <tr>
+ <th>Earth</th><td align="right">5.97</td>
+ <td align="right">12,756</td>
+ <td align="right">5514</td>
+ <td align="right">9.8</td>
+ <td align="right">24.0</td>
+ <td align="right">149.6</td>
+ <td align="right">15</td>
+ <td align="right">1</td>
+ <td>Our world</td>
+ </tr>
+ <tr>
+ <th>Mars</th><td align="right">0.642</td>
+ <td align="right">6,792</td>
+ <td align="right">3933</td>
+ <td align="right">3.7</td>
+ <td align="right">24.7</td>
+ <td align="right">227.9</td>
+ <td align="right">-65</td>
+ <td align="right">2</td>
+ <td>The red planet</td>
+ </tr>
+ <tr>
+ <th align="center" rowspan="4">Jovian planets</th>
+ <th align="center" rowspan="2">Gas giants</th>
+ <th>Jupiter</th><td align="right">1898</td>
+ <td align="right">142,984</td>
+ <td align="right">1326</td>
+ <td align="right">23.1</td>
+ <td align="right">9.9</td>
+ <td align="right">778.6</td>
+ <td align="right">-110</td>
+ <td align="right">67</td>
+ <td>The largest planet</td>
+ </tr>
+ <tr>
+ <th>Saturn</th><td align="right">568</td>
+ <td align="right">120,536</td>
+ <td align="right">687</td>
+ <td align="right">9.0</td>
+ <td align="right">10.7</td>
+ <td align="right">1433.5</td>
+ <td align="right">-140</td>
+ <td align="right">62</td>
+ <td></td>
+ </tr>
+ <tr>
+ <th align="center" rowspan="2">Ice giants</th>
+ <th>Uranus</th><td align="right">86.8</td>
+ <td align="right">51,118</td>
+ <td align="right">1271</td>
+ <td align="right">8.7</td>
+ <td align="right">17.2</td>
+ <td align="right">2872.5</td>
+ <td align="right">-195</td>
+ <td align="right">27</td>
+ <td></td>
+ </tr>
+ <tr>
+ <th>Neptune</th><td align="right">102</td>
+ <td align="right">49,528</td>
+ <td align="right">1638</td>
+ <td align="right">11.0</td>
+ <td align="right">16.1</td>
+ <td align="right">4495.1</td>
+ <td align="right">-200</td>
+ <td align="right">14</td>
+ <td></td>
+ </tr>
+ <tr>
+ <th align="center" colspan="2">Dwarf planets</th>
+ <th>Pluto</th><td align="right">0.0146</td>
+ <td align="right">2,370</td>
+ <td align="right">2095</td>
+ <td align="right">0.7</td>
+ <td align="right">153.3</td>
+ <td align="right">5906.4</td>
+ <td align="right">-225</td>
+ <td align="right">5</td>
+ <td>Declassified as a planet in 2006.</td>
+ </tr>
+ </tbody>
+ </table>
+</table-wrap>
diff --git a/test/tables/students.jats_archiving b/test/tables/students.jats_archiving
new file mode 100644
index 000000000..3edf58a7f
--- /dev/null
+++ b/test/tables/students.jats_archiving
@@ -0,0 +1,56 @@
+<table-wrap>
+ <caption>
+ <p>List of Students</p>
+ </caption>
+ <table id="students">
+ <colgroup>
+ <col width="50%" />
+ <col width="50%" />
+ </colgroup>
+ <thead>
+ <tr>
+ <th align="center">Student ID</th>
+ <th align="center">Name</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <th align="left" colspan="2">Computer Science</th>
+ </tr>
+ <tr>
+ <td align="left">3741255</td>
+ <td align="left">Jones, Martha</td>
+ </tr>
+ <tr>
+ <td align="left">4077830</td>
+ <td align="left">Pierce, Benjamin</td>
+ </tr>
+ <tr>
+ <td align="left">5151701</td>
+ <td align="left">Kirk, James</td>
+ </tr>
+ </tbody>
+ <tbody>
+ <tr>
+ <th align="left" colspan="2">Russian Literature</th>
+ </tr>
+ <tr>
+ <td align="left">3971244</td>
+ <td align="left">Nim, Victor</td>
+ </tr>
+ </tbody>
+ <tbody>
+ <tr>
+ <th align="left" colspan="2">Astrophysics</th>
+ </tr>
+ <tr>
+ <td align="left">4100332</td>
+ <td align="left">Petrov, Alexandra</td>
+ </tr>
+ <tr>
+ <td align="left">4100332</td>
+ <td align="left">Toyota, Hiroko</td>
+ </tr>
+ </tbody>
+ </table>
+</table-wrap>