From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/16894 Path: main.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: precompiling inline mp to pdf? Date: Tue, 02 Nov 2004 10:52:17 +0100 Message-ID: <418758D1.2030305@boede.nl> References: <4183FABE.8050402@mupad.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1099389157 14083 80.91.229.6 (2 Nov 2004 09:52:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Nov 2004 09:52:37 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 02 10:52:25 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1COvKz-0005MD-00 for ; Tue, 02 Nov 2004 10:52:25 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 557AF127AD; Tue, 2 Nov 2004 10:52:24 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18235-09; Tue, 2 Nov 2004 10:52:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 65DEC12796; Tue, 2 Nov 2004 10:52:21 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E3E112796 for ; Tue, 2 Nov 2004 10:52:20 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 18186-04-2 for ; Tue, 2 Nov 2004 10:52:19 +0100 (CET) Original-Received: from smtp-vbr1.xs4all.nl (unknown [194.109.24.21]) by ronja.ntg.nl (Postfix) with ESMTP id B916B1277F for ; Tue, 2 Nov 2004 10:52:19 +0100 (CET) Original-Received: from [192.168.0.1] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by smtp-vbr1.xs4all.nl (8.12.11/8.12.11) with ESMTP id iA29qICH037804 for ; Tue, 2 Nov 2004 10:52:18 +0100 (CET) (envelope-from w.egger@boede.nl) User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4183FABE.8050402@mupad.de> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:16894 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:16894 Hi Christopher, In my case I prepared all the metapost code and had Context to prepare each figure as a \startTEXpage ... \stopTEXpage. Later I included the figures by referring to the different pages of that pdf-file. \placefigure[margin][fig:sample]{none}{\externalfigure[mpfigure-pdf][page=27]} Another aproach is to compile each figure in its own pdf-file. Hereafter I prepared a figure-database which in turn can be referenced whithin Context Willi Restauratie Restauratie-cursus Figure database pictures from hand outs, own developments in METAPOST, Scans, WPG-WMF-EPS converted
example.pdf Scan and edited by WE 4kB
In your source you will add \usefigurebase[base-figure-lib] Hereafter you are able to call the pictures with \placefigure[margin][ref]{caption}{\externalfigure[per_exemplum][width=0.45\makeupwidth,frame=off]} I do hope this helps. Willi Christopher Creutzig wrote: > Salvete, > > for my latest project (almost done, so I don't need the answer for this > one, but possibly in the future) I have compilation times which were > dominated by Metapost until I switched to using --nomp most of the time > and --automp --runs=2 whenever I changed something that results in > changes to the Metapost stuff. (I needed the --automp anyway, since to > work around size limits in MetaPost I had to split the background into > separate images, yet they had to influence one another via global > variables -- increasing the memory limit to 80 MB made Metapost > predictably freeze at unpredictable places in the run.) > > Now, my compile times are dominated by the mp to pdf conversion. Since > pdf inclusion is fast (as expected), I'd like to use mptopdf once on > each generated file and have ConTeXt include that. Should I redefine > \insertMPfile to first look for the pdf or is there a more clever way? > (Note that I do want the automatic inclusion, since I'm passing the > dimensions of external figures etc. to metapost and use the result in a > background layer and/or as frame backgrounds.) > > regards, > Christopher Creutzig > > PS: I didn't have time to analyze this when I came across it, but it > seems that "texexec --automp file" consistently performs one TeX run too > little. In any case, the last thing it does is a metapost run, which > doesn't seem sensible to me. > > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context