bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #43122] texi2dvi does not compile enough times to get toc


From: Vincent Belaïche
Subject: Re: [bug #43122] texi2dvi does not compile enough times to get toc
Date: Wed, 16 Sep 2015 07:49:54 +0200


Le 16/09/2015 00:25, Gavin Smith a écrit :
> On 15 September 2015 at 22:49, Vincent Belaïche
> <address@hidden> wrote:
>> There is another optimization that could be done: at the end of the loop
>> run_bibtex and run_index are launched one more time even though that
>> could be useless if the loop is broken immediately afterwards (running
>> index and bibtex is useful only if we make a loop and have again a core
>> conversion, otherwise it does not have any impact on the finale output).
>>
>> In other words we have:
>>
>>     run_core_conversion
>>     run_bibtex
>>     run_index
>>     xref_files_changed || break
>>
>> While it should be
>>
>>
>>     run_core_conversion
>>     xref_files_changed || break
>>     run_bibtex
>>     run_index
>
> I get it, the first time the aux and toc files are new, so we'll have
> to rerun TeX. If TeX has to be run a third time, then it will pick up
> the index files from the second round, so producing the index files on
> the first round was useless.

I did not mean that producing the index files on the first round was
useless. It can alter the page numbers of some reference: for instance
if the index is not at the end of the document, and you refer to the
page of some chapter after it, then this page will increase after the
index file is produced.

What I meant was diffent : imagine you have to run 3 times TeX, then you
need to produce the index files only twice, not 3 times, as you don't
need them after the last TeX run. In the current implementation the
index files would be produced 3 times.

In other words, if there are N TeX runs then:
- I did *NOT* mean that you need only one index file production
- but I did mean that you need N-1 index file production.


VBR,
        Vincent


> The way to change this would be to check
> for changed files separately.
>

[...]


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]