Hi Hans,

Thanks for the new feature for row backgrounds, which I tested: it works 
(though see below) and it is another great feature!
I wanted to add the information on the wiki, but thought it would be better to 
explain the meanings of \ND and \NL: is the following correct:

\NC = New Column
\NR = New Row
\NL = New Line ?
\ND = ??

Also it seems that when one encloses the tabulated lines into a 
\startplacetable...\stopplacetable pair, the coloring of the background does 
not work. Please see below an example.

Best regards: OK

%%% begin row-background.tex
\setuptabulate[backgroundcolor=lightgray]

\starttext

\starttabulate[|||]
   \ND First name \NC Family name\NC \NR
   \NC Hans \NC Hagen \NC \NR
   \NL[darkgray] Wolfgang \NC Schuster \NC \NR
   \NC Aditya \NC Mahajan \NC \NR
   \ND Pablo \NC Rodriguez \NC \NR
\stoptabulate

\startplacetable[title=A nice table, but where are the colors?]
\starttabulate[|||]
   \ND First name \NC Family name\NC \NR
   \NC Hans \NC Hagen \NC \NR
   \NL[darkgray] Wolfgang \NC Schuster \NC \NR
   \NC Aditya \NC Mahajan \NC \NR
   \ND Pablo \NC Rodriguez \NC \NR
\stoptabulate
\stopplacetable

\stoptext
%%% end row-background.tex


> On 14 Apr 2018, at 18:51, Hans Hagen <j.ha...@xs4all.nl> wrote:
> 
> Hi,
> 
> The next beta will have:
> 
> % row backgrounds:
> 
> \setuptabulate[backgroundcolor=darkred]
> 
> \starttext
> 
> \starttabulate[|||]
>    \NC foo \NC bar \NC \NR
>    \ND foo \NC bar \NC \NR
>    \NC foo \NC bar \NC \NR
>    \NC foo \NC bar \NC \NR
>    \ND foo \NC bar \NC \NR
> \stoptabulate
> 
> \starttabulate[|||]
>    \NC          foo \NC bar \NC \NR
>    \NL[magenta] foo \NC bar \NC \NR
>    \NL[yellow]  foo \NC bar \NC \NR
>    \NL[cyan]    foo \NC bar \NC \NR
>    \NL[gray]    foo \NC bar \NC \NR
> \stoptabulate
> 
> \starttabulate
>    \NL[red]     foo \NC bar \NC \NR
>    \NL[green]   foo \NC bar \NC \NR
>    \NC          foo \NC bar \NC \NR
>    \NL[blue]    foo \NC \input tufte  \NC \NR
>    \NL[gray]    foo \NC bar \NC \NR
>    \NL[yellow]  foo \NC bar \NC \NR
> \stoptabulate
> 
> \stoptext
> 
> 
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to