Sanjoy Mahajan wrote:
Oh, wait, if metapost is fine with the file but ConTeXt isn't, then the error above must be from ConTeXt parsing the metapost code and seeing the \2, then complaining. So am I supposed to use the global option to \startMPenvironment? If it's needed in this case, I think it would be needed in every case (ConTeXt would see all the metapost uses of the definition). Or is btex deprecated and I should use \sometxt (except in loops)? Or am I just confused?!
indeed commands in an mp environment are not expanded when writing an mp graphic to file; it's always a bit of a trade of (i didn't expect users to cook up all kind of commands in environments; when i have to do that, inormally put them in an environment and load that in the mp graphic (since one load tex files there) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------