At 18:16 20/04/2004, Michal Kvasnicka wrote:
Good evening.

Is there some restriction to Metapost macros when compiled by texexec --mptex? I'd like to compile a file like this:

i can't see what goes wrong there (this tex in mp stuff is such a mess)

from within context the following works ok:

\starttext

\startMPpage[offset=4cm]
z1=(0,1cm); z2=(3cm,1cm);
dotlabel.top(btex $z_1$ etex,z1);
dotlabel.top(btex $z_2$ etex,z2);
draw textext("$\string\underbrace{\hbox to "&decimal(xpart(z2)-xpart(z1))&"pt{\hss}}$") shifted .5[z1,z2];
\stopMPpage


\stoptext

or:

\starttext

\let\normalunderbrace\underbrace \unexpanded\def\underbrace{\normalunderbrace} % hm, i need to make these unexpanded

\startMPpage[offset=4cm]
z1=(0,1cm); z2=(3cm,1cm);
dotlabel.top(btex $z_1$ etex,z1);
dotlabel.top(btex $z_2$ etex,z2);
draw textext("$\underbrace{\hbox to "&decimal(xpart(z2)-xpart(z1))&"pt{\hss}}$") shifted .5[z1,z2];
\stopMPpage


\stoptext

Hans

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to