Taco Hoekwater schrieb:
>
> Peter Rolf wrote:
>> hi,
>>
>> i'm still trying to make my code run with mkiv. here are two minor
>> problems. the first one is easy to deal with, but the second one
>> currently breaks my testbed.
>>
>>
>> % engine=luatex
>> \setupcolors[state=start]
>>
>> \starttext
>>
>> \startMPcode
>> label("no color",origin) withcolor red; % always black
>> \stopMPcode
>
> Interesting problem, that one. The lack of color is easily explained
> because there is an implied textext() around the string., but it is
> not that easily solved, I suspect.
>
i currently use sometxt() instead (was label because of much better
runtime in mkii). i guess it's one of the last places where i use text
inside mp, so it doesn't hurt that much. mh, maybe i should extract the
outlines (it's only one char) instead.
>> \string{\{}
>
> Side note wrt. the example: don't you want \string\{ instead?
>
nope. the argument is a formal macro description with parameters in
braces and brackets. it's part of the testbed for my graphic macros.
> Anyway, the underlying problem is something for Aditya to look at,
> maybe. Too many commands are now 'math mode only' because of changes
> in char-def.lua.
>
thanks for the detailed answer.
best wishes, peter
> Best wishes,
> Taco
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the
> Wiki!
>
> maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________