Am 11.11.2010 um 20:40 schrieb Manfred Lotz:
Thanks for your example which works fine but raises some more questions:
1. Your example creates borders around each cell which I don't want to have. Any way to get rid of them?
You can disable the border rules with „frame=off“.
2. It seems to me that \setupTABLE creates a shading for the header for all tables in a document?! That is ok.
However, I'd like to know what would be the variant to have it only for a single table?
\startsetups table:mystyle \setupTABLE [frame=off] \setupTABLE[row][first][style=bold,background=color,backgroundcolor=gray] \stopsetups \bTABLE[setups=table:mystyle] \bTR \bTD Colheader 1 \eTD \bTD Colheader 2 \eTD \eTR \bTR \bTD cell 11 \eTD \bTD cell 11 \eTD \eTR \bTR \bTD cell 11 \eTD \bTD cell 11 \eTD \eTR \eTABLE or \bTABLE[frame=off] \bTR[background=color,backgroundcolor=gray] \bTH Colheader 1 \eTH \bTH Colheader 2 \eTH \eTR \bTR \bTD cell 11 \eTD \bTD cell 11 \eTD \eTR \bTR \bTD cell 11 \eTD \bTD cell 11 \eTD \eTR \eTABLE
3. How does this \bTABLE stuff compare to the \starttable stuff? Are these just different methods to create tables which are both in use these days in context or is one method to be preferred over the other?
Both are different method to write a table, \starttable/\stoptable is older than \bTABLE/\eTABLE which use \framed for each table cell and allows more fancy layouts but is slower than \starttable. Wolfgang