From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77700 Path: news.gmane.org!not-for-mail From: Marco Patzer Newsgroups: gmane.comp.tex.context Subject: Re: Using MPgraphics as externalfigures? Date: Thu, 2 Aug 2012 10:34:41 +0200 Message-ID: <20120802103441.7267c0e1@homerow> 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" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343896495 1580 80.91.229.3 (2 Aug 2012 08:34:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2012 08:34:55 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 02 10:34:56 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 1Swqrt-0000j0-Mt for gctc-ntg-context-518@m.gmane.org; Thu, 02 Aug 2012 10:34:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A224E1029B; Thu, 2 Aug 2012 10:34:52 +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 QomDGFgzqU7d; Thu, 2 Aug 2012 10:34:51 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E4D91101FD; Thu, 2 Aug 2012 10:34:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5F159101FD for ; Thu, 2 Aug 2012 10:34:49 +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 bD6GJKuHctR1 for ; Thu, 2 Aug 2012 10:34:48 +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 2890E101F4 for ; Thu, 2 Aug 2012 10:34:48 +0200 (CEST) Original-Received: from karen.lavabit.com (karen.lavabit.com [72.249.41.33]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q728VAEn001660 for ; Thu, 2 Aug 2012 10:31:11 +0200 Original-Received: from d.earth.lavabit.com (d.earth.lavabit.com [192.168.111.13]) by karen.lavabit.com (Postfix) with ESMTP id 7924211BBE7 for ; Thu, 2 Aug 2012 03:34:44 -0500 (CDT) Original-Received: from homerow (83.68.239.193) by lavabit.com with ESMTP id EA9OABKHMMVL for ; Thu, 02 Aug 2012 03:34:44 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=6hEziBhPzmf4TYYVW1PfG6rPUkrGPz1XZMuSJTecyIxDYeF86T/Ku3ROhlKSktQj+eqrdOyxFcJPlAPLeOo7wfO3zgzx4GuOQf0nJqlbPhJiobH8yRxNK5deeh/FL6dHozA4Ojd/dWZY01etOTBaKABlW7R1+u4157jq4T1zQYo=; h=Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) 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=75206; latitude=32.8339; longitude=-96.7715; metrocode=623; areacode=214; http://maps.google.com/maps?q=32.8339,-96.7715&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WHFIvaAk - efdd8cde42d3 - 20120802 (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:77700 Archived-At: On 2012-08-02 Mari Voipio wrote: Hi Mari, > I'm being a bit clueless about the MPgraphics again... Read http://wiki.contextgarden.net/Metapost and 3.3 Integrated Graphics in the MetaFun Manual. > Any ideas of how to do this in a smart way? Preferably without having > to go into the bowels of ConTeXt to get it done... \defineframed [graphicframe] [frame=on,offset=none] \define[1]\MPframed {\graphicframe{\useMPgraphic{#1}}} \startuseMPgraphic{first} fill fullcircle scaled 2cm withcolor red; \stopuseMPgraphic \startreusableMPgraphic{second} fill fullsquare rotated 45 scaled 2cm withcolor blue; \stopreusableMPgraphic \startbuffer [third] fill fullsquare scaled 1cm withcolor green; \stopbuffer \starttext \useMPgraphic{first} \reuseMPgraphic{second} \processMPbuffer [third] \MPframed{second} \stoptext Marco ___________________________________________________________________________________ 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 ___________________________________________________________________________________