On Sat, 22 Aug 2009, Mojca Miklavec wrote:
Hello Hans,
is there some simple command to make the following work (in MKII)? (I accept "Not interested since it works in mkiv" as a valid answer :)
\starttext
% makes sure that textext("") works; is there an equivalent for \sometxt?
From what I understand about \sometxt in mkii, I don't think that something like \forceMPTEXcheck can work for \sometxt. If drawA always draws the same string, you can use \TeXtextts (see your MyWay on sometxt ;).
\forceMPTEXcheck{drawA} \startTeXtexts \TeXtext{1000}{right} \stopTeXtexts \startMPinclusions def drawA = draw fullcircle scaled 3cm; label.top(btex top etex, (0,5cm)); % OK label.rt(sometxt(1000), (5cm,0)); % nothing label.bot(textext("bottom"), (0,-5cm)); % OK enddef; \stopMPinclusions \startMPcode drawA; \stopMPcode \stoptext Aditya