git.iko.soy/typeable/pandoc
on 1.19.2.1 help sign in
typeable/pandoc/tests/tables.docbook5
432 lines 7.5 kB history raw
1<para>
2 Simple table with caption:
3</para>
4<table>
5 <title>
6 Demonstration of simple table syntax.
7 </title>
8 <tgroup cols="4">
9 <colspec align="right" />
10 <colspec align="left" />
11 <colspec align="center" />
12 <colspec align="left" />
13 <thead>
14 <row>
15 <entry>
16 Right
17 </entry>
18 <entry>
19 Left
20 </entry>
21 <entry>
22 Center
23 </entry>
24 <entry>
25 Default
26 </entry>
27 </row>
28 </thead>
29 <tbody>
30 <row>
31 <entry>
32 12
33 </entry>
34 <entry>
35 12
36 </entry>
37 <entry>
38 12
39 </entry>
40 <entry>
41 12
42 </entry>
43 </row>
44 <row>
45 <entry>
46 123
47 </entry>
48 <entry>
49 123
50 </entry>
51 <entry>
52 123
53 </entry>
54 <entry>
55 123
56 </entry>
57 </row>
58 <row>
59 <entry>
60 1
61 </entry>
62 <entry>
63 1
64 </entry>
65 <entry>
66 1
67 </entry>
68 <entry>
69 1
70 </entry>
71 </row>
72 </tbody>
73 </tgroup>
74</table>
75<para>
76 Simple table without caption:
77</para>
78<informaltable>
79 <tgroup cols="4">
80 <colspec align="right" />
81 <colspec align="left" />
82 <colspec align="center" />
83 <colspec align="left" />
84 <thead>
85 <row>
86 <entry>
87 Right
88 </entry>
89 <entry>
90 Left
91 </entry>
92 <entry>
93 Center
94 </entry>
95 <entry>
96 Default
97 </entry>
98 </row>
99 </thead>
100 <tbody>
101 <row>
102 <entry>
103 12
104 </entry>
105 <entry>
106 12
107 </entry>
108 <entry>
109 12
110 </entry>
111 <entry>
112 12
113 </entry>
114 </row>
115 <row>
116 <entry>
117 123
118 </entry>
119 <entry>
120 123
121 </entry>
122 <entry>
123 123
124 </entry>
125 <entry>
126 123
127 </entry>
128 </row>
129 <row>
130 <entry>
131 1
132 </entry>
133 <entry>
134 1
135 </entry>
136 <entry>
137 1
138 </entry>
139 <entry>
140 1
141 </entry>
142 </row>
143 </tbody>
144 </tgroup>
145</informaltable>
146<para>
147 Simple table indented two spaces:
148</para>
149<table>
150 <title>
151 Demonstration of simple table syntax.
152 </title>
153 <tgroup cols="4">
154 <colspec align="right" />
155 <colspec align="left" />
156 <colspec align="center" />
157 <colspec align="left" />
158 <thead>
159 <row>
160 <entry>
161 Right
162 </entry>
163 <entry>
164 Left
165 </entry>
166 <entry>
167 Center
168 </entry>
169 <entry>
170 Default
171 </entry>
172 </row>
173 </thead>
174 <tbody>
175 <row>
176 <entry>
177 12
178 </entry>
179 <entry>
180 12
181 </entry>
182 <entry>
183 12
184 </entry>
185 <entry>
186 12
187 </entry>
188 </row>
189 <row>
190 <entry>
191 123
192 </entry>
193 <entry>
194 123
195 </entry>
196 <entry>
197 123
198 </entry>
199 <entry>
200 123
201 </entry>
202 </row>
203 <row>
204 <entry>
205 1
206 </entry>
207 <entry>
208 1
209 </entry>
210 <entry>
211 1
212 </entry>
213 <entry>
214 1
215 </entry>
216 </row>
217 </tbody>
218 </tgroup>
219</table>
220<para>
221 Multiline table with caption:
222</para>
223<table>
224 <title>
225 Here's the caption. It may span multiple lines.
226 </title>
227 <tgroup cols="4">
228 <colspec colwidth="15*" align="center" />
229 <colspec colwidth="13*" align="left" />
230 <colspec colwidth="16*" align="right" />
231 <colspec colwidth="33*" align="left" />
232 <thead>
233 <row>
234 <entry>
235 Centered Header
236 </entry>
237 <entry>
238 Left Aligned
239 </entry>
240 <entry>
241 Right Aligned
242 </entry>
243 <entry>
244 Default aligned
245 </entry>
246 </row>
247 </thead>
248 <tbody>
249 <row>
250 <entry>
251 First
252 </entry>
253 <entry>
254 row
255 </entry>
256 <entry>
257 12.0
258 </entry>
259 <entry>
260 Example of a row that spans multiple lines.
261 </entry>
262 </row>
263 <row>
264 <entry>
265 Second
266 </entry>
267 <entry>
268 row
269 </entry>
270 <entry>
271 5.0
272 </entry>
273 <entry>
274 Here's another one. Note the blank line between rows.
275 </entry>
276 </row>
277 </tbody>
278 </tgroup>
279</table>
280<para>
281 Multiline table without caption:
282</para>
283<informaltable>
284 <tgroup cols="4">
285 <colspec colwidth="15*" align="center" />
286 <colspec colwidth="13*" align="left" />
287 <colspec colwidth="16*" align="right" />
288 <colspec colwidth="33*" align="left" />
289 <thead>
290 <row>
291 <entry>
292 Centered Header
293 </entry>
294 <entry>
295 Left Aligned
296 </entry>
297 <entry>
298 Right Aligned
299 </entry>
300 <entry>
301 Default aligned
302 </entry>
303 </row>
304 </thead>
305 <tbody>
306 <row>
307 <entry>
308 First
309 </entry>
310 <entry>
311 row
312 </entry>
313 <entry>
314 12.0
315 </entry>
316 <entry>
317 Example of a row that spans multiple lines.
318 </entry>
319 </row>
320 <row>
321 <entry>
322 Second
323 </entry>
324 <entry>
325 row
326 </entry>
327 <entry>
328 5.0
329 </entry>
330 <entry>
331 Here's another one. Note the blank line between rows.
332 </entry>
333 </row>
334 </tbody>
335 </tgroup>
336</informaltable>
337<para>
338 Table without column headers:
339</para>
340<informaltable>
341 <tgroup cols="4">
342 <colspec align="right" />
343 <colspec align="left" />
344 <colspec align="center" />
345 <colspec align="right" />
346 <tbody>
347 <row>
348 <entry>
349 12
350 </entry>
351 <entry>
352 12
353 </entry>
354 <entry>
355 12
356 </entry>
357 <entry>
358 12
359 </entry>
360 </row>
361 <row>
362 <entry>
363 123
364 </entry>
365 <entry>
366 123
367 </entry>
368 <entry>
369 123
370 </entry>
371 <entry>
372 123
373 </entry>
374 </row>
375 <row>
376 <entry>
377 1
378 </entry>
379 <entry>
380 1
381 </entry>
382 <entry>
383 1
384 </entry>
385 <entry>
386 1
387 </entry>
388 </row>
389 </tbody>
390 </tgroup>
391</informaltable>
392<para>
393 Multiline table without column headers:
394</para>
395<informaltable>
396 <tgroup cols="4">
397 <colspec colwidth="15*" align="center" />
398 <colspec colwidth="13*" align="left" />
399 <colspec colwidth="16*" align="right" />
400 <colspec colwidth="33*" align="left" />
401 <tbody>
402 <row>
403 <entry>
404 First
405 </entry>
406 <entry>
407 row
408 </entry>
409 <entry>
410 12.0
411 </entry>
412 <entry>
413 Example of a row that spans multiple lines.
414 </entry>
415 </row>
416 <row>
417 <entry>
418 Second
419 </entry>
420 <entry>
421 row
422 </entry>
423 <entry>
424 5.0
425 </entry>
426 <entry>
427 Here's another one. Note the blank line between rows.
428 </entry>
429 </row>
430 </tbody>
431 </tgroup>
432</informaltable>