2007-01-15 19:52:42 +00:00
|
|
|
Simple table with caption:
|
|
|
|
|
2013-01-28 10:49:18 -08:00
|
|
|
\begin{longtable}[c]{@{}rlcl@{}}
|
2013-12-02 09:55:58 +00:00
|
|
|
\toprule\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
Right & Left & Center & Default
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\midrule\endhead
|
2011-07-10 09:13:10 -07:00
|
|
|
12 & 12 & 12 & 12
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
123 & 123 & 123 & 123
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
1 & 1 & 1 & 1
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\bottomrule
|
|
|
|
\addlinespace
|
2012-09-15 17:57:22 -04:00
|
|
|
\caption{Demonstration of simple table syntax.}
|
|
|
|
\end{longtable}
|
2007-01-15 19:52:42 +00:00
|
|
|
|
|
|
|
Simple table without caption:
|
|
|
|
|
2013-01-28 10:49:18 -08:00
|
|
|
\begin{longtable}[c]{@{}rlcl@{}}
|
2013-12-02 09:55:58 +00:00
|
|
|
\toprule\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
Right & Left & Center & Default
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\midrule\endhead
|
2011-07-10 09:13:10 -07:00
|
|
|
12 & 12 & 12 & 12
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
123 & 123 & 123 & 123
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
1 & 1 & 1 & 1
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\bottomrule
|
2012-09-15 17:57:22 -04:00
|
|
|
\end{longtable}
|
2007-01-15 19:52:42 +00:00
|
|
|
|
|
|
|
Simple table indented two spaces:
|
|
|
|
|
2013-01-28 10:49:18 -08:00
|
|
|
\begin{longtable}[c]{@{}rlcl@{}}
|
2013-12-02 09:55:58 +00:00
|
|
|
\toprule\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
Right & Left & Center & Default
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\midrule\endhead
|
2011-07-10 09:13:10 -07:00
|
|
|
12 & 12 & 12 & 12
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
123 & 123 & 123 & 123
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
1 & 1 & 1 & 1
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\bottomrule
|
|
|
|
\addlinespace
|
2012-09-15 17:57:22 -04:00
|
|
|
\caption{Demonstration of simple table syntax.}
|
|
|
|
\end{longtable}
|
2007-01-15 19:52:42 +00:00
|
|
|
|
|
|
|
Multiline table with caption:
|
|
|
|
|
2013-01-28 10:49:18 -08:00
|
|
|
\begin{longtable}[c]{@{}clrl@{}}
|
2013-12-02 09:55:58 +00:00
|
|
|
\toprule\addlinespace
|
2013-08-19 16:03:22 -07:00
|
|
|
\begin{minipage}[b]{0.13\columnwidth}\centering
|
2011-07-10 09:13:10 -07:00
|
|
|
Centered Header
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.12\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
Left Aligned
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.14\columnwidth}\raggedleft
|
2011-07-10 09:13:10 -07:00
|
|
|
Right Aligned
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.30\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
Default aligned
|
2013-01-05 20:03:50 -08:00
|
|
|
\end{minipage}
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\midrule\endhead
|
2013-08-19 16:03:22 -07:00
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering
|
2011-07-10 09:13:10 -07:00
|
|
|
First
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
row
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
|
2011-07-10 09:13:10 -07:00
|
|
|
12.0
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
Example of a row that spans multiple lines.
|
2013-01-05 20:03:50 -08:00
|
|
|
\end{minipage}
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2013-08-19 16:03:22 -07:00
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering
|
2011-07-10 09:13:10 -07:00
|
|
|
Second
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
row
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
|
2011-07-10 09:13:10 -07:00
|
|
|
5.0
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
Here's another one. Note the blank line between rows.
|
2013-01-05 20:03:50 -08:00
|
|
|
\end{minipage}
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\bottomrule
|
|
|
|
\addlinespace
|
2012-09-15 17:57:22 -04:00
|
|
|
\caption{Here's the caption. It may span multiple lines.}
|
|
|
|
\end{longtable}
|
2007-01-15 19:52:42 +00:00
|
|
|
|
|
|
|
Multiline table without caption:
|
|
|
|
|
2013-01-28 10:49:18 -08:00
|
|
|
\begin{longtable}[c]{@{}clrl@{}}
|
2013-12-02 09:55:58 +00:00
|
|
|
\toprule\addlinespace
|
2013-08-19 16:03:22 -07:00
|
|
|
\begin{minipage}[b]{0.13\columnwidth}\centering
|
2011-07-10 09:13:10 -07:00
|
|
|
Centered Header
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.12\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
Left Aligned
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.14\columnwidth}\raggedleft
|
2011-07-10 09:13:10 -07:00
|
|
|
Right Aligned
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[b]{0.30\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
Default aligned
|
2013-01-05 20:03:50 -08:00
|
|
|
\end{minipage}
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\midrule\endhead
|
2013-08-19 16:03:22 -07:00
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering
|
2011-07-10 09:13:10 -07:00
|
|
|
First
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
row
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
|
2011-07-10 09:13:10 -07:00
|
|
|
12.0
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
Example of a row that spans multiple lines.
|
2013-01-05 20:03:50 -08:00
|
|
|
\end{minipage}
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2013-08-19 16:03:22 -07:00
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering
|
2011-07-10 09:13:10 -07:00
|
|
|
Second
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
row
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
|
2011-07-10 09:13:10 -07:00
|
|
|
5.0
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
Here's another one. Note the blank line between rows.
|
2013-01-05 20:03:50 -08:00
|
|
|
\end{minipage}
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\bottomrule
|
2012-09-15 17:57:22 -04:00
|
|
|
\end{longtable}
|
2007-01-15 19:52:42 +00:00
|
|
|
|
2010-03-07 19:34:57 +00:00
|
|
|
Table without column headers:
|
|
|
|
|
2013-01-28 10:49:18 -08:00
|
|
|
\begin{longtable}[c]{@{}rlcr@{}}
|
2013-12-02 09:55:58 +00:00
|
|
|
\toprule\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
12 & 12 & 12 & 12
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
123 & 123 & 123 & 123
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2011-07-10 09:13:10 -07:00
|
|
|
1 & 1 & 1 & 1
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\bottomrule
|
2012-09-15 17:57:22 -04:00
|
|
|
\end{longtable}
|
2010-03-07 19:34:57 +00:00
|
|
|
|
2010-03-07 19:35:27 +00:00
|
|
|
Multiline table without column headers:
|
|
|
|
|
2013-01-28 10:49:18 -08:00
|
|
|
\begin{longtable}[c]{@{}clrl@{}}
|
2013-12-02 09:55:58 +00:00
|
|
|
\toprule\addlinespace
|
2013-08-19 16:03:22 -07:00
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering
|
2011-07-10 09:13:10 -07:00
|
|
|
First
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
row
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
|
2011-07-10 09:13:10 -07:00
|
|
|
12.0
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
Example of a row that spans multiple lines.
|
2013-01-05 20:03:50 -08:00
|
|
|
\end{minipage}
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
2013-08-19 16:03:22 -07:00
|
|
|
\begin{minipage}[t]{0.13\columnwidth}\centering
|
2011-07-10 09:13:10 -07:00
|
|
|
Second
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
row
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
|
2011-07-10 09:13:10 -07:00
|
|
|
5.0
|
2013-08-19 16:03:22 -07:00
|
|
|
\end{minipage} & \begin{minipage}[t]{0.30\columnwidth}\raggedright
|
2011-07-10 09:13:10 -07:00
|
|
|
Here's another one. Note the blank line between rows.
|
2013-01-05 20:03:50 -08:00
|
|
|
\end{minipage}
|
2013-12-02 09:55:58 +00:00
|
|
|
\\\addlinespace
|
|
|
|
\bottomrule
|
2012-09-15 17:57:22 -04:00
|
|
|
\end{longtable}
|