git.iko.soy/typeable/pandoc
on 1.9.0.3 help sign in
typeable/pandoc/tests/tables.latex
176 lines 3.4 kB history raw
1Simple table with caption:
3\ctable[caption = Demonstration of simple table syntax.,
4pos = H, center, botcap]{rlcl}
5{% notes
6}
7{% rows
8\FL
9Right & Left & Center & Default
10\ML
1112 & 12 & 12 & 12
12\\\noalign{\medskip}
13123 & 123 & 123 & 123
14\\\noalign{\medskip}
151 & 1 & 1 & 1
16\LL
19Simple table without caption:
21\ctable[pos = H, center, botcap]{rlcl}
22{% notes
24{% rows
25\FL
26Right & Left & Center & Default
27\ML
2812 & 12 & 12 & 12
29\\\noalign{\medskip}
30123 & 123 & 123 & 123
31\\\noalign{\medskip}
321 & 1 & 1 & 1
33\LL
36Simple table indented two spaces:
38\ctable[caption = Demonstration of simple table syntax.,
39pos = H, center, botcap]{rlcl}
40{% notes
42{% rows
43\FL
44Right & Left & Center & Default
45\ML
4612 & 12 & 12 & 12
47\\\noalign{\medskip}
48123 & 123 & 123 & 123
49\\\noalign{\medskip}
501 & 1 & 1 & 1
51\LL
54Multiline table with caption:
56\ctable[caption = Here's the caption. It may span multiple lines.,
57pos = H, center, botcap]{clrl}
58{% notes
60{% rows
61\FL
62\parbox[b]{0.15\columnwidth}{\centering
63Centered Header
64} & \parbox[b]{0.14\columnwidth}{\raggedright
65Left Aligned
66} & \parbox[b]{0.16\columnwidth}{\raggedleft
67Right Aligned
68} & \parbox[b]{0.34\columnwidth}{\raggedright
69Default aligned
71\ML
72\parbox[t]{0.15\columnwidth}{\centering
73First
74} & \parbox[t]{0.14\columnwidth}{\raggedright
75row
76} & \parbox[t]{0.16\columnwidth}{\raggedleft
7712.0
78} & \parbox[t]{0.34\columnwidth}{\raggedright
79Example of a row that spans multiple lines.
81\\\noalign{\medskip}
82\parbox[t]{0.15\columnwidth}{\centering
83Second
84} & \parbox[t]{0.14\columnwidth}{\raggedright
85row
86} & \parbox[t]{0.16\columnwidth}{\raggedleft
875.0
88} & \parbox[t]{0.34\columnwidth}{\raggedright
89Here's another one. Note the blank line between rows.
91\LL
94Multiline table without caption:
96\ctable[pos = H, center, botcap]{clrl}
97{% notes
99{% rows
100\FL
101\parbox[b]{0.15\columnwidth}{\centering
102Centered Header
103} & \parbox[b]{0.14\columnwidth}{\raggedright
104Left Aligned
105} & \parbox[b]{0.16\columnwidth}{\raggedleft
106Right Aligned
107} & \parbox[b]{0.34\columnwidth}{\raggedright
108Default aligned
110\ML
111\parbox[t]{0.15\columnwidth}{\centering
112First
113} & \parbox[t]{0.14\columnwidth}{\raggedright
114row
115} & \parbox[t]{0.16\columnwidth}{\raggedleft
11612.0
117} & \parbox[t]{0.34\columnwidth}{\raggedright
118Example of a row that spans multiple lines.
120\\\noalign{\medskip}
121\parbox[t]{0.15\columnwidth}{\centering
122Second
123} & \parbox[t]{0.14\columnwidth}{\raggedright
124row
125} & \parbox[t]{0.16\columnwidth}{\raggedleft
1265.0
127} & \parbox[t]{0.34\columnwidth}{\raggedright
128Here's another one. Note the blank line between rows.
130\LL
133Table without column headers:
135\ctable[pos = H, center, botcap]{rlcr}
136{% notes
138{% rows
139\FL
14012 & 12 & 12 & 12
141\\\noalign{\medskip}
142123 & 123 & 123 & 123
143\\\noalign{\medskip}
1441 & 1 & 1 & 1
145\LL
148Multiline table without column headers:
150\ctable[pos = H, center, botcap]{clrl}
151{% notes
153{% rows
154\FL
155\parbox[t]{0.15\columnwidth}{\centering
156First
157} & \parbox[t]{0.14\columnwidth}{\raggedright
158row
159} & \parbox[t]{0.16\columnwidth}{\raggedleft
16012.0
161} & \parbox[t]{0.34\columnwidth}{\raggedright
162Example of a row that spans multiple lines.
164\\\noalign{\medskip}
165\parbox[t]{0.15\columnwidth}{\centering
166Second
167} & \parbox[t]{0.14\columnwidth}{\raggedright
168row
169} & \parbox[t]{0.16\columnwidth}{\raggedleft
1705.0
171} & \parbox[t]{0.34\columnwidth}{\raggedright
172Here's another one. Note the blank line between rows.
174\LL