ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Context, Metapost \sometxt and color
@ 2006-12-02 18:30 Wim Neimeijer
  2006-12-02 18:38 ` Mojca Miklavec
  0 siblings, 1 reply; 2+ messages in thread
From: Wim Neimeijer @ 2006-12-02 18:30 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Context, Metapost \sometxt and color
  2006-12-02 18:30 Context, Metapost \sometxt and color Wim Neimeijer
@ 2006-12-02 18:38 ` Mojca Miklavec
  0 siblings, 0 replies; 2+ messages in thread
From: Mojca Miklavec @ 2006-12-02 18:38 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-02 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-02 18:30 Context, Metapost \sometxt and color Wim Neimeijer
2006-12-02 18:38 ` Mojca Miklavec

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).