![](https://secure.gravatar.com/avatar/ab73c799733cb79686500b0adbf33bb8.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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