diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-03-28 09:51:30 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-03-30 01:16:34 +0200 |
commit | 831e1c5edd4703b6ab0953a79980e37ea1bee5dc (patch) | |
tree | d718a4413706ac497d65fb7d5c709244096d2d3c /test/tables.jats | |
parent | 64fe39c255357c25fc636c46bc3bdfd31257b445 (diff) |
Added JATS writer.
* New module Text.Pandoc.Writer.JATS exporting writeJATS.
* New output format `jats`.
* Added tests.
* Revised manual.
Diffstat (limited to 'test/tables.jats')
-rw-r--r-- | test/tables.jats | 616 |
1 files changed, 616 insertions, 0 deletions
diff --git a/test/tables.jats b/test/tables.jats new file mode 100644 index 000000000..11f543f17 --- /dev/null +++ b/test/tables.jats @@ -0,0 +1,616 @@ +<body> + <p> + Simple table with caption: + </p> + <table-wrap> + <caption> + <p> + Demonstration of simple table syntax. + </p> + </caption> + <table> + <col align="right" /> + <col align="left" /> + <col align="center" /> + <col align="left" /> + <thead> + <tr> + <th> + <p> + Right + </p> + </th> + <th> + <p> + Left + </p> + </th> + <th> + <p> + Center + </p> + </th> + <th> + <p> + Default + </p> + </th> + </tr> + </thead> + <tbody> + <tr> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + </tr> + <tr> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + </tr> + <tr> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + </tr> + </tbody> + </table> + </table-wrap> + <p> + Simple table without caption: + </p> + <table> + <col align="right" /> + <col align="left" /> + <col align="center" /> + <col align="left" /> + <thead> + <tr> + <th> + <p> + Right + </p> + </th> + <th> + <p> + Left + </p> + </th> + <th> + <p> + Center + </p> + </th> + <th> + <p> + Default + </p> + </th> + </tr> + </thead> + <tbody> + <tr> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + </tr> + <tr> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + </tr> + <tr> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + </tr> + </tbody> + </table> + <p> + Simple table indented two spaces: + </p> + <table-wrap> + <caption> + <p> + Demonstration of simple table syntax. + </p> + </caption> + <table> + <col align="right" /> + <col align="left" /> + <col align="center" /> + <col align="left" /> + <thead> + <tr> + <th> + <p> + Right + </p> + </th> + <th> + <p> + Left + </p> + </th> + <th> + <p> + Center + </p> + </th> + <th> + <p> + Default + </p> + </th> + </tr> + </thead> + <tbody> + <tr> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + </tr> + <tr> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + </tr> + <tr> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + </tr> + </tbody> + </table> + </table-wrap> + <p> + Multiline table with caption: + </p> + <table-wrap> + <caption> + <p> + Here’s the caption. It may span multiple lines. + </p> + </caption> + <table> + <col width="15*" align="center" /> + <col width="13*" align="left" /> + <col width="16*" align="right" /> + <col width="33*" align="left" /> + <thead> + <tr> + <th> + <p> + Centered Header + </p> + </th> + <th> + <p> + Left Aligned + </p> + </th> + <th> + <p> + Right Aligned + </p> + </th> + <th> + <p> + Default aligned + </p> + </th> + </tr> + </thead> + <tbody> + <tr> + <td> + <p> + First + </p> + </td> + <td> + <p> + row + </p> + </td> + <td> + <p> + 12.0 + </p> + </td> + <td> + <p> + Example of a row that spans multiple lines. + </p> + </td> + </tr> + <tr> + <td> + <p> + Second + </p> + </td> + <td> + <p> + row + </p> + </td> + <td> + <p> + 5.0 + </p> + </td> + <td> + <p> + Here’s another one. Note the blank line between rows. + </p> + </td> + </tr> + </tbody> + </table> + </table-wrap> + <p> + Multiline table without caption: + </p> + <table> + <col width="15*" align="center" /> + <col width="13*" align="left" /> + <col width="16*" align="right" /> + <col width="33*" align="left" /> + <thead> + <tr> + <th> + <p> + Centered Header + </p> + </th> + <th> + <p> + Left Aligned + </p> + </th> + <th> + <p> + Right Aligned + </p> + </th> + <th> + <p> + Default aligned + </p> + </th> + </tr> + </thead> + <tbody> + <tr> + <td> + <p> + First + </p> + </td> + <td> + <p> + row + </p> + </td> + <td> + <p> + 12.0 + </p> + </td> + <td> + <p> + Example of a row that spans multiple lines. + </p> + </td> + </tr> + <tr> + <td> + <p> + Second + </p> + </td> + <td> + <p> + row + </p> + </td> + <td> + <p> + 5.0 + </p> + </td> + <td> + <p> + Here’s another one. Note the blank line between rows. + </p> + </td> + </tr> + </tbody> + </table> + <p> + Table without column headers: + </p> + <table> + <col align="right" /> + <col align="left" /> + <col align="center" /> + <col align="right" /> + <tbody> + <tr> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + <td> + <p> + 12 + </p> + </td> + </tr> + <tr> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + <td> + <p> + 123 + </p> + </td> + </tr> + <tr> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + <td> + <p> + 1 + </p> + </td> + </tr> + </tbody> + </table> + <p> + Multiline table without column headers: + </p> + <table> + <col width="15*" align="center" /> + <col width="13*" align="left" /> + <col width="16*" align="right" /> + <col width="33*" align="left" /> + <tbody> + <tr> + <td> + <p> + First + </p> + </td> + <td> + <p> + row + </p> + </td> + <td> + <p> + 12.0 + </p> + </td> + <td> + <p> + Example of a row that spans multiple lines. + </p> + </td> + </tr> + <tr> + <td> + <p> + Second + </p> + </td> + <td> + <p> + row + </p> + </td> + <td> + <p> + 5.0 + </p> + </td> + <td> + <p> + Here’s another one. Note the blank line between rows. + </p> + </td> + </tr> + </tbody> + </table> +</body> |