Tables¶
The table{} keyword creates a table of two rows. As for the other keywords,
values are separated by ;, and options follow a | separator. There must be
an even number of values, the first half will be in the first row, the second
half in the second row.
The table{} keyword has several options:
- title1 and title2 set rows titles
- borders (can be
full(default),inner,inner_colsornone) defines the borders of data area.inner_colsdraws the vertical separators alone — columns without a grid, as a conversion table is drawn - title_borders (can be
full(default)innerornone) defines the borders of title column (ignored if title1 and title2 are unset) - col_width (can be
equal(default) orauto): ifequal, then all data columns share the width of the widest cell; ifauto, then each data column is as wide as its widest cell. - row_height (can be
equal(default) orauto): ifequal, then both rows share the height of the tallest cell (including title cells); ifauto, then each row is sized to its tallest cell. - baseline (can be
middle(default),toporbottom): sets the vertical alignment of the table with the surrounding text.topandbottommatch first and second row. - bubble: defines the content of the bubble (with arrow from first to second row) drawn to the right of the table. If unset (default), no bubble is drawn.
- color: sets the color of the table data.
- border_color: sets the color of the table borders.
English locale:
| Expression | Renders as |
|---|---|
table{5 ; 10 ; 12 ; 1.25 ; 2.5 ; 3 | bubble=×text{? | color=#b6251c}} |
|
table{5 ; 10 ; 12 ; 1.25 ; 2.5 ; 3 | bubble=×math{¼ | color=#3b7d25}} |
|
table{3 ; 4 ; 5 ; 9 ; 16 ; 25 | title1=Side ; title2=Area ; borders=inner ; title_borders=none ; border_color=#4d4d4d} |
|
table{km ; hm ; dam ; m ; 1 ; 5 ; 0 ; 0 | borders=inner_cols} |
French locale:
| Expression | Renders as |
|---|---|
table{5 ; 10 ; 12 ; 1.25 ; 2.5 ; 3 | bubble=×text{? | color=#b6251c}} |
|
table{5 ; 10 ; 12 ; 1.25 ; 2.5 ; 3 | bubble=×math{¼ | color=#3b7d25}} |