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