From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54157 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: Metapost+mpgraph and mkiv Date: Sat, 7 Nov 2009 18:58:00 +0100 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <200911071858.00367.alan.braslau@cea.fr> References: <0D2AA4B4-5A68-439F-8A09-84BD79005485@gmail.com> <200911071613.35924.alan.braslau@cea.fr> <4AF59E70.1020705@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1257616696 9486 80.91.229.12 (7 Nov 2009 17:58:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Nov 2009 17:58:16 +0000 (UTC) Cc: ntg-context@ntg.nl To: Taco Hoekwater Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 07 18:58:09 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1N6pY7-000678-QZ for gctc-ntg-context-518@m.gmane.org; Sat, 07 Nov 2009 18:58:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6B7AAC9B4F; Sat, 7 Nov 2009 18:56:19 +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 ULv32RhExfE4; Sat, 7 Nov 2009 18:56:05 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E69E1C9BAE; Sat, 7 Nov 2009 18:56:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 743B1C9BB2 for ; Sat, 7 Nov 2009 18:56:02 +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 Qib+EKAXKyv7 for ; Sat, 7 Nov 2009 18:55:57 +0100 (CET) Original-Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) by balder.ntg.nl (Postfix) with ESMTP id 74DF7C9BAE for ; Sat, 7 Nov 2009 18:55:56 +0100 (CET) Original-Received: from smtp4-g21.free.fr (localhost [127.0.0.1]) by smtp4-g21.free.fr (Postfix) with ESMTP id DD7FF4C81A7; Sat, 7 Nov 2009 18:57:41 +0100 (CET) Original-Received: from iram-hb-003386.localnet (cev75-1-81-57-248-225.fbx.proxad.net [81.57.248.225]) by smtp4-g21.free.fr (Postfix) with ESMTP id F269D4C81A6; Sat, 7 Nov 2009 18:57:38 +0100 (CET) User-Agent: KMail/1.12.2 (Linux/2.6.31-1-amd64; KDE/4.3.2; x86_64; ; ) In-Reply-To: <4AF59E70.1020705@elvenkind.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:54157 Archived-At: On Saturday 07 November 2009 17:21:04 Taco Hoekwater wrote: > > 1. You should load the MP packages you need in \startMPinclusions (this > is where the code really belongs, even in mkii) instead of inside each > separate graphic. > > 2. You have to make sure that you do not re-state equations that were > already solved in a previous graphic. > > These are in fact the excact same rules that you have to adhere to in > mkii if \runMPgraphicsfalse is active. So, for the mailing list, here is a working solution (mkii & mkiv): %% minimal example %% \starttext \startMPinclusions input graph \stopMPinclusions \startuseMPgraphic{test} draw begingraph(16cm,12cm); setrange(whatever,whatever,whatever,whatever); gdraw (0,0) -- (1,1) ; endgraph; \stopuseMPgraphic \startTEXpage \useMPgraphic{test} \stopTEXpage \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________