ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andreas Harder <aharder@uni-koblenz.de>
To: pavneet_arora@bespokespaces.com,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Table cell colo(u)rs
Date: Thu, 17 Nov 2011 14:05:01 +0100	[thread overview]
Message-ID: <BE14B2A0-659E-4B6B-96DB-7829D45C2688@uni-koblenz.de> (raw)
In-Reply-To: <4EC3C6D7.3040305@bespokespaces.com>


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 : 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
___________________________________________________________________________________


  parent reply	other threads:[~2011-11-17 13:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-16 14:21 Pavneet Arora
2011-11-17 10:35 ` Christian
2011-11-17 13:05 ` Andreas Harder [this message]
2011-11-17 21:31   ` Wolfgang Schuster
2011-11-25 10:58   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BE14B2A0-659E-4B6B-96DB-7829D45C2688@uni-koblenz.de \
    --to=aharder@uni-koblenz.de \
    --cc=ntg-context@ntg.nl \
    --cc=pavneet_arora@bespokespaces.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).