From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80597 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Processing MP graphics without interference Date: Fri, 1 Feb 2013 21:47:52 +0100 Message-ID: <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="===============0749112911==" X-Trace: ger.gmane.org 1359751686 10465 80.91.229.3 (1 Feb 2013 20:48:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2013 20:48:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 01 21:48:26 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 1U1NX5-00049k-ME for gctc-ntg-context-518@m.gmane.org; Fri, 01 Feb 2013 21:48:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 486801021E; Fri, 1 Feb 2013 21:48:05 +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 oX0mMmz9GBtw; Fri, 1 Feb 2013 21:48:03 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AFC811020E; Fri, 1 Feb 2013 21:48:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 715AC1020E for ; Fri, 1 Feb 2013 21:48:01 +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 P1R+xEgOlDpb for ; Fri, 1 Feb 2013 21:48:00 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 12B93101FF for ; Fri, 1 Feb 2013 21:48:00 +0100 (CET) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r11L3RW9031093 for ; Fri, 1 Feb 2013 22:03:28 +0100 Original-Received: from c.earth.lavabit.com (c.earth.lavabit.com [192.168.111.12]) by karen.lavabit.com (Postfix) with ESMTP id E7E2711BCA1 for ; Fri, 1 Feb 2013 14:47:56 -0600 (CST) Original-Received: from homerow (83.68.239.193) by lavabit.com with ESMTP id X3F5X26NDEMZ for ; Fri, 01 Feb 2013 14:47:56 -0600 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=q6EQCYZU2eKpjxOmvXXcK6NS6qeSZhK2IB6dcgW3qI679te2ZMuPuXkYfuRo4pRzT4sWObenq9jfu4rHzBCSWWIpUfhUHfgYFzkAt7P2qO+XTjtJfIZ/efdy3i+gQoSabWuyJCAhFZ5F1Xn9NkL4uUns8LiDqYO4MfW0PMdZmko=; h=Date:From:To:Subject:Message-ID:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition:User-Agent; Mail-Followup-To: mailing list for ConTeXt users User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.249.41.33; country=US; region=TX; city=Dallas; postalcode=75204; latitude=32.8019; longitude=-96.7883; metrocode=623; areacode=214; http://maps.google.com/maps?q=32.8019,-96.7883&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01IT93rwV - a0bb61c8c344 - 20130201 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:80597 Archived-At: --===============0749112911== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 increment. 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 t= hese graphics? Marco --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRDCn4AAoJEPGqVaNSn0iKUDoH/3bKK7RFkxh6CgcMNV7vOi2J y685khphbXv+x80I0MeBT3bm0FVf6cRuRUe9HMZr9DNYbgvOVlkPEXFnAsGUp/ys AVs1bVQ35H+54Glkzf0HBZt4QAaJii7snSJyPdl8cfGkYHqWXbUPAq4nHtsKDauO j8KhOWLdBAhvwdaEuUxlVf34+9ZTz5mcQ6eZIQ0fEq6l6hsXnJtFWhpWYYn+eXlj UspevSsbaBpkOha/NEfosH1gw9DuO736ga9ObiTXuvGfa5JPXTjVNprNgchaHUoU jfqD8BYc9E9E4jLO1kQ+B5yIPISPfbD7vDZx82YSPFEWExtzvc+9L/luc5DeCEc= =SGmJ -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND-- --===============0749112911== 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 ___________________________________________________________________________________ --===============0749112911==--