GeneralWrong Page Number in ToC for manually added Chapter

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Rustam
Posts: 22
Joined: Fri Nov 02, 2012 5:15 pm

Wrong Page Number in ToC for manually added Chapter

Post by Rustam »

My file (see attachements) contain following code.

Code: Select all

\addcontentsline{toc}{chapter}{Frequently used notation}
\section*{Frequently used notation}
The "Frequently used notation" is added to ToC but with wrong page number; page number 1 in ToC, but "Frequently used notation" chapter placed on page number 2.

How to correct this mismatch?
Attachments
try_toc.pdf
(107.86 KiB) Downloaded 220 times
try_toc.tex
(5.87 KiB) Downloaded 285 times

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Wrong Page Number in ToC for manually added Chapter

Post by Stefan Kottwitz »

Hi Rustam,

simply put a \clearpage before the \addcontentsline command, even before \phantomsection if you would use that, to end the abstract page before you make the toc entry.

Stefan
LaTeX.org admin
Post Reply