Hallo, the following example is a cooked down version of something I found on the net. Compiling this %------------------------------------------------ \setupcolors[state=start] \forceMPTEXcheck{LABEL} \startMPinclusions vardef LABEL@\#(expr s, p)= label@\#(textext("% \framed[width=1.5cm]{" & s & "}"),p) enddef ; \stopMPinclusions \startstaticMPfigure{tst} LABEL.llft("Test", (1,1) ) ; \stopstaticMPfigure \starttext \midaligned{\usestaticMPfigure[tst]} \stoptext %------------------------------------------------ I got the following error: %------------------------------------------------ ! Illegal parameter number in definition of \@MPG@@@. <to be read again> ( <argument> vardef LABEL@##( expr s, p)= label@##(textext("\framed [width=1.5c... \dodostartuseMPgraphic ...useMPgraphic {#1}{#2}{#3 }}\elabelgroup \dodostartMPpage ...aphic {@@}#1\stopuseMPgraphic \useMPgraphic {@@}\dostopf... l.14 endfig; \stopMPpage %------------------------------------------------ What is wrong here? Wolfgang
Wolfgang Werners-Lucchini wrote:
Hallo,
the following example is a cooked down version of something I found on the net. Compiling this
%------------------------------------------------ \setupcolors[state=start]
\forceMPTEXcheck{LABEL}
\startMPinclusions vardef LABEL@\#(expr s, p)= label@\#(textext("% \framed[width=1.5cm]{" & s & "}"),p) enddef ; \stopMPinclusions
I could not get this to work either. Something has changed in the MPinclusions parsing, maybe? (Putting the definition in a separate mp file prevents the error, of course) Best wishes, Taco
Taco Hoekwater wrote:
Wolfgang Werners-Lucchini wrote:
Hallo,
the following example is a cooked down version of something I found on the net. Compiling this
%------------------------------------------------ \setupcolors[state=start]
\forceMPTEXcheck{LABEL}
\startMPinclusions vardef LABEL@\#(expr s, p)= label@\#(textext("% \framed[width=1.5cm]{" & s & "}"),p) enddef ; \stopMPinclusions
I could not get this to work either. Something has changed in the MPinclusions parsing, maybe? (Putting the definition in a separate mp file prevents the error, of course)
hm, i'll have a look, but in mkiv there will be no such checks supported anyway ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Taco Hoekwater
-
Wolfgang Werners-Lucchini