Generaltable of content and page number

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
omkardpd
Posts: 86
Joined: Sun Feb 24, 2008 7:23 am

table of content and page number

Post by omkardpd »

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

Recommended reading 2024:

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

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

PGScooter
Posts: 31
Joined: Mon Jul 14, 2008 2:47 pm

Re: table of content and page number

Post by PGScooter »

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.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

table of content and page number

Post by localghost »

Try the tocbibind package to get your bibliography into the ToC.


Best regards
Thorsten¹
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

table of content and page number

Post by Stefan Kottwitz »

Hi Omkar,

in such cases a \cleardoublepage (or \clearpage) before \addcontentsline could help.

Stefan
LaTeX.org admin
Post Reply