diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2020-12-21 03:04:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 18:04:54 -0800 |
commit | 8f402beab922646d4c428b40a75fe4d140ab5e9e (patch) | |
tree | d805b8eabfe6a54c89ed90223f44b5535a1630bd /test/tables/nordics.latex | |
parent | 7e98562c04be19f533bc806a8525fe203d1ede58 (diff) | |
download | pandoc-8f402beab922646d4c428b40a75fe4d140ab5e9e.tar.gz |
LaTeX writer: support colspans and rowspans in tables. (#6950)
Note that the multirow package is needed for rowspans.
It is included in the latex template under a variable,
so that it won't be used unless needed for a table.
Diffstat (limited to 'test/tables/nordics.latex')
-rw-r--r-- | test/tables/nordics.latex | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/tables/nordics.latex b/test/tables/nordics.latex new file mode 100644 index 000000000..d1a0b4aed --- /dev/null +++ b/test/tables/nordics.latex @@ -0,0 +1,26 @@ +\begin{longtable}[]{@{} + >{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.30}} + >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.30}} + >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.20}} + >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.20}}@{}} +\caption{States belonging to the \emph{Nordics.}}\tabularnewline +\toprule +Name & Capital & \vtop{\hbox{\strut Population}\hbox{\strut (in 2018)}} & +\vtop{\hbox{\strut Area}\hbox{\strut (in +km\textsuperscript{2})}} \\ \addlinespace +\midrule +\endfirsthead +\toprule +Name & Capital & \vtop{\hbox{\strut Population}\hbox{\strut (in 2018)}} & +\vtop{\hbox{\strut Area}\hbox{\strut (in +km\textsuperscript{2})}} \\ \addlinespace +\midrule +\endhead +Denmark & Copenhagen & 5,809,502 & 43,094 \\ \addlinespace +Finland & Helsinki & 5,537,364 & 338,145 \\ \addlinespace +Iceland & Reykjavik & 343,518 & 103,000 \\ \addlinespace +Norway & Oslo & 5,372,191 & 323,802 \\ \addlinespace +Sweden & Stockholm & 10,313,447 & 450,295 \\ \addlinespace +Total & & 27,376,022 & 1,258,336 \\ \addlinespace +\bottomrule +\end{longtable} |