From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1091 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: MPgraphic Date: Tue, 26 Oct 1999 11:07:44 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <38157D70.6909B4F0@wxs.nl> References: <0F3313EC125AD311981100105AB3A75D1079BE@N0795.mdf.fvbb.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035391931 29738 80.91.224.250 (23 Oct 2002 16:52:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:52:11 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: "Haseloff, Lutz" Xref: main.gmane.org gmane.comp.tex.context:1091 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1091 "Haseloff, Lutz" wrote: > > I like it VERY much, to have METAPOST-code > and the TeX-code in the one and only sourcefile. > But an error occurs, when i want to process labels. > Does ConTeXt insert an extra ´;´ to the METAPOST-code? indeed: \long\def\dodowriteMPgraphicline#1btex#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{#1btex \ascii etex;}% \egroup \dowriteMPgraphicline#4btex\relax etex\MPend \fi \fi\fi} you may remove the ^^; before etex and see what happens. As you may notice, the text between btex etex is passed unexpanded. (a pretty hard coded fontname in you file btw; if you know what tex you run, you can say \rm or so). ----------------------------------------------------------------- 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 -----------------------------------------------------------------