From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5083 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: problem with texexec and inline metapost Date: Mon, 16 Jul 2001 09:33:53 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20010716093032.0380e358@server-1> References: <3B502074.E1655240@quicknet.nl> <5.1.0.14.0.20010703192446.00a94340@public.uni-hamburg.de> <5.1.0.14.0.20010714115741.00aaaed0@public.uni-hamburg.de> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035395697 31102 80.91.224.250 (23 Oct 2002 17:54:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:54:57 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Eckhart =?iso-8859-1?Q?Guth=F6hrlein?= In-Reply-To: <5.1.0.14.0.20010714123334.00a8a840@public.uni-hamburg.de> Xref: main.gmane.org gmane.comp.tex.context:5083 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5083 At 12:38 PM 7/14/2001 +0200, you wrote: >At 12:35 14.07.2001 +0200, Taco Hoekwater wrote: >> > >What latest? The ones i uploaded the last few days *do* an extra pass >> with >> > >external mp graphics {based on checksum calculation] but only with the >> > >undocumented --automprun, so >> > > >> > >texexec --automprun yourfile.tex >> > >> > Runtime graphics with \write18 are compiled each tex run, no matter if >> they >> > were changed or not. A checksum calculation could speed up things >> > significantly. Perhaps this is a feature worth thinking of, if it can be >> > implemented with acceptable effort. >> >>You need checksum calculation in TeX macros then, since nothing else is >>called >>inbetween. Possible, of course, but it might actually be slower than >>calling MP >>regardless of change. > >But what about having texexec/perl calculate the checksums, writing them >to an auxiliary file, and tex just reading them? And in any case, one can >be sure that the mp code will not change during the same call to texexec >(or can there be exceptions?), so that if, say, three tex runs are >necessary, one run of mp would be sufficient. Setting some switch may be >sufficient to achieve this. actually, if you search texexec.pl for the word checksum, you will see that something like that is done. One pitfall is when one uses random numbers [context sets the mp random number in order to have control over successive runs]. Th eexperimental --automp will give you the functionality needed. With runtime graphics there is no saving to gain exept calculating a checksum per graphic and saving it in the tuo file. The best saving is to use reusable graphic or unique ones when possible [is possibel in most cases] 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 -------------------------------------------------------------------------