On 16.11.2011, at 15:21, Pavneet Arora wrote:
> Hello,
>
> I am trying to do a simple cell background shading in a table using the
> example at the wiki:
>
> http://wiki.contextgarden.net/Table
>
> Unfortunately, I get an "Undefined control sequence ..." error:
>
> ! Undefined control sequence.
>
> system > tex > error on line 4 in file tmp.tex: Undefined control
> sequence ...
>
> 1 \setupcolors[state=start]
> 2 \starttable[|l|l|]
> 3 \HL
> 4 >> \BL[1]\SR
> 5 \NC Command \NC Meaning \NC\SR
> 6 \HL
> 7 \NC \tex{NC} \NC next column \NC\FR
> 8 \NC \tex{NR} \NC next row \NC\LR
> 9 \HL
> 10 \CL[green]\SR
> 11 \NC \tex{AR} \NC automatic row\NC\SR
> 12 \HL
> 13 \stoptable
> 14
>
> <recently read> \BL
>
> l.4 \BL
> [1]\SR
> ?
>
> Any suggestions?
I think the using \start- \stoptable is not recommended (MkIV) any more.
Instead you can use
\starttabulate[|l|l|]
\CM[yellow] Command \NC Meaning \NC\NR\FL
\NC \tex{NC} \NC next column \NC\NR
\NC \tex{NR} \CM[green] next row \NC\NR
\NC \tex{HL} \CM[blue] horizontal line \NC\NR\FL
\stoptabulate
Or as already suggested the \bTABLE … \eTABLE or the new xtable-environment.
Greeting
Andreas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________