From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78034 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Standalone MetaPost Graphics from ConTeXt Date: Thu, 30 Aug 2012 23:13:02 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2052467763==" X-Trace: ger.gmane.org 1346361191 5904 80.91.229.3 (30 Aug 2012 21:13:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2012 21:13:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 30 23:13:12 2012 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 1T7C36-0008Fi-C0 for gctc-ntg-context-518@m.gmane.org; Thu, 30 Aug 2012 23:13:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54D4F101E8; Thu, 30 Aug 2012 23:13:09 +0200 (CEST) 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 6dxB7gsxngUA; Thu, 30 Aug 2012 23:13:07 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 08BAA101E0; Thu, 30 Aug 2012 23:13:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A572D101E0 for ; Thu, 30 Aug 2012 23:13:05 +0200 (CEST) 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 YLkdqi53JMB9 for ; Thu, 30 Aug 2012 23:13:04 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id BADEB101DD for ; Thu, 30 Aug 2012 23:13:04 +0200 (CEST) Original-Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q7ULD2oq008918 for ; Thu, 30 Aug 2012 23:13:03 +0200 Original-Received: by weys10 with SMTP id s10so1520912wey.14 for ; Thu, 30 Aug 2012 14:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=jeUsKCg5cTns6mO1OJ8PYxR05tmL2TFB9oxnsaJt3Rw=; b=izVxFMkgOHkP8h++tqv4gDAbfRXlYTsp8XesAsfpcLgSnPRywVez4HzpmhwHokEcKv vtgCKcZTJMoJRHaCKhJ0Rh5vXw4qkIt/ZGW/bzuZrjVhUGzI3yE3ZTSl2dulUzbqFvOB ukPaRR5aUxQ9mvyPxmZuWMgkmvnETdYhHKU8XJ/2nvRyZsPdUrvJ5WR5DnQIjdse52zY tOkwqyb9/AxoK8HTBKaGHCvIj1YtjlrSVG6UJfd4TTkMWDsPnGG5lKfUeem2WOt4TOvz 5E1sOV33vB5QOcn0YrofjkpOd5gAjxHPo7OkNDF+oP7OhbfRVPq0dabK//N/lJM8eSKs cBYg== Original-Received: by 10.216.133.90 with SMTP id p68mr3459509wei.105.1346361182798; Thu, 30 Aug 2012 14:13:02 -0700 (PDT) Original-Received: by 10.223.75.155 with HTTP; Thu, 30 Aug 2012 14:13:02 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.82.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RHR9d3oc - 8b4edeea98bb - 20120830 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:78034 Archived-At: --===============2052467763== Content-Type: multipart/alternative; boundary=0016e6d589d90a42ca04c882249e --0016e6d589d90a42ca04c882249e Content-Type: text/plain; charset=UTF-8 On Thu, Aug 30, 2012 at 10:57 PM, Troy Henderson wrote: > Is there a way to output several MetaPost PDF graphics from a single > ConTeXt source file. For example, > > \startMPpage > draw fullcircle scaled 72; > \stopMPpage > > \startMPpage > draw unitsquare scaled 72; > \stopMPpage > > and have a separate output PDF generated for each MPpage? It seems that > this ConTeXt code generates a single PDF which contains only the first > graphic. I would like to have either > > 1) two separate PDF's with each containing their own graphic > 2) a single two page PDF where each page corresponds to the appropriate > graphic. > > Of course, the "holy grail" would be to be able to "compile" a MetaPost > source file with ConTeXt. > > for 2) save this in test.mkiv \starttext \startMPpage draw fullcircle scaled 72; \stopMPpage \startMPpage draw unitsquare scaled 72; \stopMPpage \stoptext $>context test.mkiv -- luigi --0016e6d589d90a42ca04c882249e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Aug 30, 2012 at 10:57 PM, Troy H= enderson <thenders@gmail.com> wrote:
Is there a way to output several MetaPost PDF graphics from a single ConTeX= t source file.=C2=A0 For example,

\startMPpage
=C2=A0 draw fullci= rcle scaled 72;
\stopMPpage

\startMPpage
=C2=A0 draw unitsquar= e scaled 72;
\stopMPpage

and have a separate output PDF generated for each MPpage= ?=C2=A0 It seems that this ConTeXt code generates a single PDF which contai= ns only the first graphic.=C2=A0 I would like to have either

1) two = separate PDF's with each containing their own graphic
2) a single two page PDF where each page corresponds to the appropriate gra= phic.

Of course, the "holy grail" would be to be able to &= quot;compile" a MetaPost source file with ConTeXt.


for 2)
=C2=A0<= /div>
save this in test.mkiv

\starttext=
\startMPpage
=C2=A0 draw fullcircle scaled 72;
\stopMPpage

\startMPpage
=C2=A0 draw unitsquare scaled 72= ;
\stopMPpage
\stoptext

= $>context test.mkiv
--
luigi

--0016e6d589d90a42ca04c882249e-- --===============2052467763== 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 ___________________________________________________________________________________ --===============2052467763==--