General ⇒ table of content and page number
table of content and page number
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
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
Re: table of content and page number
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
table of content and page number
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
table of content and page number
in such cases a \cleardoublepage (or \clearpage) before \addcontentsline could help.
Stefan