Difference between revisions of "TABLE"
Jump to navigation
Jump to search
m (changed pre to texcode) |
(added sample) |
||
Line 1: | Line 1: | ||
− | < [[Tables Overview]] | + | < [[Tables Overview]] | [[XML]] > |
− | This mighty table mode is called "natural tables" or "automatic tables". I'd call it "HTML tables", because it's very similar to them. They're especially suited for XML conversions. | + | This mighty table mode is called "natural tables" or "automatic tables". I'd call it "HTML tables", because it's very similar to them. They're especially suited for [[XML]] conversions. |
Beware: every element must use <tt>\b</tt> ... <tt>\e</tt>! | Beware: every element must use <tt>\b</tt> ... <tt>\e</tt>! | ||
Line 8: | Line 8: | ||
<texcode> | <texcode> | ||
− | \setupTABLE[row][odd][background=color,backgroundcolor=red] | + | \setupTABLE[row][odd][background=color,backgroundcolor=red, width=.3\textwidth] |
\bTABLE[split=yes] | \bTABLE[split=yes] | ||
\bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3 \eTD \bTD[nr=3] 4 \eTD \eTR | \bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3 \eTD \bTD[nr=3] 4 \eTD \eTR | ||
Line 19: | Line 19: | ||
You get automatic page breaking with the option <tt>[split=yes]</tt>. | You get automatic page breaking with the option <tt>[split=yes]</tt>. | ||
+ | |||
+ | The sample looks like this: | ||
+ | |||
+ | <context> | ||
+ | \setupTABLE[row][odd][background=color,backgroundcolor=red, width=.3\textwidth] | ||
+ | \bTABLE[split=yes] | ||
+ | \bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3 \eTD \bTD[nr=3] 4 \eTD \eTR | ||
+ | \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR | ||
+ | \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR | ||
+ | \bTR \bTD[nc=3] 1/2/3 \eTD \bTD 4 \eTD \eTR | ||
+ | \bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR | ||
+ | \eTABLE | ||
+ | </context> |
Revision as of 15:22, 12 September 2004
< Tables Overview | XML >
This mighty table mode is called "natural tables" or "automatic tables". I'd call it "HTML tables", because it's very similar to them. They're especially suited for XML conversions.
Beware: every element must use \b ... \e!
You find a lot of samples in enattab.pdf
\setupTABLE[row][odd][background=color,backgroundcolor=red, width=.3\textwidth] \bTABLE[split=yes] \bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3 \eTD \bTD[nr=3] 4 \eTD \eTR \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR \bTR \bTD 2 \eTD \bTD 3 \eTD \eTR \bTR \bTD[nc=3] 1/2/3 \eTD \bTD 4 \eTD \eTR \bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR \eTABLE
You get automatic page breaking with the option [split=yes].
The sample looks like this: