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 229 times
try_toc.tex
(5.87 KiB) Downloaded 294 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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