ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Wolfgang Werners-Lucchini" <wwl@musensturm.de>
To: ntg-context@ntg.nl
Subject: colored column
Date: Sat, 13 Mar 2010 18:51:53 +0100	[thread overview]
Message-ID: <4B9BDEC9.13484.22023FC@wwl.musensturm.de> (raw)

Hallo,

can someone explain how to write a table column in color, please?

The following example worked in 2006 but is not working anymore:

\starttext
\starttable[o1|\{C{red}|]
\VL red \VL\SR
\stoptable
\stoptext

Wolfgang Schuster posted last year the following example:

\NewFormatKey W#1%
{\ReadFormatKeys b{\localstartcolor[#1]\{} a{\}\localstopcolor}}

\starttable[o1|W{red}c|]
\VL red \VL\SR
\stoptable

But this results in printing '{red}' in red, not 'red'!

And this variant paints the following vertical line in red too:

\NewFormatKey W#1%
{\ReadFormatKeys b{\localstartcolor[#1]} a{\localstopcolor}}

\starttable[o1|W{red}c|]
\VL red \VL\SR
\stoptable

So, how can I do the job?

Wolfgang
___________________________________________________________________________________
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	other threads:[~2010-03-13 17:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-13 17:51 Wolfgang Werners-Lucchini [this message]
2010-03-13 18:55 ` Wolfgang Schuster
     [not found] <mailman.56.1232531263.31165.ntg-context@ntg.nl>
2009-02-04  8:23 ` Wolfgang Werners-Lucchini
     [not found] <mailman.6669.1232304874.19169.ntg-context@ntg.nl>
2009-01-20 23:26 ` Wolfgang Werners-Lucchini
     [not found] <mailman.6665.1232280796.19169.ntg-context@ntg.nl>
2009-01-18 16:09 ` Wolfgang Werners-Lucchini
2009-01-21  7:00   ` Wolfgang Schuster
2009-01-18 16:09 ` Wolfgang Werners-Lucchini
  -- strict thread matches above, loose matches on Subject: below --
2009-01-17 23:59 Wolfgang Werners-Lucchini
2009-01-18 10:47 ` Wolfgang Schuster
2009-01-18 14:01 ` 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=4B9BDEC9.13484.22023FC@wwl.musensturm.de \
    --to=wwl@musensturm.de \
    --cc=ntg-context@ntg.nl \
    /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).