2007-01-15 20:52:42 +01:00
|
|
|
Simple table with caption:
|
|
|
|
|
2013-01-28 19:49:18 +01:00
|
|
|
\begin{longtable}[c]{@{}rlcl@{}}
|
2012-09-15 23:57:22 +02:00
|
|
|
\hline\noalign{\medskip}
|
2011-07-10 18:13:10 +02:00
|
|
|
Right & Left & Center & Default
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
2012-09-16 05:38:19 +02:00
|
|
|
\hline\noalign{\medskip}
|
2011-07-10 18:13:10 +02:00
|
|
|
12 & 12 & 12 & 12
|
|
|
|
\\\noalign{\medskip}
|
|
|
|
123 & 123 & 123 & 123
|
|
|
|
\\\noalign{\medskip}
|
|
|
|
1 & 1 & 1 & 1
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
|
|
|
\hline
|
|
|
|
\noalign{\medskip}
|
|
|
|
\caption{Demonstration of simple table syntax.}
|
|
|
|
\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@{}}
|
2012-09-15 23:57:22 +02:00
|
|
|
\hline\noalign{\medskip}
|
2011-07-10 18:13:10 +02:00
|
|
|
Right & Left & Center & Default
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
2012-09-16 05:38:19 +02:00
|
|
|
\hline\noalign{\medskip}
|
2011-07-10 18:13:10 +02:00
|
|
|
12 & 12 & 12 & 12
|
|
|
|
\\\noalign{\medskip}
|
|
|
|
123 & 123 & 123 & 123
|
|
|
|
\\\noalign{\medskip}
|
|
|
|
1 & 1 & 1 & 1
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
|
|
|
\hline
|
|
|
|
\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@{}}
|
2012-09-15 23:57:22 +02:00
|
|
|
\hline\noalign{\medskip}
|
2011-07-10 18:13:10 +02:00
|
|
|
Right & Left & Center & Default
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
2012-09-16 05:38:19 +02:00
|
|
|
\hline\noalign{\medskip}
|
2011-07-10 18:13:10 +02:00
|
|
|
12 & 12 & 12 & 12
|
|
|
|
\\\noalign{\medskip}
|
|
|
|
123 & 123 & 123 & 123
|
|
|
|
\\\noalign{\medskip}
|
|
|
|
1 & 1 & 1 & 1
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
|
|
|
\hline
|
|
|
|
\noalign{\medskip}
|
|
|
|
\caption{Demonstration of simple table syntax.}
|
|
|
|
\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@{}}
|
2012-09-15 23:57:22 +02:00
|
|
|
\hline\noalign{\medskip}
|
2013-01-06 05:03:50 +01:00
|
|
|
\begin{minipage}[b]{0.15\columnwidth}\centering
|
2011-07-10 18:13:10 +02:00
|
|
|
Centered Header
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.14\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
Left Aligned
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.16\columnwidth}\raggedleft
|
2011-07-10 18:13:10 +02:00
|
|
|
Right Aligned
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.34\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
Default aligned
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage}
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
2012-09-16 05:38:19 +02:00
|
|
|
\hline\noalign{\medskip}
|
2013-01-06 05:03:50 +01:00
|
|
|
\begin{minipage}[t]{0.15\columnwidth}\centering
|
2011-07-10 18:13:10 +02:00
|
|
|
First
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.16\columnwidth}\raggedleft
|
2011-07-10 18:13:10 +02:00
|
|
|
12.0
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.34\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
Example of a row that spans multiple lines.
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage}
|
2011-07-10 18:13:10 +02:00
|
|
|
\\\noalign{\medskip}
|
2013-01-06 05:03:50 +01:00
|
|
|
\begin{minipage}[t]{0.15\columnwidth}\centering
|
2011-07-10 18:13:10 +02:00
|
|
|
Second
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.16\columnwidth}\raggedleft
|
2011-07-10 18:13:10 +02:00
|
|
|
5.0
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.34\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
Here's another one. Note the blank line between rows.
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage}
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
|
|
|
\hline
|
|
|
|
\noalign{\medskip}
|
|
|
|
\caption{Here's the caption. It may span multiple lines.}
|
|
|
|
\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@{}}
|
2012-09-15 23:57:22 +02:00
|
|
|
\hline\noalign{\medskip}
|
2013-01-06 05:03:50 +01:00
|
|
|
\begin{minipage}[b]{0.15\columnwidth}\centering
|
2011-07-10 18:13:10 +02:00
|
|
|
Centered Header
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.14\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
Left Aligned
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.16\columnwidth}\raggedleft
|
2011-07-10 18:13:10 +02:00
|
|
|
Right Aligned
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.34\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
Default aligned
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage}
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
2012-09-16 05:38:19 +02:00
|
|
|
\hline\noalign{\medskip}
|
2013-01-06 05:03:50 +01:00
|
|
|
\begin{minipage}[t]{0.15\columnwidth}\centering
|
2011-07-10 18:13:10 +02:00
|
|
|
First
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.16\columnwidth}\raggedleft
|
2011-07-10 18:13:10 +02:00
|
|
|
12.0
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.34\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
Example of a row that spans multiple lines.
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage}
|
2011-07-10 18:13:10 +02:00
|
|
|
\\\noalign{\medskip}
|
2013-01-06 05:03:50 +01:00
|
|
|
\begin{minipage}[t]{0.15\columnwidth}\centering
|
2011-07-10 18:13:10 +02:00
|
|
|
Second
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.16\columnwidth}\raggedleft
|
2011-07-10 18:13:10 +02:00
|
|
|
5.0
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.34\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
Here's another one. Note the blank line between rows.
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage}
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
|
|
|
\hline
|
|
|
|
\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@{}}
|
2012-09-15 23:57:22 +02:00
|
|
|
\hline\noalign{\medskip}
|
2011-07-10 18:13:10 +02:00
|
|
|
12 & 12 & 12 & 12
|
|
|
|
\\\noalign{\medskip}
|
|
|
|
123 & 123 & 123 & 123
|
|
|
|
\\\noalign{\medskip}
|
|
|
|
1 & 1 & 1 & 1
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
|
|
|
\hline
|
|
|
|
\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@{}}
|
2012-09-15 23:57:22 +02:00
|
|
|
\hline\noalign{\medskip}
|
2013-01-06 05:03:50 +01:00
|
|
|
\begin{minipage}[t]{0.15\columnwidth}\centering
|
2011-07-10 18:13:10 +02:00
|
|
|
First
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.16\columnwidth}\raggedleft
|
2011-07-10 18:13:10 +02:00
|
|
|
12.0
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.34\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
Example of a row that spans multiple lines.
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage}
|
2011-07-10 18:13:10 +02:00
|
|
|
\\\noalign{\medskip}
|
2013-01-06 05:03:50 +01:00
|
|
|
\begin{minipage}[t]{0.15\columnwidth}\centering
|
2011-07-10 18:13:10 +02:00
|
|
|
Second
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
row
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.16\columnwidth}\raggedleft
|
2011-07-10 18:13:10 +02:00
|
|
|
5.0
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.34\columnwidth}\raggedright
|
2011-07-10 18:13:10 +02:00
|
|
|
Here's another one. Note the blank line between rows.
|
2013-01-06 05:03:50 +01:00
|
|
|
\end{minipage}
|
2012-09-15 23:57:22 +02:00
|
|
|
\\\noalign{\medskip}
|
|
|
|
\hline
|
|
|
|
\end{longtable}
|