From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80598 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Processing MP graphics without interference Date: Fri, 1 Feb 2013 15:50:46 -0500 (EST) Message-ID: References: <20130201204752.GB26731@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1914822857-1359751847=:5840" X-Trace: ger.gmane.org 1359751859 12234 80.91.229.3 (1 Feb 2013 20:50:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2013 20:50:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 01 21:51:16 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U1NZr-00063v-Kw for gctc-ntg-context-518@m.gmane.org; Fri, 01 Feb 2013 21:51:15 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7667B1022A; Fri, 1 Feb 2013 21:50:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4PHKB-tz7wfT; Fri, 1 Feb 2013 21:50:54 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 846F21020E; Fri, 1 Feb 2013 21:50:54 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8E151020E for ; Fri, 1 Feb 2013 21:50:53 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iBP+Z+XSMsBT for ; Fri, 1 Feb 2013 21:50:52 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 72663101FF for ; Fri, 1 Feb 2013 21:50:52 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r11KonMG018694 for ; Fri, 1 Feb 2013 21:50:50 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hellskitchen.mr.itd.umich.edu ID 510C2AA7.89EF3.2745 ; Authuser adityam; 1 Feb 2013 15:50:47 EST In-Reply-To: <20130201204752.GB26731@homerow> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QIT8ONLh - 5a38b0372394 - 20130201 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80598 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1914822857-1359751847=:5840 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 1 Feb 2013, Marco Patzer wrote: > Hi, > > I have MetaPost graphics that are generated by an external program. > Each graphic is an individual file and the code is enclosed by > > beginfig(1) > =E2=80=A6 > endfig; > end > > The beginfig argument is always =E2=80=9C1=E2=80=9D, it does not incremen= t. > Including the graphics using MPrun fails, since the first figure's > =E2=80=9Cend=E2=80=9D stops the MetaPost run: > > \startMPrun{foo} > beginfig(1); > fill fullcircle scaled 1cm withcolor blue; > endfig; > end; %% prevents the second graph from being processed > \stopMPrun > > \startMPrun{bar} > beginfig(1); > fill unitsquare scaled 2cm withcolor red; > endfig; > end; > \stopMPrun > > \starttext > foo: \externalfigure[mprun:foo.1] > bar: \externalfigure[mprun:bar.1] %% not shown > \stoptext > > I want to avoid preprocessing the generated MP graphics, if possible > (stripping the =E2=80=9Cend=E2=80=9Ds). What is the best way to deal with= these > graphics? (Untested), something like: let normalend=3Dend; let end=3Drelax; % Don't know the MP equiv. =2E.. =2E.. let end=3Dnormalend; Aditya --8323328-1914822857-1359751847=:5840 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --8323328-1914822857-1359751847=:5840--