Mojca Miklavec wrote:
On Fri, Apr 11, 2008 at 12:23 AM, Aditya Mahajan wrote:
On Fri, 11 Apr 2008, Mojca Miklavec wrote:
On Thu, Apr 10, 2008 at 11:41 PM, Aditya Mahajan wrote:
On Thu, 10 Apr 2008, Hans Hagen wrote:
works ok on my machine using pdftex but luatex gives an unknown (have to look into it)
Another test case, I ran into today.
\setupcolors[state=start,textcolor=red]
\starttext
\startMPcode draw fullcircle scaled 2cm withcolor \MPcolor{\@@themaintextcolor} ;
Do you mean \MPcolor{currentcolor}?
Hangs head in shame :(. I need to learn how to read the sources correctly.
Of course, currentcolor is much better than \@@themaintextcolor. I just did not know that it existed.
Well ... I knew accidentally (since I have requested it). It's mentioned in \sometxt MyWay, but that's rather well hidden as well.
you just kept it secret ... i made 'currentcolor' for you -) anyhow ... using commands with @@ in it is usually a bad idea \unprotect \startMPcode draw fullcircle scaled 2cm withcolor \MPcolor{\@@themaintextcolor} ; \stopMPcode \protect might have worked ----------------------------------------------------------------- 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 -----------------------------------------------------------------