Changes

Jump to navigation Jump to search
771 bytes added ,  09:27, 21 July 2004
no edit summary
< [[Tables Overview]]

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>!

You find a lot of samples in [http://www.pragma-ade.com/general/manuals/enattab.pdf enattab.pdf]

<pre>
\setupTABLE[row][odd][background=color,backgroundcolor=red]
\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
</pre>

You get automatic page breaking with the option <tt>[split=yes]</tt>.

Navigation menu