Re: [NTG-context] Commands with arguments with MetaPost

2012-04-25 Thread Rogers, Michael K
On Apr 25, 2012, at 12:15 PM, Troy Henderson wrote: > 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 > } > Looks like a misplaced p

Re: [NTG-context] Commands with arguments with MetaPost

2012-04-25 Thread Alan BRASLAU
On Wed, 25 Apr 2012 11:15:10 -0500 Troy Henderson wrote: > 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

[NTG-context] Commands with arguments with MetaPost

2012-04-25 Thread Troy Henderson
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