Bug 201286

Summary: latex should be rerun if toc is old
Product: [Applications] kile Reporter: Thomas Braun <thomas.braun>
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version: 2.0.82   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thomas Braun 2009-07-23 22:27:25 UTC
Version:           2.0.82 (using 4.2.98 (KDE 4.2.98 (KDE 4.3 RC3)), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.26-2-686

Currently kile can automatically rerun latex if the index is too old or the bbl file or if we got embedded asymptote code.

But if you have a \tableofcontents one has to manually invoke latex twice. This is annyoing. The problem here is that latex does not complain in any way that the toc is too old. One idea taken from http://www.commandlinefu.com/commands/view/2576/check-if-you-need-to-run-latex-to-update-the-toc is to compare the old toc before the latex run and the toc file after the latex run.

A work around is to set as latex tool the following code.
Command:
####
cp '%S'.toc '%S'.toc.bak;
####

Options:
####
latex -interaction=nonstopmode '%source';
cmp -s '%S'.toc '%S'.toc.bak;
if [ $? -ne 0 ]; then
latex -interaction=nonstopmode '%source';
fi
####
Comment 1 Justin Zobel 2021-03-09 06:59:15 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.