diff options
| author | Albert Krewinkel <albert@zeitkraut.de> | 2022-10-06 21:54:21 +0200 |
|---|---|---|
| committer | Albert Krewinkel <albert@zeitkraut.de> | 2022-10-06 22:07:25 +0200 |
| commit | 7b7a7d6742cb775b66aad59dd812916ba9530085 (patch) | |
| tree | dbfb988a75cda3b9854f189dc87139dbe01c8275 /test/tables | |
| 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')
| -rw-r--r-- | test/tables/nordics.latex | 6 | ||||
| -rw-r--r-- | test/tables/planets.latex | 3 | ||||
| -rw-r--r-- | test/tables/students.latex | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/test/tables/nordics.latex b/test/tables/nordics.latex index 943f70fbf..b40e97c54 100644 --- a/test/tables/nordics.latex +++ b/test/tables/nordics.latex @@ -32,11 +32,13 @@ Area\\ \end{minipage} \\ \midrule() \endhead +\midrule() +Total & & 27,376,022 & 1,258,336 \\ +\bottomrule() +\endlastfoot Denmark & Copenhagen & 5,809,502 & 43,094 \\ Finland & Helsinki & 5,537,364 & 338,145 \\ Iceland & Reykjavik & 343,518 & 103,000 \\ Norway & Oslo & 5,372,191 & 323,802 \\ Sweden & Stockholm & 10,313,447 & 450,295 \\ -Total & & 27,376,022 & 1,258,336 \\ -\bottomrule() \end{longtable} diff --git a/test/tables/planets.latex b/test/tables/planets.latex index ec637b8df..d8b9f5ae8 100644 --- a/test/tables/planets.latex +++ b/test/tables/planets.latex @@ -14,6 +14,8 @@ temperature (C) & Number of moons & Notes \\ temperature (C) & Number of moons & Notes \\ \midrule() \endhead +\bottomrule() +\endlastfoot \multicolumn{2}{@{}>{\centering\arraybackslash}p{(\columnwidth - 22\tabcolsep) * \real{0.0000} + 2\tabcolsep}}{% \multirow{4}{*}{Terrestrial planets}} & Mercury & 0.330 & 4,879 & 5427 & 3.7 & 4222.6 & 57.9 & 167 & 0 & Closest to the Sun \\ @@ -30,5 +32,4 @@ planet \\ \multicolumn{2}{@{}>{\centering\arraybackslash}p{(\columnwidth - 22\tabcolsep) * \real{0.0000} + 2\tabcolsep}}{% Dwarf planets} & Pluto & 0.0146 & 2,370 & 2095 & 0.7 & 153.3 & 5906.4 & -225 & 5 & Declassified as a planet in 2006. \\ -\bottomrule() \end{longtable} diff --git a/test/tables/students.latex b/test/tables/students.latex index c93b733c3..e216d5f63 100644 --- a/test/tables/students.latex +++ b/test/tables/students.latex @@ -18,6 +18,8 @@ Name \end{minipage} \\ \midrule() \endhead +\bottomrule() +\endlastfoot \multicolumn{2}{@{}>{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{1.0000} + 2\tabcolsep}@{}}{% Computer Science} \\ 3741255 & Jones, Martha \\ @@ -30,5 +32,4 @@ Russian Literature} \\ Astrophysics} \\ 4100332 & Petrov, Alexandra \\ 4100332 & Toyota, Hiroko \\ -\bottomrule() \end{longtable} |
