pandoc/test/tables/students.latex
Albert Krewinkel 8f402beab9
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.
2020-12-20 18:04:54 -08:00

23 lines
793 B
Text

\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
Student ID & Name \\ \addlinespace
\midrule
\endfirsthead
\toprule
Student ID & Name \\ \addlinespace
\midrule
\endhead
\multicolumn{2}{l}{Computer Science} \\ \addlinespace
3741255 & Jones, Martha \\ \addlinespace
4077830 & Pierce, Benjamin \\ \addlinespace
5151701 & Kirk, James \\ \addlinespace
\multicolumn{2}{l}{Russian Literature} \\ \addlinespace
3971244 & Nim, Victor \\ \addlinespace
\multicolumn{2}{l}{Astrophysics} \\ \addlinespace
4100332 & Petrov, Alexandra \\ \addlinespace
4100332 & Toyota, Hiroko \\ \addlinespace
\bottomrule
\end{longtable}