From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78035 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context,gmane.comp.tex.metapost Subject: Re: Standalone MetaPost Graphics from ConTeXt Date: Thu, 30 Aug 2012 17:38:46 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1346362635 17816 80.91.229.3 (30 Aug 2012 21:37:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Aug 2012 21:37:15 +0000 (UTC) Cc: MetaPost List To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 30 23:37:16 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 1T7CQJ-0006FV-LR for gctc-ntg-context-518@m.gmane.org; Thu, 30 Aug 2012 23:37:11 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8FA9101E8; Thu, 30 Aug 2012 23:37:08 +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 4D+fEzZmD3sp; Thu, 30 Aug 2012 23:37:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 702AA101E0; Thu, 30 Aug 2012 23:37:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0373F101E0 for ; Thu, 30 Aug 2012 23:37: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 bHqOOPb7sFPL for ; Thu, 30 Aug 2012 23:37:03 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id EB3D7101DD for ; Thu, 30 Aug 2012 23:37:02 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q7ULa6eE001929 for ; Thu, 30 Aug 2012 23:36:08 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hellskitchen.mr.itd.umich.edu ID 503FDCF9.75D9D.18601 ; Authuser adityam; 30 Aug 2012 17:36:57 EDT In-Reply-To: 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: 0WHR9A7wF - d2aae7bf3eb9 - 20120830 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:78035 gmane.comp.tex.metapost:2236 Archived-At: On Thu, 30 Aug 2012, Troy Henderson wrote: > Is there a way to output several MetaPost PDF graphics from a single > ConTeXt source file. For example, \starttext > \startMPpage > draw fullcircle scaled 72; > \stopMPpage > > \startMPpage > draw unitsquare scaled 72; > \stopMPpage \stoptext > 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 If you add \starttext ... \stoptext, then ConTeXt generates a single PDF with all pages. > 1) two separate PDF's with each containing their own graphic You can use external tools like pdftk to split a pdf file into multiple files. > 2) a single two page PDF where each page corresponds to the appropriate > graphic. See above. > Of course, the "holy grail" would be to be able to "compile" a MetaPost > source file with ConTeXt. (Relevant? http://article.gmane.org/gmane.comp.tex.context/78007) With a recent beta, you can use: context file.mp to compile a ConTeXt file. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________