From: Hans Hagen <pragma@wxs.nl>
Subject: Re: texexec and TEX
Date: Wed, 28 Apr 2004 19:56:13 +0200 [thread overview]
Message-ID: <6.0.1.1.2.20040428195405.01eb5ec0@server-1> (raw)
In-Reply-To: <40854CC0.3040807@econ.muni.cz>
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
prev parent reply other threads:[~2004-04-28 17:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-20 16:16 Michal Kvasnicka
2004-04-28 17:56 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6.0.1.1.2.20040428195405.01eb5ec0@server-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).