3.13 Skribilo User Manual — Table |
Tables are defined by the means of the table function.
| prototype | ||
|---|---|---|
(table [:rulecolor] [:cellspacing] [:cellpadding] [:cellstyle | ||
| option | engines | description |
| :ident | html lout latex context xml | The node identifier. |
| :class | html lout latex context xml | The node class. |
| :border | html lout context | The table border thickness. |
| :width | html lout latex context | The width of the table. |
| :frame | html lout latex context | Which parts of frame to render. Must be one of
none, above, below,
hsides, vsides, lhs,
rhs, box, border. |
| :rules | html lout latex context | Rulings between rows and cols, Must be one of
none, rows, cols, header,
all. |
| :cellstyle | html latex | The style of cells border. Must be either
collapse, separate, or a length representing
the horizontal and vertical space separating the cells. |
| :cellpadding | html lout context | A number of pixels around each cell. |
| :cellspacing | html | An optional number of pixels used to separate each cell of the table. A negative uses the target default. |
| :rulecolor | lout | The color of rules (see Section Frames and Colors). |
| argument | description | |
row... | The rows of the table. Each row must be constructed by the trtr function. | |
Note: Table rendering may be only
partially supported by graphical agents. For instance, the cellstyle
attribute is only supported by HTML engines supporting
CSS2.
Table rows are defined by the tr function.
| prototype | ||
|---|---|---|
(tr [:bg] [:class] [:ident] | ||
| option | engines | description |
| :ident | html lout latex context xml | The node identifier. |
| :class | html lout latex context xml | The node class. |
| :bg | html lout latex context | The background color of the row. |
| argument | description | |
cell... | The row cells. | |
Two functions define table cells: th for header cells and
td for plain cells.
| prototype | ||
|---|---|---|
(th [:bg] [:rowspan | ||
(td [:bg] [:rowspan | ||
| option | engines | description |
| :ident | html lout latex context xml | The node identifier. |
| :class | html lout latex context xml | The node class. |
| :bg | html lout | The background color of the cell. |
| :width | html lout latex context | The width of the table. |
| :align | html lout latex context | The horizontal alignment of the table cell (left, right, or center. Some engines, such as the HTML engine, also supports a character for the alignment.) |
| :valign | html lout latex context | The vertical alignment of the cell. The value can
be top, center, bottom. |
| :colspan | html lout latex context | The number of columns that the cell expands to. |
| :rowspan | html lout | The number of columns that the cell spans over. |
| argument | description | |
node | The value of the cell. | |
... produces:
| ||||||||||||||||||||