Bug 201286 - latex should be rerun if toc is old
Summary: latex should be rerun if toc is old
Status: CONFIRMED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.0.82
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-23 22:27 UTC by Thomas Braun
Modified: 2021-03-09 06:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.