From: Hans Hagen <pragma@wxs.nl>
Cc: NTG-ConTeXt mailing list <ntg-context@ntg.nl>
Subject: Re: metapost getting broken
Date: Fri, 12 Nov 1999 01:51:08 +0100 [thread overview]
Message-ID: <3.0.6.32.19991112015108.0126b5a0@pop.wxs.nl> (raw)
In-Reply-To: <m3zowkfyvc.fsf@kali.coe.uga.edu>
At 05:27 PM 11/11/99 -0500, Ed L. Cashin wrote:
>label I noticed that the mp source was getting broken:
This was corrected recently:
\long\def\writeMPgraphic#1%
{\bgroup
\edef\overlaywidth {\overlaywidth \space}%
\edef\overlayheight {\overlayheight \space}%
\edef\overlaylinewidth {\overlaylinewidth\space}%
\iflongMPlines
\let\par=\empty
\long\def\flush##1##2\par%
{\ifx##1\relax \else
\immediate\write\MPwrite{##1##2}%
\expandafter\flush
\fi}%
\flush#1\empty\par\relax\par
\else
\long\def\flush##1##2;%
{\ifx##1\relax \else
\dowriteMPgraphicline##1##2tex\relax etex\MPend
\expandafter\flush
\fi}%
\flush#1\empty;\relax;%
\fi
\egroup}
%D The \type {;} aware method (the \type {\else} branch) also
%D takes care of \type {btex}||\type {etex}, \type
%D {verbatimtex}||\type {etex}.
\def\dowriteMPgraphicline%
{\futurelet\next\dodowriteMPgraphicline}
\long\def\dodowriteMPgraphicline#1tex#2#3etex#4\MPend%
{\ifx\next\empty\else\ifx\next\relax\else
\bgroup
\let\par=\empty
\ifx#2\relax
\immediate\write\MPwrite{#1;}%
\egroup
\else
\convertargument#2#3\to\ascii
\immediate\write\MPwrite{#1tex \ascii etex}%
\egroup
\dowriteMPgraphicline#4tex\relax etex\MPend
\fi
\fi\fi}
BTW, in texmf.cnf, you can add:
TEX = texexec --batch --once
This makes MP run context!
Also, I suggest you pass a name to the reuse macro:
\startreusableMPgraphic{ed}
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------
prev parent reply other threads:[~1999-11-12 0:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-11 22:27 Ed L. Cashin
1999-11-12 0:51 ` 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=3.0.6.32.19991112015108.0126b5a0@pop.wxs.nl \
--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).