From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12471 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Runtime graphics Date: Sat, 14 Jun 2003 11:06:11 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <5.2.0.9.1.20030614110347.02d1d5a0@localhost> References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1055583546 3014 80.91.224.249 (14 Jun 2003 09:39:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 14 Jun 2003 09:39:06 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sat Jun 14 11:39:03 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19R7V1-0000mM-00 for ; Sat, 14 Jun 2003 11:39:03 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id D85DC10B42; Sat, 14 Jun 2003 11:41:40 +0200 (MEST) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 82F5310B07 for ; Sat, 14 Jun 2003 11:34:07 +0200 (MEST) Original-Received: from server-1.pragma-net.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.9/SQL-8.12.9-10/8.12.5) with ESMTP id h5E9Y3VP003001 for ; Sat, 14 Jun 2003 11:34:04 +0200 Original-Received: from laptop-3.wxs.nl (server-1.pragma-net.nl [10.100.1.1]) by server-1.pragma-net.nl (8.12.3/8.12.2) with ESMTP id h5E9Xx0c026901 for ; Sat, 14 Jun 2003 11:34:03 +0200 X-Sender: hagen-mail@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Original-To: ntg-context@ntg.nl In-Reply-To: X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12471 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12471 At 01:34 13/06/2003 -0400, you wrote: > Hi, > > I run this simple test file test.tex : > >%&cont-en >\setupoutput[pdftex] >\runMPgraphicstrue >\starttext >\startMPrun > input graphserieA >\stopMPrun >\externalfigure[mprun.1] >\externalfigure[mprun.2] >% >\startMPrun > input graphserieB >\stopMPrun >\externalfigure[mprun.1] >\externalfigure[mprun.2] >\stoptext >\end . > > In the logfile, I got the messages : > >figures : figureobject test-mprun.1 is reused >figures : figureobject test-mprun.2 is reused > > and twice the figures of graphserieA.mp on test.pdf. > > Is there a way to avoid the re-use of test-mprun.1 and test-mprun.2, I mean >a way to overwrite the files test-mprun.1 and test-mprun.2 ? > > Or a way to get different names for each metapost output as, for example, >graphserieA-mprun.1, graphserieA-mprun.2 and graphserieB-mprun.1, >graphserieB-mprun.2 ? > > I could also give a different number to each of the figures in all of the >*.mp files, but this solution is not pacticable since I have plenty of >metapost files to process, each of it containing a lot of figures already >numbered with almost the same numbers. Moreover, those numbers can not be >modified because the figures are elsewhere referenced by their number and by >the name of the metapost file. You can redefine: \def\MPrunfile#1{\bufferprefix mprun.#1} to for instance \def\MPrunfile#1{\bufferprefix \MyMpRunFile.#1} \def\MyMpRunFile{mprun} and them change the definition of \MyMpRunFile whenever you want Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------