From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77698 Path: news.gmane.org!not-for-mail From: Mari Voipio Newsgroups: gmane.comp.tex.context Subject: Using MPgraphics as externalfigures? Date: Thu, 2 Aug 2012 06:56:55 +0300 Message-ID: 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 1343879823 17215 80.91.229.3 (2 Aug 2012 03:57:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2012 03:57:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 02 05:57:03 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 1SwmX1-0006HT-AL for gctc-ntg-context-518@m.gmane.org; Thu, 02 Aug 2012 05:57:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2D3A101F4; Thu, 2 Aug 2012 05:57:01 +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 l1K869XKiTAL; Thu, 2 Aug 2012 05:56:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A5C50101F6; Thu, 2 Aug 2012 05:56:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 16238101F6 for ; Thu, 2 Aug 2012 05:56:58 +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 3SpBlU8ZTUQu for ; Thu, 2 Aug 2012 05:56:56 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id DB93E101F4 for ; Thu, 2 Aug 2012 05:56:56 +0200 (CEST) Original-Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com [209.85.217.169]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q723utfg028654 for ; Thu, 2 Aug 2012 05:56:56 +0200 Original-Received: by lbjn8 with SMTP id n8so910134lbj.14 for ; Wed, 01 Aug 2012 20:56:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=jRrmZUFTMtLK8dHLfKeax7T1CfzBeOs4kVXZAetAmLM=; b=N7gIzmT0Gtiyf7Ee4NPxIoFETDyCWMXIp1d6o84owr4D5v0rFIgcLNXqfDVxkg9CM1 ZmK9NgxanYapTkbHPs7tl1guRoSBCgjy6oyceychHt5Z+Q1IapVNBikkR7AEzqPv2p0T 2D3TDOuigqBemCm1s4XS4MuDNCLWonQRiyWs5KE6Rb+uBSo1NUOebIC1GMmDkbZ+IcJS 8O2rkfDV0Y+gjLMwW8+X//7nYtnD6Ak37xcMqTCi3v/MQD7Pao2S4I8LFpIkyL+VgYHN qQZXHNWV8NOsLSd6PBZ1XV1cQaM2kXsiElRSs8SK5QKDIuPnq7EqZhzOXpDcErklF3q6 PgMg== Original-Received: by 10.152.112.138 with SMTP id iq10mr20239920lab.13.1343879815349; Wed, 01 Aug 2012 20:56:55 -0700 (PDT) Original-Received: by 10.152.18.80 with HTTP; Wed, 1 Aug 2012 20:56:55 -0700 (PDT) X-Google-Sender-Auth: CKVwoALHVUUKBBWuRxCAY9qTrqg X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.217.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: 0VHFDUTGl - 5dc047066085 - 20120802 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:77698 Archived-At: Hi All, I'm being a bit clueless about the MPgraphics again... I've got a pile of instructional graphics that will be used and reused in a project. My first try is/was an unwieldy buffer construction, but I'm sure there's a better way than \placefigure[here] [fig: 5 loop departed setup] {The start position for a 5-loop braid with departed loops} {\framed{\getbuffer[setup 5-loop basic]}} Come to think of it, is there another way of framing the incoming graphic? I don't want to include the frames in the MPcode as I may not always want them, but that \framed{\getbuffer} construction is downright ugly. I think the solution to my problem can be found somewhere in the \startreuseagleMPgraphic and \reuseMPgraphic, but I don't seem to be able to figure out the last bits... On the moment my MPgraphics have \startbuffer[g1] \startMPcode ... \stopMPcode \stopbuffer but that's probably an overkill... And I'd really prefer to have the graphic as just a pic so I can easily use them as external figures. Of course one option would be to pdf the MPgraphics and then to insert the pdf, but I'd prefer to skip that step. 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... Thank you, Mari ___________________________________________________________________________________ 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 ___________________________________________________________________________________