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
|
|
|
|
Right & Left & Center & Default\tabularnewline
|
|
|
|
\midrule
|
|
|
|
\endfirsthead
|
|
|
|
\toprule
|
|
|
|
Right & Left & Center & Default\tabularnewline
|
|
|
|
\midrule
|
|
|
|
\endhead
|
|
|
|
12 & 12 & 12 & 12\tabularnewline
|
|
|
|
123 & 123 & 123 & 123\tabularnewline
|
|
|
|
1 & 1 & 1 & 1\tabularnewline
|
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
|
|
|
|
Right & Left & Center & Default\tabularnewline
|
|
|
|
\midrule
|
|
|
|
\endhead
|
|
|
|
12 & 12 & 12 & 12\tabularnewline
|
|
|
|
123 & 123 & 123 & 123\tabularnewline
|
|
|
|
1 & 1 & 1 & 1\tabularnewline
|
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
|
|
|
|
Right & Left & Center & Default\tabularnewline
|
|
|
|
\midrule
|
|
|
|
\endfirsthead
|
|
|
|
\toprule
|
|
|
|
Right & Left & Center & Default\tabularnewline
|
|
|
|
\midrule
|
|
|
|
\endhead
|
|
|
|
12 & 12 & 12 & 12\tabularnewline
|
|
|
|
123 & 123 & 123 & 123\tabularnewline
|
|
|
|
1 & 1 & 1 & 1\tabularnewline
|
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:
|
|
|
|
|
2016-01-20 18:59:35 +01:00
|
|
|
\begin{longtable}[]{@{}clrl@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\caption{Here's the caption. It may span multiple lines.}\tabularnewline
|
|
|
|
\toprule
|
2020-10-29 20:10:05 +01:00
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.15}}\centering
|
2016-04-29 06:12:08 +02:00
|
|
|
Centered Header\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.14}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Left Aligned\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.16}}\raggedleft
|
2016-04-29 06:12:08 +02:00
|
|
|
Right Aligned\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.35}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Default aligned\strut
|
2016-04-28 02:25:45 +02:00
|
|
|
\end{minipage}\tabularnewline
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endfirsthead
|
|
|
|
\toprule
|
2020-10-29 20:10:05 +01:00
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.15}}\centering
|
2016-04-29 06:12:08 +02:00
|
|
|
Centered Header\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.14}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Left Aligned\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.16}}\raggedleft
|
2016-04-29 06:12:08 +02:00
|
|
|
Right Aligned\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.35}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Default aligned\strut
|
2016-04-28 02:25:45 +02:00
|
|
|
\end{minipage}\tabularnewline
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endhead
|
2020-10-29 20:10:05 +01:00
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.15}}\centering
|
2016-04-29 06:12:08 +02:00
|
|
|
First\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.14}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
row\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.16}}\raggedleft
|
2016-04-29 06:12:08 +02:00
|
|
|
12.0\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.35}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Example of a row that spans multiple lines.\strut
|
2016-04-28 02:25:45 +02:00
|
|
|
\end{minipage}\tabularnewline
|
2020-10-29 20:10:05 +01:00
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.15}}\centering
|
2016-04-29 06:12:08 +02:00
|
|
|
Second\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.14}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
row\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.16}}\raggedleft
|
2016-04-29 06:12:08 +02:00
|
|
|
5.0\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.35}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Here's another one. Note the blank line between rows.\strut
|
2016-04-28 02:25:45 +02:00
|
|
|
\end{minipage}\tabularnewline
|
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:
|
|
|
|
|
2016-01-20 18:59:35 +01:00
|
|
|
\begin{longtable}[]{@{}clrl@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\toprule
|
2020-10-29 20:10:05 +01:00
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.15}}\centering
|
2016-04-29 06:12:08 +02:00
|
|
|
Centered Header\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.14}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Left Aligned\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.16}}\raggedleft
|
2016-04-29 06:12:08 +02:00
|
|
|
Right Aligned\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[b]{(\columnwidth - 3\tabcolsep) * \real{0.35}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Default aligned\strut
|
2016-04-28 02:25:45 +02:00
|
|
|
\end{minipage}\tabularnewline
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endhead
|
2020-10-29 20:10:05 +01:00
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.15}}\centering
|
2016-04-29 06:12:08 +02:00
|
|
|
First\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.14}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
row\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.16}}\raggedleft
|
2016-04-29 06:12:08 +02:00
|
|
|
12.0\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.35}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Example of a row that spans multiple lines.\strut
|
2016-04-28 02:25:45 +02:00
|
|
|
\end{minipage}\tabularnewline
|
2020-10-29 20:10:05 +01:00
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.15}}\centering
|
2016-04-29 06:12:08 +02:00
|
|
|
Second\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.14}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
row\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.16}}\raggedleft
|
2016-04-29 06:12:08 +02:00
|
|
|
5.0\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.35}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Here's another one. Note the blank line between rows.\strut
|
2016-04-28 02:25:45 +02:00
|
|
|
\end{minipage}\tabularnewline
|
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
|
2014-08-28 04:02:20 +02:00
|
|
|
12 & 12 & 12 & 12\tabularnewline
|
|
|
|
123 & 123 & 123 & 123\tabularnewline
|
|
|
|
1 & 1 & 1 & 1\tabularnewline
|
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:
|
|
|
|
|
2016-01-20 18:59:35 +01:00
|
|
|
\begin{longtable}[]{@{}clrl@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\toprule
|
2017-12-28 17:53:54 +01:00
|
|
|
\endhead
|
2020-10-29 20:10:05 +01:00
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.15}}\centering
|
2016-04-29 06:12:08 +02:00
|
|
|
First\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.14}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
row\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.16}}\raggedleft
|
2016-04-29 06:12:08 +02:00
|
|
|
12.0\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.35}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Example of a row that spans multiple lines.\strut
|
2016-04-28 02:25:45 +02:00
|
|
|
\end{minipage}\tabularnewline
|
2020-10-29 20:10:05 +01:00
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.15}}\centering
|
2016-04-29 06:12:08 +02:00
|
|
|
Second\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.14}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
row\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.16}}\raggedleft
|
2016-04-29 06:12:08 +02:00
|
|
|
5.0\strut
|
2020-10-29 20:10:05 +01:00
|
|
|
\end{minipage} &
|
|
|
|
\begin{minipage}[t]{(\columnwidth - 3\tabcolsep) * \real{0.35}}\raggedright
|
2016-04-29 06:12:08 +02:00
|
|
|
Here's another one. Note the blank line between rows.\strut
|
2016-04-28 02:25:45 +02:00
|
|
|
\end{minipage}\tabularnewline
|
2013-12-02 10:55:58 +01:00
|
|
|
\bottomrule
|
2012-09-15 23:57:22 +02:00
|
|
|
\end{longtable}
|