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

2006-12-02 Thread Wim Neimeijer
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

% 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

Version info
This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5)
 \write18 enabled.
ConTeXt  ver: 2006.11.29 09:55 MK II  fmt: 2006.12.2  int: english/english

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


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

2006-12-02 Thread Mojca Miklavec
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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context