3.13 Skribilo User Manual — Table |
Tables are defined by the means of the table
function.
(table [:rulecolor] [:cellspacing] [:cellpadding] [:cellstyle 'collapse
] [:rules 'none
] [:frame 'none
] [:width] [:border] [:&location] [:class] [:ident] row...
)
none
, above
, below
,
hsides
, vsides
, lhs
,
rhs
, box
, border
. html lout latex context info none
, rows
, cols
, header
,
all
. html lout latex context info collapse
, separate
, or a length representing
the horizontal and vertical space separating the cells. html latex 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.
Two functions define table cells: th
for header cells and
td
for plain cells.
(th [:bg] [:rowspan 1
] [:colspan 1
] [:valign] [:align 'center
] [:width] [:class] [:ident] node
)
(td [:bg] [:rowspan 1
] [:colspan 1
] [:valign] [:align 'center
] [:width] [:class] [:ident] node
)
top
, center
, bottom
. html lout latex context node
The value of the cell.(center (table :border 1 :width 50. :frame 'hsides :cellstyle 'collapse (tr :bg "#cccccc" (th :align 'center :colspan 3 "A table")) (tr (th "Col 1") (th "Col 2") (th "Col 3")) (tr (td :align 'center "10") (td "-20") (td "30")) (tr (td :align 'right :rowspan 2 :valign 'center "12") (td "21")) (tr (td :align 'center :colspan 2 "1234")) (tr (td :align 'center :colspan 2 "1234") (td :align 'right "5")) (tr (td :align 'center :colspan 1 "1") (td :colspan 2 "2345"))))
... produces:
A table | ||
---|---|---|
Col 1 | Col 2 | Col 3 |
10 | -20 | 30 |
12 | 21 | |
1234 | ||
1234 | 5 | |
1 | 2345 |