some minor problems (mkiv)
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 \string{\{} \stoptext greetings, peter
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.
\string{\{}
Side note wrt. the example: don't you want \string\{ instead? 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. Best wishes, Taco
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 : ntg-context@ntg.nl / 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 ___________________________________________________________________________________
Taco Hoekwater wrote:
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.
actually this was a bug but probably only taco has the version that fixes it (after all, we must stay at least a week ahead of you)
\string{\{}
Side note wrt. the example: don't you want \string\{ instead?
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.
----------------------------------------------------------------- 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 -----------------------------------------------------------------
On Fri, May 16, 2008 at 1:12 PM, Peter Rolf
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
\string{\{}
\string{ \char`{ \letterleftbrace \char123 \char"7B
\stoptext
greetings, peter
Wolfgang
Wolfgang Schuster schrieb:
On Fri, May 16, 2008 at 1:12 PM, 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
\string{\{}
\string{
\char`{
\letterleftbrace
\char123
\char"7B
thanks wolfgang! but sadly it's not the only argument of \string (my example was bad). best wishes, peter
\stoptext
greetings, peter
Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (4)
-
Hans Hagen
-
Peter Rolf
-
Taco Hoekwater
-
Wolfgang Schuster