Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 943 Bytes

grid-table.rst

File metadata and controls

29 lines (21 loc) · 943 Bytes

Grid tables

Tables in RST can be obtained by simply "drawing" their structure with a combination of symbols, as in the following code snippet (it's easier seen than explained!). These are called grid tables in the documentation.

+------+---------------+
| Item | Character     |
+======+===============+
| 1    | Puss in Boots |
+------+---------------+
| 2    | Cinderella    |
+------+---------------+

A row of equal signs separates the first row from the rest, if you want it to be the label of your table.

Grid tables are well rendered in the PDF output. This is the output from the snippet above.

Grid table
Item Character
1 Puss in Boots
2 Cinderella