[NTG-context] Commands with arguments with MetaPost

Rogers, Michael K mroge02 at emory.edu
Wed Apr 25 18:55:21 CEST 2012

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 parenthesis:

       label.rt(btex #1 etex,(50,25));

  - Michael


This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).

More information about the ntg-context mailing list