I would like to be able to do something like this

\def\foo#1{
    \startMPcode
        fill (0,0)--(598,0)--(598,50)--(0,50)--cycle withcolor green;
        label.rt(btex #1 etex),(50,25);
  \stopMPcode
}

and then use this in my ConTeXt document by

\foo{Some text}

However, my syntax seems to be incorrect, and I would appreciate any
help in fixing it.

Thanks,

Troy Henderson
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to