diff options
| author | Albert Krewinkel <[email protected]> | 2022-10-06 21:54:21 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2022-10-06 22:07:25 +0200 |
| commit | 7b7a7d6742cb775b66aad59dd812916ba9530085 (patch) | |
| tree | dbfb988a75cda3b9854f189dc87139dbe01c8275 /test/tables.latex | |
| parent | 644c9841696263bcb8118538fa0f3fae9e5e89fb (diff) | |
LaTeX writer: add separator line between table's body and its foot.
The writer uses features from the longtable package to define the table
foot. Furthermore, the table's bottom rule is now part of the foot,
where it previously was given as part of the body.
Diffstat (limited to 'test/tables.latex')
| -rw-r--r-- | test/tables.latex | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/test/tables.latex b/test/tables.latex index 0683ce15f..3ee3db7cc 100644 --- a/test/tables.latex +++ b/test/tables.latex @@ -10,10 +10,11 @@ Right & Left & Center & Default \\ Right & Left & Center & Default \\ \midrule() \endhead +\bottomrule() +\endlastfoot 12 & 12 & 12 & 12 \\ 123 & 123 & 123 & 123 \\ 1 & 1 & 1 & 1 \\ -\bottomrule() \end{longtable} Simple table without caption: @@ -23,10 +24,11 @@ Simple table without caption: Right & Left & Center & Default \\ \midrule() \endhead +\bottomrule() +\endlastfoot 12 & 12 & 12 & 12 \\ 123 & 123 & 123 & 123 \\ 1 & 1 & 1 & 1 \\ -\bottomrule() \end{longtable} Simple table indented two spaces: @@ -41,10 +43,11 @@ Right & Left & Center & Default \\ Right & Left & Center & Default \\ \midrule() \endhead +\bottomrule() +\endlastfoot 12 & 12 & 12 & 12 \\ 123 & 123 & 123 & 123 \\ 1 & 1 & 1 & 1 \\ -\bottomrule() \end{longtable} Multiline table with caption: @@ -79,9 +82,10 @@ Default aligned \end{minipage} \\ \midrule() \endhead +\bottomrule() +\endlastfoot First & row & 12.0 & Example of a row that spans multiple lines. \\ Second & row & 5.0 & Here's another one. Note the blank line between rows. \\ -\bottomrule() \end{longtable} Multiline table without caption: @@ -103,9 +107,10 @@ Default aligned \end{minipage} \\ \midrule() \endhead +\bottomrule() +\endlastfoot First & row & 12.0 & Example of a row that spans multiple lines. \\ Second & row & 5.0 & Here's another one. Note the blank line between rows. \\ -\bottomrule() \end{longtable} Table without column headers: @@ -113,10 +118,11 @@ Table without column headers: \begin{longtable}[]{@{}rlcr@{}} \toprule() \endhead +\bottomrule() +\endlastfoot 12 & 12 & 12 & 12 \\ 123 & 123 & 123 & 123 \\ 1 & 1 & 1 & 1 \\ -\bottomrule() \end{longtable} Multiline table without column headers: @@ -128,7 +134,8 @@ Multiline table without column headers: >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3500}}@{}} \toprule() \endhead +\bottomrule() +\endlastfoot First & row & 12.0 & Example of a row that spans multiple lines. \\ Second & row & 5.0 & Here's another one. Note the blank line between rows. \\ -\bottomrule() \end{longtable} |
