git.iko.soy/typeable/pandoc
on rc/2.11.0.4 help sign in
typeable/pandoc/test/tables.latex
170 lines 5.0 kB history raw
1Simple table with caption:
3\begin{longtable}[]{@{}rlcl@{}}
4\caption{Demonstration of simple table syntax.}\tabularnewline
5\toprule
6Right & Left & Center & Default\tabularnewline
7\midrule
8\endfirsthead
9\toprule
10Right & Left & Center & Default\tabularnewline
11\midrule
12\endhead
1312 & 12 & 12 & 12\tabularnewline
14123 & 123 & 123 & 123\tabularnewline
151 & 1 & 1 & 1\tabularnewline
16\bottomrule
17\end{longtable}
19Simple table without caption:
21\begin{longtable}[]{@{}rlcl@{}}
22\toprule
23Right & Left & Center & Default\tabularnewline
24\midrule
25\endhead
2612 & 12 & 12 & 12\tabularnewline
27123 & 123 & 123 & 123\tabularnewline
281 & 1 & 1 & 1\tabularnewline
29\bottomrule
30\end{longtable}
32Simple table indented two spaces:
34\begin{longtable}[]{@{}rlcl@{}}
35\caption{Demonstration of simple table syntax.}\tabularnewline
36\toprule
37Right & Left & Center & Default\tabularnewline
38\midrule
39\endfirsthead
40\toprule
41Right & Left & Center & Default\tabularnewline
42\midrule
43\endhead
4412 & 12 & 12 & 12\tabularnewline
45123 & 123 & 123 & 123\tabularnewline
461 & 1 & 1 & 1\tabularnewline
47\bottomrule
48\end{longtable}
50Multiline table with caption:
52\begin{longtable}[]{@{}clrl@{}}
53\caption{Here's the caption. It may span multiple lines.}\tabularnewline
54\toprule
55\begin{minipage}[b]{0.13\columnwidth}\centering
56Centered Header\strut
57\end{minipage} & \begin{minipage}[b]{0.12\columnwidth}\raggedright
58Left Aligned\strut
59\end{minipage} & \begin{minipage}[b]{0.14\columnwidth}\raggedleft
60Right Aligned\strut
61\end{minipage} & \begin{minipage}[b]{0.31\columnwidth}\raggedright
62Default aligned\strut
63\end{minipage}\tabularnewline
64\midrule
65\endfirsthead
66\toprule
67\begin{minipage}[b]{0.13\columnwidth}\centering
68Centered Header\strut
69\end{minipage} & \begin{minipage}[b]{0.12\columnwidth}\raggedright
70Left Aligned\strut
71\end{minipage} & \begin{minipage}[b]{0.14\columnwidth}\raggedleft
72Right Aligned\strut
73\end{minipage} & \begin{minipage}[b]{0.31\columnwidth}\raggedright
74Default aligned\strut
75\end{minipage}\tabularnewline
76\midrule
77\endhead
78\begin{minipage}[t]{0.13\columnwidth}\centering
79First\strut
80\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
81row\strut
82\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
8312.0\strut
84\end{minipage} & \begin{minipage}[t]{0.31\columnwidth}\raggedright
85Example of a row that spans multiple lines.\strut
86\end{minipage}\tabularnewline
87\begin{minipage}[t]{0.13\columnwidth}\centering
88Second\strut
89\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
90row\strut
91\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
925.0\strut
93\end{minipage} & \begin{minipage}[t]{0.31\columnwidth}\raggedright
94Here's another one. Note the blank line between rows.\strut
95\end{minipage}\tabularnewline
96\bottomrule
97\end{longtable}
99Multiline table without caption:
101\begin{longtable}[]{@{}clrl@{}}
102\toprule
103\begin{minipage}[b]{0.13\columnwidth}\centering
104Centered Header\strut
105\end{minipage} & \begin{minipage}[b]{0.12\columnwidth}\raggedright
106Left Aligned\strut
107\end{minipage} & \begin{minipage}[b]{0.14\columnwidth}\raggedleft
108Right Aligned\strut
109\end{minipage} & \begin{minipage}[b]{0.31\columnwidth}\raggedright
110Default aligned\strut
111\end{minipage}\tabularnewline
112\midrule
113\endhead
114\begin{minipage}[t]{0.13\columnwidth}\centering
115First\strut
116\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
117row\strut
118\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
11912.0\strut
120\end{minipage} & \begin{minipage}[t]{0.31\columnwidth}\raggedright
121Example of a row that spans multiple lines.\strut
122\end{minipage}\tabularnewline
123\begin{minipage}[t]{0.13\columnwidth}\centering
124Second\strut
125\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
126row\strut
127\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
1285.0\strut
129\end{minipage} & \begin{minipage}[t]{0.31\columnwidth}\raggedright
130Here's another one. Note the blank line between rows.\strut
131\end{minipage}\tabularnewline
132\bottomrule
133\end{longtable}
135Table without column headers:
137\begin{longtable}[]{@{}rlcr@{}}
138\toprule
139\endhead
14012 & 12 & 12 & 12\tabularnewline
141123 & 123 & 123 & 123\tabularnewline
1421 & 1 & 1 & 1\tabularnewline
143\bottomrule
144\end{longtable}
146Multiline table without column headers:
148\begin{longtable}[]{@{}clrl@{}}
149\toprule
150\endhead
151\begin{minipage}[t]{0.13\columnwidth}\centering
152First\strut
153\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
154row\strut
155\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
15612.0\strut
157\end{minipage} & \begin{minipage}[t]{0.31\columnwidth}\raggedright
158Example of a row that spans multiple lines.\strut
159\end{minipage}\tabularnewline
160\begin{minipage}[t]{0.13\columnwidth}\centering
161Second\strut
162\end{minipage} & \begin{minipage}[t]{0.12\columnwidth}\raggedright
163row\strut
164\end{minipage} & \begin{minipage}[t]{0.14\columnwidth}\raggedleft
1655.0\strut
166\end{minipage} & \begin{minipage}[t]{0.31\columnwidth}\raggedright
167Here's another one. Note the blank line between rows.\strut
168\end{minipage}\tabularnewline
169\bottomrule
170\end{longtable}