ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* problem with texexec and inline metapost
@ 2001-07-03 18:01 Eckhart Guthöhrlein
  2001-07-04  6:47 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Eckhart Guthöhrlein @ 2001-07-03 18:01 UTC (permalink / raw)


When running texexec over my input file containing a metapost graphic 
(first time, no mpgraph files exist), metapost is called after the first 
run, but then tex is not called again. Therefore, I have to call texexec 
twice to actually get the graphics in my dvi file. Accordingly, changes to 
the mp code become effective only after the second call to texexec (when 
creating pdf. - the dvi driver of course finds the updated file after the 
first run). I thought texexec would do this job for me, so perhaps there is 
a switch I didn't see yet?
When I enable \write18 and \runMPgraphicstrue, creating graphics during 
runtime works fine. But I would prefer to have \write18 disabled.
I tried 'texexec --mptex xyz', but then texexec just quits after its 
version message, doing nothing else. ?
I'm using the latest version of context/texexec together with miktex 2.1. 
Maybe I should just take a break, but I don't see what I have left to try.

Eckhart


^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: problem with texexec and inline metapost
@ 2001-07-14 16:27 Eckhart Guthöhrlein
  2001-07-16  7:36 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Eckhart Guthöhrlein @ 2001-07-14 16:27 UTC (permalink / raw)
  Cc: ConTeXt mailing list, hans Hagen

At 12:57 14.07.2001 +0200, you wrote:
>Eckhart Guthöhrlein wrote:
> >
> > 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.
>
>It *can* change with a texexec, imagine using the page number in the MP
>code, for example. More serious problem: even if texexec calculates the
>checksum, then how would the TeX macro code know its status without
>first
>calculating a checksum itself? It needs to compare two checksums: one
>from
>this run against the one from the previous run.

So, why not keeping two checksums in the aux file? No, no, all right, I 
admit that I did not think beyond my simple applications. Metapost is 
actually quite fast, so I must agree with yoz that the additional gain of 
speed (maybe even not...) is probably not worth the trouble. And it is 
likely that there will be more problems than positive effects and than I 
can imagine... So let's forget about it, it was just an idea, coming up 
because my - until recently - preferred method texexec --automprun does not 
work as expected at the moment (see the other thread).

Eckhart


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-07-16  7:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-03 18:01 problem with texexec and inline metapost Eckhart Guthöhrlein
2001-07-04  6:47 ` Hans Hagen
2001-07-04  7:30   ` Eckhart Guthöhrlein
2001-07-14 10:02   ` Eckhart Guthöhrlein
2001-07-14 10:35     ` Taco Hoekwater
2001-07-14 10:38       ` Eckhart Guthöhrlein
2001-07-14 10:57         ` Taco Hoekwater
2001-07-16  7:33         ` Hans Hagen
2001-07-14 16:27 Eckhart Guthöhrlein
2001-07-16  7:36 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).