diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2021-07-17 18:10:34 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2021-07-17 18:46:16 +0200 |
commit | 48459559a13a20083fc9b31eb523b8ea2bf0a63f (patch) | |
tree | 1c04e75709457403110a6f8c5c90099f22369de3 /test/tables | |
parent | 0c39509d9b6a58958228cebf5d643598e5c98950 (diff) | |
parent | 46099e79defe662e541b12548200caf29063c1c6 (diff) | |
download | pandoc-48459559a13a20083fc9b31eb523b8ea2bf0a63f.tar.gz |
Merge branch 'master' of https://github.com/jgm/pandoc
Diffstat (limited to 'test/tables')
-rw-r--r-- | test/tables/nordics.latex | 42 | ||||
-rw-r--r-- | test/tables/planets.latex | 30 | ||||
-rw-r--r-- | test/tables/students.latex | 31 |
3 files changed, 103 insertions, 0 deletions
diff --git a/test/tables/nordics.latex b/test/tables/nordics.latex new file mode 100644 index 000000000..6f17a163e --- /dev/null +++ b/test/tables/nordics.latex @@ -0,0 +1,42 @@ +\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 +\begin{minipage}[b]{\linewidth}\centering +Name +\end{minipage} & \begin{minipage}[b]{\linewidth}\centering +Capital +\end{minipage} & \begin{minipage}[b]{\linewidth}\centering +Population\\ +(in 2018)\strut +\end{minipage} & \begin{minipage}[b]{\linewidth}\centering +Area\\ +(in km\textsuperscript{2})\strut +\end{minipage} \\ +\midrule +\endfirsthead +\toprule +\begin{minipage}[b]{\linewidth}\centering +Name +\end{minipage} & \begin{minipage}[b]{\linewidth}\centering +Capital +\end{minipage} & \begin{minipage}[b]{\linewidth}\centering +Population\\ +(in 2018)\strut +\end{minipage} & \begin{minipage}[b]{\linewidth}\centering +Area\\ +(in km\textsuperscript{2})\strut +\end{minipage} \\ +\midrule +\endhead +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 new file mode 100644 index 000000000..b22c3adeb --- /dev/null +++ b/test/tables/planets.latex @@ -0,0 +1,30 @@ +\begin{longtable}[]{@{}cclrrrrrrrrl@{}} +\caption{Data about the planets of our solar system.}\tabularnewline +\toprule +\multicolumn{2}{c}{} & Name & Mass (10\^{}24kg) & Diameter (km) & Density +(kg/m\^{}3) & Gravity (m/s\^{}2) & Length of day (hours) & Distance from Sun +(10\^{}6km) & Mean temperature (C) & Number of moons & Notes \\ +\midrule +\endfirsthead +\toprule +\multicolumn{2}{c}{} & Name & Mass (10\^{}24kg) & Diameter (km) & Density +(kg/m\^{}3) & Gravity (m/s\^{}2) & Length of day (hours) & Distance from Sun +(10\^{}6km) & Mean temperature (C) & Number of moons & Notes \\ +\midrule +\endhead +\multicolumn{2}{c}{\multirow{4}{*}{Terrestrial planets}} & Mercury & 0.330 & +4,879 & 5427 & 3.7 & 4222.6 & 57.9 & 167 & 0 & Closest to the Sun \\ +& & Venus & 4.87 & 12,104 & 5243 & 8.9 & 2802.0 & 108.2 & 464 & 0 & \\ +& & Earth & 5.97 & 12,756 & 5514 & 9.8 & 24.0 & 149.6 & 15 & 1 & Our world \\ +& & Mars & 0.642 & 6,792 & 3933 & 3.7 & 24.7 & 227.9 & -65 & 2 & The red +planet \\ +\multirow{4}{*}{Jovian planets} & \multirow{2}{*}{Gas giants} & Jupiter & 1898 +& 142,984 & 1326 & 23.1 & 9.9 & 778.6 & -110 & 67 & The largest planet \\ +& & Saturn & 568 & 120,536 & 687 & 9.0 & 10.7 & 1433.5 & -140 & 62 & \\ +& \multirow{2}{*}{Ice giants} & Uranus & 86.8 & 51,118 & 1271 & 8.7 & 17.2 & +2872.5 & -195 & 27 & \\ +& & Neptune & 102 & 49,528 & 1638 & 11.0 & 16.1 & 4495.1 & -200 & 14 & \\ +\multicolumn{2}{c}{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 new file mode 100644 index 000000000..3d4d287d9 --- /dev/null +++ b/test/tables/students.latex @@ -0,0 +1,31 @@ +\begin{longtable}[]{@{} + >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.50}} + >{\raggedright\arraybackslash}p{(\columnwidth - 2\tabcolsep) * \real{0.50}}@{}} +\caption{List of Students}\tabularnewline +\toprule +\begin{minipage}[b]{\linewidth}\centering +Student ID +\end{minipage} & \begin{minipage}[b]{\linewidth}\centering +Name +\end{minipage} \\ +\midrule +\endfirsthead +\toprule +\begin{minipage}[b]{\linewidth}\centering +Student ID +\end{minipage} & \begin{minipage}[b]{\linewidth}\centering +Name +\end{minipage} \\ +\midrule +\endhead +\multicolumn{2}{l}{Computer Science} \\ +3741255 & Jones, Martha \\ +4077830 & Pierce, Benjamin \\ +5151701 & Kirk, James \\ +\multicolumn{2}{l}{Russian Literature} \\ +3971244 & Nim, Victor \\ +\multicolumn{2}{l}{Astrophysics} \\ +4100332 & Petrov, Alexandra \\ +4100332 & Toyota, Hiroko \\ +\bottomrule +\end{longtable} |