Eythan Weg wrote:
Wolfgang Schuster
Fri, 27 Mar 2009 13:45:42 +0100 Am 27.03.2009 um 13:37 schrieb Eythan Weg:
Hi, the following does not seem to use color. Am I missing something? Never used this feature before...
I use mkiv with luatex 0.36.
\startMPcode draw thelabel(btex RED etex, (0,0)) withcolor blue;
label(\textext{\red RED},origin) ;
Wolfgang
Basically, you moved it to TeX to do the coloring, which is ok.
Now, "draw thelabel(btex RED etex, (0,0)) scaled 2;" works. In the same manner , I think, "withcolor" should work. At least this is my understanding of the manual. But instead it is silently ignored. So my question is whether it is a bug or not.
This may not be a context's issue but a metapost's itself.
indeed tex does the coloring; also honoring mp's colors has been discussed on this list but fo rthe moment will nto be supported as it will complicate the code; maybe when i have redone the backend and when multiple pre/postscripts are supported (on the mplib agenda) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------