Hi,
I just tried to build my own object in metaobj but for some reason I
cannot figure out it does not work. I tried the example from the metaobj
manual in a tex document (it works in a metapost file):
\startuseMPgraphic{objecttest}
vardef newsegm...@#=
assignObj(@#,"Segment");
ObjPoint a,b;
ObjCode "@#...@#a=(1cm,2cm)";
enddef;
\stopuseMPgraphic
When processing this with context (MkIV) I get
! Illegal parameter number in definition of \...@mpg@objecttest.
<to be read again>
=
<argument> vardef newsegm...@##=
assignObj(@##,"Segment"); ObjPoint
a,b; Ob...
\dostartuseMPgraphic ...leuseMPgraphic {#1}{#2}{#3
}}
l.7 \stopuseMPgraphic
My first wild guess is that it has something to do with the "evil"
@-symbol. But even if this is the case I don't know what to do to fix
this. Any help appreciated and thank you very much in advance.
Stefan.
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________