2007-01-15 20:52:42 +01:00
|
|
|
Simple table with caption:
|
|
|
|
|
2016-01-20 18:59:35 +01:00
|
|
|
\begin{longtable}[]{@{}rlcl@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\caption{Demonstration of simple table syntax.}\tabularnewline
|
|
|
|
\toprule
|
2021-01-02 16:56:07 +01:00
|
|
|
Right & Left & Center & Default \\
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endfirsthead
|
|
|
|
\toprule
|
2021-01-02 16:56:07 +01:00
|
|
|
Right & Left & Center & Default \\
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endhead
|
2021-01-02 16:56:07 +01:00
|
|
|
12 & 12 & 12 & 12 \\
|
|
|
|
123 & 123 & 123 & 123 \\
|
|
|
|
1 & 1 & 1 & 1 \\
|
2013-12-02 10:55:58 +01:00
|
|
|
\bottomrule
|
2012-09-15 23:57:22 +02:00
|
|
|
\end{longtable}
|
2007-01-15 20:52:42 +01:00
|
|
|
|
|
|
|
Simple table without caption:
|
|
|
|
|
2016-01-20 18:59:35 +01:00
|
|
|
\begin{longtable}[]{@{}rlcl@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\toprule
|
2021-01-02 16:56:07 +01:00
|
|
|
Right & Left & Center & Default \\
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endhead
|
2021-01-02 16:56:07 +01:00
|
|
|
12 & 12 & 12 & 12 \\
|
|
|
|
123 & 123 & 123 & 123 \\
|
|
|
|
1 & 1 & 1 & 1 \\
|
2013-12-02 10:55:58 +01:00
|
|
|
\bottomrule
|
2012-09-15 23:57:22 +02:00
|
|
|
\end{longtable}
|
2007-01-15 20:52:42 +01:00
|
|
|
|
|
|
|
Simple table indented two spaces:
|
|
|
|
|
2016-01-20 18:59:35 +01:00
|
|
|
\begin{longtable}[]{@{}rlcl@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\caption{Demonstration of simple table syntax.}\tabularnewline
|
|
|
|
\toprule
|
2021-01-02 16:56:07 +01:00
|
|
|
Right & Left & Center & Default \\
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endfirsthead
|
|
|
|
\toprule
|
2021-01-02 16:56:07 +01:00
|
|
|
Right & Left & Center & Default \\
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endhead
|
2021-01-02 16:56:07 +01:00
|
|
|
12 & 12 & 12 & 12 \\
|
|
|
|
123 & 123 & 123 & 123 \\
|
|
|
|
1 & 1 & 1 & 1 \\
|
2013-12-02 10:55:58 +01:00
|
|
|
\bottomrule
|
2012-09-15 23:57:22 +02:00
|
|
|
\end{longtable}
|
2007-01-15 20:52:42 +01:00
|
|
|
|
|
|
|
Multiline table with caption:
|
|
|
|
|
2020-11-26 00:49:17 +01:00
|
|
|
\begin{longtable}[]{@{}
|
|
|
|
>{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.15}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.14}}
|
|
|
|
>{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.16}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.35}}@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\caption{Here's the caption. It may span multiple lines.}\tabularnewline
|
|
|
|
\toprule
|
2021-01-02 16:56:07 +01:00
|
|
|
Centered Header & Left Aligned & Right Aligned & Default aligned \\
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endfirsthead
|
|
|
|
\toprule
|
2021-01-02 16:56:07 +01:00
|
|
|
Centered Header & Left Aligned & Right Aligned & Default aligned \\
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endhead
|
2021-01-02 16:56:07 +01:00
|
|
|
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. \\
|
2013-12-02 10:55:58 +01:00
|
|
|
\bottomrule
|
2012-09-15 23:57:22 +02:00
|
|
|
\end{longtable}
|
2007-01-15 20:52:42 +01:00
|
|
|
|
|
|
|
Multiline table without caption:
|
|
|
|
|
2020-11-26 00:49:17 +01:00
|
|
|
\begin{longtable}[]{@{}
|
|
|
|
>{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.15}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.14}}
|
|
|
|
>{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.16}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.35}}@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\toprule
|
2021-01-02 16:56:07 +01:00
|
|
|
Centered Header & Left Aligned & Right Aligned & Default aligned \\
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endhead
|
2021-01-02 16:56:07 +01:00
|
|
|
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. \\
|
2013-12-02 10:55:58 +01:00
|
|
|
\bottomrule
|
2012-09-15 23:57:22 +02:00
|
|
|
\end{longtable}
|
2007-01-15 20:52:42 +01:00
|
|
|
|
2010-03-07 20:34:57 +01:00
|
|
|
Table without column headers:
|
|
|
|
|
2016-01-20 18:59:35 +01:00
|
|
|
\begin{longtable}[]{@{}rlcr@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\toprule
|
2017-12-28 17:53:54 +01:00
|
|
|
\endhead
|
2021-01-02 16:56:07 +01:00
|
|
|
12 & 12 & 12 & 12 \\
|
|
|
|
123 & 123 & 123 & 123 \\
|
|
|
|
1 & 1 & 1 & 1 \\
|
2013-12-02 10:55:58 +01:00
|
|
|
\bottomrule
|
2012-09-15 23:57:22 +02:00
|
|
|
\end{longtable}
|
2010-03-07 20:34:57 +01:00
|
|
|
|
2010-03-07 20:35:27 +01:00
|
|
|
Multiline table without column headers:
|
|
|
|
|
2020-11-26 00:49:17 +01:00
|
|
|
\begin{longtable}[]{@{}
|
|
|
|
>{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.15}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.14}}
|
|
|
|
>{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.16}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.35}}@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\toprule
|
2017-12-28 17:53:54 +01:00
|
|
|
\endhead
|
2021-01-02 16:56:07 +01:00
|
|
|
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. \\
|
2013-12-02 10:55:58 +01:00
|
|
|
\bottomrule
|
2012-09-15 23:57:22 +02:00
|
|
|
\end{longtable}
|