Hi,
I am using a documentclass "book" and using the following command for the last chapter.
\addcontentsline{toc}{chapter}{References}
\renewcommand{\bibname}{References}
I am getting a correct table of content for all chapters except page number for the last chapter. The chapter starts on page 26, but it prints 25 in table of contents.
Is this a common issue or I am missing out on something?
Thank you,
Omkar
General ⇒ table of content and page number
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: table of content and page number
I have had similar problems. As a temporary solution, you experiment with moving your addcontentsline down a little bit. This has worked for me in the past.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
table of content and page number
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
table of content and page number
Hi Omkar,
in such cases a \cleardoublepage (or \clearpage) before \addcontentsline could help.
Stefan
in such cases a \cleardoublepage (or \clearpage) before \addcontentsline could help.
Stefan
LaTeX.org admin