On Mon, 21 Sep 2009, Hans Hagen wrote:

how about adding

let @## = @# ;

to mp-tool.mp (you need to remake the context format in mkiv or the metafun format in mkii)

seems to work

Works in mkiv, but in mkii I get an error with

\starttext
\startMPcode
   vardef foo = draw (0mm,0mm)--(10mm,10mm); enddef;
   foo;

   vardef x...@# = (@#,@#) enddef ;
   draw xy0mm -- xy10mm;
\stopMPcode
\stoptext

! Illegal parameter number in definition of \...@mpg@@@.
<to be read again>

vardef x...@## .m,10mm); enddef;
draw ...                                          = (@##,@##) enddef ;

\dodostartuseMPgraphic ...useMPgraphic {#1}{#2}{#3
                                                  }}\elabelgroup
\dostartMPcode ...graphic {@@}#1\stopuseMPgraphic
\useMPgraphic {@@}\endgroup
l.9 \stopMPcode

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to