Taco Hoekwater wrote:
Matthew Claus wrote:
This minimal example works with "texexec example.tex" but fails with "context example.tex".
\startMPinclusions input metaobj; \stopMPinclusions
\starttext \startMPpage newBox.a(\sometxt{hello world}); a.c = origin; drawObj(a);
\stopMPpage \stoptext
Is this expected to work (I realize the 0.42.0 is very new)
I am not surprised it fails. Most metapost code in mkiv is run at least twice for some reason, and so equations tend to fail. You could try with
\startMPpage newBox.a(\sometxt{hello world}); a.c := origin; drawObj(a); \stopMPpage
but even then it depends on what newBox does internally.
in general one needs to keep in mind that we're in one run, so even in the case of 'single runs' things can bleed from one to the other graphic; one should set up graphics as independent as possible 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 -----------------------------------------------------------------