In ConTeXt MkIV, the contents of \startMPpage
(or \startMPcode
) are run twice. (This is so that all the btex .. etex
stuff can be collected and typeset, and no external files are created). Therefore, you need to separate out the input filename
part from the \startMPpage
environment. For example:
\startMPinclusions
input boxes;
\stopMPinclusions
\starttext
\startMPpage
boxit.a(btex test etex);
a.c = (0,0);
drawboxed(a);
\stopMPpage
\stoptext
Note that in MkIV, you no longer need to use btex .. etex
. The following also works!
\startMPinclusions
input boxes;
\stopMPinclusions
\starttext
\startMPpage
boxit.a("test");
a.c = (0,0);
drawboxed(a);
\stopMPpage
\stoptext
input boxes
commented out?