Hi Wolfgang,

On Thu, 11 Nov 2010 20:13:22 +0100
Wolfgang Schuster <schuster.wolfg...@googlemail.com> wrote:

> 
> Am 11.11.2010 um 19:44 schrieb Manfred Lotz:
> 
> > Hi there,
> > 
> > I have s simple table like this:
> > 
> > \starttext
> > 
> > \starttable[|l|l|]
> > \NC \bf Colheader 1 \NC \bf Colheader 2 \NC \SR \HL 
> > \NC cell 11 \NC cell 12 \NC \FR
> > \NC cell 11 \NC cell 12 \NC \LR
> > \stoptable
> > 
> > \stoptext      
> > 
> > and like to have a light gray background for the heading row. 
> > 
> > I found documentation about \setupTABLE which on the one hand I did
> > not fully understand how to use and on the other hand I'm not quite
> > sure how far this is the way it is done nowadays.
> 
> The \setupTABLE command for the natural tables environment, you can
> find a overview of the different environments on the wiki.
> 
> Here is a example for a natural table:
> 
> \starttext
> 
> \setupTABLE[header][style=bold,background=color,backgroundcolor=gray]
> 
> \bTABLE
>   \bTABLEhead
>     \bTR
>       \bTD Colheader 1 \eTD
>       \bTD Colheader 2 \eTD
>     \eTR
>   \eTBALEhead
>   \bTABLEbody
>     \bTR
>       \bTD cell 11 \eTD
>       \bTD cell 12 \eTD
>     \eTR
>     \bTR
>       \bTD cell 21 \eTD
>       \bTD cell 22 \eTD
>     \eTR
>   \eTABLEbody
> \eTABLE
> 
> \stoptext
> 

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?


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?


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? 



-- 
Thanks,
Manfred



___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to