GeneralWrong page numbers in toc without warning in log file.

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
sgalland
Posts: 1
Joined: Sun Feb 21, 2016 11:58 pm

Wrong page numbers in toc without warning in log file.

Post by sgalland »

I have encountered a problem related to wrong page numbers in the TOC.

Consider the following LaTeX document:

Code: Select all

\documentclass{article}
\usepackage{blindtext}
\begin{document}
\tableofcontents
\section{First section}
\Blindtext
\section{Second section}
\blindtext
\section{Another section on page 4}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\section{Another section}
\end{document}
After two calls to pdflatex, I obtain a table of content that have invalid pages:
Contents
1 First section 1
2 Second section 2
3 Another section on page 4 3
The section number 3 in on the page 4 in the PDF file. But the table of content shows page 3.

I know that a new call to pdflatex will solve this issue.

But the problem is that there is no message in the log file that indicates that a new call to pdflatex is needed.

Indeed, the content of the log file after two calls to pdflatex is:
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) (format=pdflatex 2014.11.3) 21 FEB 2016 22:32
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**doc.tex
(./doc.tex
LaTeX2e <2011/06/27>
Babel <3.9h> and hyphenation patterns for 4 languages loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (./doc.aux)
\openout1 = `doc.aux'.

LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info: ... okay on input line 3.

(./doc.toc)
\tf@toc=\write3
\openout3 = `doc.toc'.

[1

{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] [3]
Overfull \vbox (27.95787pt too high) has occurred while \output is active []


[4] (./doc.aux) )
Here is how much of TeX's memory you used:
211 strings out of 494999
2209 string characters out of 6180228
60974 words of memory out of 5000000
3510 multiletter control sequences out of 15000+600000
4553 words of font info for 17 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
23i,4n,17p,2826b,109s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/
cmbx10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12
.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on doc.pdf (4 pages, 37538 bytes).
PDF statistics:
29 PDF objects out of 1000 (max. 8388607)
19 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

Why pdflatex is not indicating in its log file that a new pdflatex call is needed? Is the standard/expected behavior of pdflatex?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply