From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29460 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: 2006.07.13 release notes (MP-related) Date: Tue, 18 Jul 2006 13:40:12 -0400 (EDT) Message-ID: References: <44BC9DEF.6030307@nibua-r.org> <6faad9f00607180354g51ad1e12k8a6fb53427e6e329@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153244442 9377 80.91.229.2 (18 Jul 2006 17:40:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jul 2006 17:40:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 18 19:40:40 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G2tYh-0006qO-F4 for gctc-ntg-context-518@m.gmane.org; Tue, 18 Jul 2006 19:40:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D7BC1280E; Tue, 18 Jul 2006 19:40:35 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10356-02-9; Tue, 18 Jul 2006 19:40:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9848012826; Tue, 18 Jul 2006 19:40:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DE5BA12826 for ; Tue, 18 Jul 2006 19:40:18 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10356-02-8 for ; Tue, 18 Jul 2006 19:40:13 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with SMTP id 9AB431280E for ; Tue, 18 Jul 2006 19:40:12 +0200 (CEST) Original-Received: FROM aditya.engin.umich.edu (udhcp-wlan140.public.engin.umich.edu [141.213.120.150]) BY hellskitchen.mr.itd.umich.edu ID 44BD1CFA.A2AB4.13338 ; 18 Jul 2006 13:40:10 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <6faad9f00607180354g51ad1e12k8a6fb53427e6e329@mail.gmail.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29460 Archived-At: On Tue, 18 Jul 2006, Mojca Miklavec wrote: > On 7/18/06, Renaud AUBIN wrote: >> >> Second, what's the difference between staticMPfigure and staticMPgraphic >> and how (and where) can we use it ? Some advice are welcome in this part >> because I use a lot of MPgraphic and I'm really interested to use >> staticMPXXX if I can save some processing time... ;) > > Take a look if Aditya's remarks on > http://wiki.contextgarden.net/Mpgraphic can answer some of your > questions. > > staticMP... seems to create an intermediate PDF which is reused in the next run > > (I had some troubles making some of the functionality work which > otherwise worked in someotherkindofMPgraphic: I don't remember what > exactly it was, perhaps StartPage. I kept using the old command since > I had no time to investigate, but it wasn't any serious problem.) While debugging, it helps to know what is happening in the background. Everything between \startstaticMPfigure{name}...\stopstaticMPfigure is written to \jobname-name.mp. A pdf file is generated using texexec --mpgraphic which creates a temp file in the background with \starttext \setupoutput[pdftex] \setupcolors[state=start] \startTEXpage \convertMPtoPDF{}{1}{1} \stopTEXpage \stoptext This file is compiled using texexec and the output is renamed to \jobname-name.pdf The second part (that is creating a pdf) happens only if the mp file did not change, which is checked by comparing the md5 sums. The md5 comparison can fail rarely. If you want to force a new pdf to be created, rm the md5 file. There is nothing inherently different in the processing of staticMPfigure. So anything that works with someotherMP should also work in staticMP. Hope this helps, Aditya