From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1200 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: metapost getting broken Date: Fri, 12 Nov 1999 01:51:08 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.19991112015108.0126b5a0@pop.wxs.nl> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035392036 30774 80.91.224.250 (23 Oct 2002 16:53:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:53:56 +0000 (UTC) Cc: NTG-ConTeXt mailing list Original-To: ecashin@coe.uga.edu (Ed L. Cashin) In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:1200 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1200 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 -----------------------------------------------------------------