On Thu, 11 Nov 2010 20:58:24 +0100
Wolfgang Schuster
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“.
Yep. Just found that I get back the first horizontal line by: \setupTABLE[row][first][bottomframe=on]
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
Great, good to know.
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.
Aaah, ok. Does it mean that \starttable/\stoptable is a simpler way of writing tables with less possiblities than the \bTABLE/\eTABLE stuff? Is also seemed to me that it is not easy to get those shadings using \starttable/\stoptable. Otherwise you would have given me an example using \starttable/\stoptable. -- Thanks, Manfred