1Simple table with caption:
2
3\startplacetable[title={Demonstration of simple table syntax.}]
4\startxtable
5\startxtablehead[head]
6\startxrow
7\startxcell[align=left] Right \stopxcell
8\startxcell[align=right] Left \stopxcell
9\startxcell[align=middle] Center \stopxcell
10\startxcell Default \stopxcell
11\stopxrow
12\stopxtablehead
13\startxtablebody[body]
14\startxrow
15\startxcell[align=left] 12 \stopxcell
16\startxcell[align=right] 12 \stopxcell
17\startxcell[align=middle] 12 \stopxcell
18\startxcell 12 \stopxcell
19\stopxrow
20\startxrow
21\startxcell[align=left] 123 \stopxcell
22\startxcell[align=right] 123 \stopxcell
23\startxcell[align=middle] 123 \stopxcell
24\startxcell 123 \stopxcell
25\stopxrow
26\stopxtablebody
27\startxtablefoot[foot]
28\startxrow
29\startxcell[align=left] 1 \stopxcell
30\startxcell[align=right] 1 \stopxcell
31\startxcell[align=middle] 1 \stopxcell
32\startxcell 1 \stopxcell
33\stopxrow
34\stopxtablefoot
35\stopxtable
36\stopplacetable
37
38Simple table without caption:
39
40\startplacetable[location=none]
41\startxtable
42\startxtablehead[head]
43\startxrow
44\startxcell[align=left] Right \stopxcell
45\startxcell[align=right] Left \stopxcell
46\startxcell[align=middle] Center \stopxcell
47\startxcell Default \stopxcell
48\stopxrow
49\stopxtablehead
50\startxtablebody[body]
51\startxrow
52\startxcell[align=left] 12 \stopxcell
53\startxcell[align=right] 12 \stopxcell
54\startxcell[align=middle] 12 \stopxcell
55\startxcell 12 \stopxcell
56\stopxrow
57\startxrow
58\startxcell[align=left] 123 \stopxcell
59\startxcell[align=right] 123 \stopxcell
60\startxcell[align=middle] 123 \stopxcell
61\startxcell 123 \stopxcell
62\stopxrow
63\stopxtablebody
64\startxtablefoot[foot]
65\startxrow
66\startxcell[align=left] 1 \stopxcell
67\startxcell[align=right] 1 \stopxcell
68\startxcell[align=middle] 1 \stopxcell
69\startxcell 1 \stopxcell
70\stopxrow
71\stopxtablefoot
72\stopxtable
73\stopplacetable
74
75Simple table indented two spaces:
76
77\startplacetable[title={Demonstration of simple table syntax.}]
78\startxtable
79\startxtablehead[head]
80\startxrow
81\startxcell[align=left] Right \stopxcell
82\startxcell[align=right] Left \stopxcell
83\startxcell[align=middle] Center \stopxcell
84\startxcell Default \stopxcell
85\stopxrow
86\stopxtablehead
87\startxtablebody[body]
88\startxrow
89\startxcell[align=left] 12 \stopxcell
90\startxcell[align=right] 12 \stopxcell
91\startxcell[align=middle] 12 \stopxcell
92\startxcell 12 \stopxcell
93\stopxrow
94\startxrow
95\startxcell[align=left] 123 \stopxcell
96\startxcell[align=right] 123 \stopxcell
97\startxcell[align=middle] 123 \stopxcell
98\startxcell 123 \stopxcell
99\stopxrow
100\stopxtablebody
101\startxtablefoot[foot]
102\startxrow
103\startxcell[align=left] 1 \stopxcell
104\startxcell[align=right] 1 \stopxcell
105\startxcell[align=middle] 1 \stopxcell
106\startxcell 1 \stopxcell
107\stopxrow
108\stopxtablefoot
109\stopxtable
110\stopplacetable
111
112Multiline table with caption:
113
114\startplacetable[title={Here's the caption. It may span multiple lines.}]
115\startxtable
116\startxtablehead[head]
117\startxrow
118\startxcell[align=middle,width={0.15\textwidth}] Centered Header \stopxcell
119\startxcell[align=right,width={0.14\textwidth}] Left Aligned \stopxcell
120\startxcell[align=left,width={0.16\textwidth}] Right Aligned \stopxcell
121\startxcell[align=right,width={0.35\textwidth}] Default aligned \stopxcell
122\stopxrow
123\stopxtablehead
124\startxtablebody[body]
125\startxrow
126\startxcell[align=middle,width={0.15\textwidth}] First \stopxcell
127\startxcell[align=right,width={0.14\textwidth}] row \stopxcell
128\startxcell[align=left,width={0.16\textwidth}] 12.0 \stopxcell
129\startxcell[align=right,width={0.35\textwidth}] Example of a row that spans
130multiple lines. \stopxcell
131\stopxrow
132\stopxtablebody
133\startxtablefoot[foot]
134\startxrow
135\startxcell[align=middle,width={0.15\textwidth}] Second \stopxcell
136\startxcell[align=right,width={0.14\textwidth}] row \stopxcell
137\startxcell[align=left,width={0.16\textwidth}] 5.0 \stopxcell
138\startxcell[align=right,width={0.35\textwidth}] Here's another one. Note the
139blank line between rows. \stopxcell
140\stopxrow
141\stopxtablefoot
142\stopxtable
143\stopplacetable
144
145Multiline table without caption:
146
147\startplacetable[location=none]
148\startxtable
149\startxtablehead[head]
150\startxrow
151\startxcell[align=middle,width={0.15\textwidth}] Centered Header \stopxcell
152\startxcell[align=right,width={0.14\textwidth}] Left Aligned \stopxcell
153\startxcell[align=left,width={0.16\textwidth}] Right Aligned \stopxcell
154\startxcell[align=right,width={0.35\textwidth}] Default aligned \stopxcell
155\stopxrow
156\stopxtablehead
157\startxtablebody[body]
158\startxrow
159\startxcell[align=middle,width={0.15\textwidth}] First \stopxcell
160\startxcell[align=right,width={0.14\textwidth}] row \stopxcell
161\startxcell[align=left,width={0.16\textwidth}] 12.0 \stopxcell
162\startxcell[align=right,width={0.35\textwidth}] Example of a row that spans
163multiple lines. \stopxcell
164\stopxrow
165\stopxtablebody
166\startxtablefoot[foot]
167\startxrow
168\startxcell[align=middle,width={0.15\textwidth}] Second \stopxcell
169\startxcell[align=right,width={0.14\textwidth}] row \stopxcell
170\startxcell[align=left,width={0.16\textwidth}] 5.0 \stopxcell
171\startxcell[align=right,width={0.35\textwidth}] Here's another one. Note the
172blank line between rows. \stopxcell
173\stopxrow
174\stopxtablefoot
175\stopxtable
176\stopplacetable
177
178Table without column headers:
179
180\startplacetable[location=none]
181\startxtable
182\startxtablebody[body]
183\startxrow
184\startxcell[align=left] 12 \stopxcell
185\startxcell[align=right] 12 \stopxcell
186\startxcell[align=middle] 12 \stopxcell
187\startxcell[align=left] 12 \stopxcell
188\stopxrow
189\startxrow
190\startxcell[align=left] 123 \stopxcell
191\startxcell[align=right] 123 \stopxcell
192\startxcell[align=middle] 123 \stopxcell
193\startxcell[align=left] 123 \stopxcell
194\stopxrow
195\stopxtablebody
196\startxtablefoot[foot]
197\startxrow
198\startxcell[align=left] 1 \stopxcell
199\startxcell[align=right] 1 \stopxcell
200\startxcell[align=middle] 1 \stopxcell
201\startxcell[align=left] 1 \stopxcell
202\stopxrow
203\stopxtablefoot
204\stopxtable
205\stopplacetable
206
207Multiline table without column headers:
208
209\startplacetable[location=none]
210\startxtable
211\startxtablebody[body]
212\startxrow
213\startxcell[align=middle,width={0.15\textwidth}] First \stopxcell
214\startxcell[align=right,width={0.14\textwidth}] row \stopxcell
215\startxcell[align=left,width={0.16\textwidth}] 12.0 \stopxcell
216\startxcell[width={0.35\textwidth}] Example of a row that spans multiple
217lines. \stopxcell
218\stopxrow
219\stopxtablebody
220\startxtablefoot[foot]
221\startxrow
222\startxcell[align=middle,width={0.15\textwidth}] Second \stopxcell
223\startxcell[align=right,width={0.14\textwidth}] row \stopxcell
224\startxcell[align=left,width={0.16\textwidth}] 5.0 \stopxcell
225\startxcell[width={0.35\textwidth}] Here's another one. Note the blank line
226between rows. \stopxcell
227\stopxrow
228\stopxtablefoot
229\stopxtable
230\stopplacetable
231