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
|
2022-03-30 19:07:09 +02:00
|
|
|
\toprule()
|
2021-01-02 16:56:07 +01:00
|
|
|
Right & Left & Center & Default \\
|
2022-03-30 19:07:09 +02:00
|
|
|
\midrule()
|
2014-08-28 04:02:20 +02:00
|
|
|
\endfirsthead
|
2022-03-30 19:07:09 +02:00
|
|
|
\toprule()
|
2021-01-02 16:56:07 +01:00
|
|
|
Right & Left & Center & Default \\
|
2022-03-30 19:07:09 +02:00
|
|
|
\midrule()
|
2014-08-28 04:02:20 +02:00
|
|
|
\endhead
|
2021-01-02 16:56:07 +01:00
|
|
|
12 & 12 & 12 & 12 \\
|
|
|
|
123 & 123 & 123 & 123 \\
|
|
|
|
1 & 1 & 1 & 1 \\
|
2022-03-30 19:07:09 +02: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@{}}
|
2022-03-30 19:07:09 +02:00
|
|
|
\toprule()
|
2021-01-02 16:56:07 +01:00
|
|
|
Right & Left & Center & Default \\
|
2022-03-30 19:07:09 +02:00
|
|
|
\midrule()
|
2014-08-28 04:02:20 +02:00
|
|
|
\endhead
|
2021-01-02 16:56:07 +01:00
|
|
|
12 & 12 & 12 & 12 \\
|
|
|
|
123 & 123 & 123 & 123 \\
|
|
|
|
1 & 1 & 1 & 1 \\
|
2022-03-30 19:07:09 +02: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
|
2022-03-30 19:07:09 +02:00
|
|
|
\toprule()
|
2021-01-02 16:56:07 +01:00
|
|
|
Right & Left & Center & Default \\
|
2022-03-30 19:07:09 +02:00
|
|
|
\midrule()
|
2014-08-28 04:02:20 +02:00
|
|
|
\endfirsthead
|
2022-03-30 19:07:09 +02:00
|
|
|
\toprule()
|
2021-01-02 16:56:07 +01:00
|
|
|
Right & Left & Center & Default \\
|
2022-03-30 19:07:09 +02:00
|
|
|
\midrule()
|
2014-08-28 04:02:20 +02:00
|
|
|
\endhead
|
2021-01-02 16:56:07 +01:00
|
|
|
12 & 12 & 12 & 12 \\
|
|
|
|
123 & 123 & 123 & 123 \\
|
|
|
|
1 & 1 & 1 & 1 \\
|
2022-03-30 19:07:09 +02: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}[]{@{}
|
2021-08-03 23:34:39 +02:00
|
|
|
>{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1500}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1375}}
|
|
|
|
>{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1625}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3500}}@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\caption{Here's the caption. It may span multiple lines.}\tabularnewline
|
2022-03-30 19:07:09 +02:00
|
|
|
\toprule()
|
2021-06-05 22:13:58 +02:00
|
|
|
\begin{minipage}[b]{\linewidth}\centering
|
|
|
|
Centered Header
|
|
|
|
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
|
|
|
|
Left Aligned
|
|
|
|
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedleft
|
|
|
|
Right Aligned
|
|
|
|
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
|
|
|
|
Default aligned
|
|
|
|
\end{minipage} \\
|
2022-03-30 19:07:09 +02:00
|
|
|
\midrule()
|
2014-08-28 04:02:20 +02:00
|
|
|
\endfirsthead
|
2022-03-30 19:07:09 +02:00
|
|
|
\toprule()
|
2021-06-05 22:13:58 +02:00
|
|
|
\begin{minipage}[b]{\linewidth}\centering
|
|
|
|
Centered Header
|
|
|
|
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
|
|
|
|
Left Aligned
|
|
|
|
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedleft
|
|
|
|
Right Aligned
|
|
|
|
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
|
|
|
|
Default aligned
|
|
|
|
\end{minipage} \\
|
2022-03-30 19:07:09 +02:00
|
|
|
\midrule()
|
2014-08-28 04:02:20 +02: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. \\
|
2022-03-30 19:07:09 +02: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}[]{@{}
|
2021-08-03 23:34:39 +02:00
|
|
|
>{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1500}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1375}}
|
|
|
|
>{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1625}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3500}}@{}}
|
2022-03-30 19:07:09 +02:00
|
|
|
\toprule()
|
2021-06-05 22:13:58 +02:00
|
|
|
\begin{minipage}[b]{\linewidth}\centering
|
|
|
|
Centered Header
|
|
|
|
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
|
|
|
|
Left Aligned
|
|
|
|
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedleft
|
|
|
|
Right Aligned
|
|
|
|
\end{minipage} & \begin{minipage}[b]{\linewidth}\raggedright
|
|
|
|
Default aligned
|
|
|
|
\end{minipage} \\
|
2022-03-30 19:07:09 +02:00
|
|
|
\midrule()
|
2014-08-28 04:02:20 +02: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. \\
|
2022-03-30 19:07:09 +02: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@{}}
|
2022-03-30 19:07:09 +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 \\
|
2022-03-30 19:07:09 +02: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}[]{@{}
|
2021-08-03 23:34:39 +02:00
|
|
|
>{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1500}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1375}}
|
|
|
|
>{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.1625}}
|
|
|
|
>{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.3500}}@{}}
|
2022-03-30 19:07:09 +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. \\
|
2022-03-30 19:07:09 +02:00
|
|
|
\bottomrule()
|
2012-09-15 23:57:22 +02:00
|
|
|
\end{longtable}
|