2007-01-15 20:52:42 +01:00
|
|
|
Simple table with caption:
|
|
|
|
|
2013-01-28 19:49:18 +01:00
|
|
|
\begin{longtable}[c]{@{}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:
|
|
|
|
|
2013-01-28 19:49:18 +01:00
|
|
|
\begin{longtable}[c]{@{}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:
|
|
|
|
|
2013-01-28 19:49:18 +01:00
|
|
|
\begin{longtable}[c]{@{}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:
|
|
|
|
|
2013-01-28 19:49:18 +01:00
|
|
|
\begin{longtable}[c]{@{}clrl@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\caption{Here's the caption. It may span multiple lines.}\tabularnewline
|
|
|
|
\toprule
|
2014-08-29 15:54:08 +02:00
|
|
|
\begin{minipage}[b]{0.13\columnwidth}\centering\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Centered Header
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[b]{0.12\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Left Aligned
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[b]{0.14\columnwidth}\raggedleft\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Right Aligned
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[b]{0.30\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Default aligned
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage}\tabularnewline
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endfirsthead
|
|
|
|
\toprule
|
2014-08-29 15:54:08 +02:00
|
|
|
\begin{minipage}[b]{0.13\columnwidth}\centering\strut
|
2014-08-28 04:02:20 +02:00
|
|
|
Centered Header
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[b]{0.12\columnwidth}\raggedright\strut
|
2014-08-28 04:02:20 +02:00
|
|
|
Left Aligned
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[b]{0.14\columnwidth}\raggedleft\strut
|
2014-08-28 04:02:20 +02:00
|
|
|
Right Aligned
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[b]{0.30\columnwidth}\raggedright\strut
|
2014-08-28 04:02:20 +02:00
|
|
|
Default aligned
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage}\tabularnewline
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endhead
|
2014-08-29 15:54:08 +02:00
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
First
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
12.0
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Example of a row that spans multiple lines.
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage}\tabularnewline
|
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Second
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
5.0
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Here's another one. Note the blank line between rows.
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\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:
|
|
|
|
|
2013-01-28 19:49:18 +01:00
|
|
|
\begin{longtable}[c]{@{}clrl@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\toprule
|
2014-08-29 15:54:08 +02:00
|
|
|
\begin{minipage}[b]{0.13\columnwidth}\centering\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Centered Header
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[b]{0.12\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Left Aligned
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[b]{0.14\columnwidth}\raggedleft\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Right Aligned
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[b]{0.30\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Default aligned
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage}\tabularnewline
|
2014-08-28 04:02:20 +02:00
|
|
|
\midrule
|
|
|
|
\endhead
|
2014-08-29 15:54:08 +02:00
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
First
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
12.0
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Example of a row that spans multiple lines.
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage}\tabularnewline
|
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Second
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
5.0
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Here's another one. Note the blank line between rows.
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\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:
|
|
|
|
|
2013-01-28 19:49:18 +01:00
|
|
|
\begin{longtable}[c]{@{}rlcr@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\toprule
|
|
|
|
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:
|
|
|
|
|
2013-01-28 19:49:18 +01:00
|
|
|
\begin{longtable}[c]{@{}clrl@{}}
|
2014-08-28 04:02:20 +02:00
|
|
|
\toprule
|
2014-08-29 15:54:08 +02:00
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
First
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
12.0
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Example of a row that spans multiple lines.
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage}\tabularnewline
|
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Second
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
5.0
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright\strut
|
2011-07-10 18:13:10 +02:00
|
|
|
Here's another one. Note the blank line between rows.
|
2014-08-29 15:54:08 +02:00
|
|
|
\strut\end{minipage}\tabularnewline
|
2013-12-02 10:55:58 +01:00
|
|
|
\bottomrule
|
2012-09-15 23:57:22 +02:00
|
|
|
\end{longtable}
|