[NTG-context] Context, Metapost \sometxt and color

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sat Dec 2 19:38:33 CET 2006


On 12/2/06, Wim Neimeijer wrote:
> Hi
>
> The following used to work, the text came out in the color red, now it
> is shown in black.
> Am I doing something wrong here ? Or should I use something else instead ?
> Any help appreciated

Add
    \chardef\TeXtextcolormode\zerocount
to your document or cont-usr.tex.

(an alternative is to use \sometxt{\color[red]{something}})

Or even better: vote for it to become the default value before "color
stacks" are implemented (at least that's what I understood).

Hans had to add a feature and fix a little bug in \sometxt on my
request, but I don't understand why "one" is the default value now
either.

> % example code
> \setupcolors[state=start]
> \starttext
> \startMPcode
>     picture p;
>     p := \sometxt{$R_{\mu \nu } - \frac{1}{2} R - \Lambda g_{\mu \nu} =
> \kappa T_{\mu \nu}$} ;
>     p := p scaled 3;
>     draw p withcolor red;
> \stopMPcode
> \stoptext


Mojca


More information about the ntg-context mailing list