![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Mon, 21 Sep 2009, Hans Hagen wrote:
Aditya Mahajan wrote:
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 xy@# = (@#,@#) enddef ; draw xy0mm -- xy10mm; \stopMPcode \stoptext
! Illegal parameter number in definition of \@MPG@@@. <to be read again>
hm, weird. did you remake the metafun format?
I did. Just to verify, I created an mp file beginfig(1) ; vardef xy@## = (@##,@##) enddef ; draw xy0mm -- xy10mm; endfig; end; and ran mpost -progname=metafun test.mp which gives me the correct output, so @## is defined. I am using 2009.09.18. I'll try later with the latest beta. Aditya