On Thu, 10 Jan 2013, Alan BRASLAU wrote:
On Thu, 10 Jan 2013 06:51:50 -0500
Aditya Mahajan <adit...@umich.edu> wrote:
Since the beginning of MkIV, colors in metapost labels need to be set at
the ConTeXt end (Untested):
T := thelabel(textext("\color[blue]{I'm seeing double}"), origin);
Aditya
I don't believe that this is true, but I am most likely wrong.
Well, I think it was true in the beginning (as I remember a discussion
from Mojca on how to handle labels differently in the gnuplot module),
but clearly that is not the case now.
Indeed "\blue text" has worked, but 'draw T withcolor blue;' *should* work as
well.
The processing of textext() has changed recently, it seems.
\startMPcode
label(textext("I'm seeing double"),origin) withcolor green ;
label(textext("I'm seeing double"),(-1mm,1mm)) withcolor blue ;
\stopMPcode
DOES work.
Of course, these are much simplified minimal examples of what I would like to
do.
Minimal example to show what is happening:
\startbuffer[initialize]
picture T;
T := textext("Hello");
picture Q;
Q := T;
\stopbuffer
\startbuffer[T]
draw T withcolor blue;
\stopbuffer
\startbuffer[Q]
draw Q shifted (-1mm, 1mm) withcolor red;
\stopbuffer
\startlines
Only draw T: \processMPbuffer[initialize,T]
Only draw Q: \processMPbuffer[initialize,Q]
Draw T & Q : \processMPbuffer[initialize,T,Q]
Draw Q & T : \processMPbuffer[initialize,Q,T]
\stoplines
Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________