Page LayoutReferences in ToC

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
iging
Posts: 2
Joined: Thu Dec 22, 2011 5:36 pm

References in ToC

Post by iging »

Hi All,

I have problem with the ToC of my thesis. I already define References for each chapter separately using \usepackage{chapterbib}. It works, References appear at the end of each chapters, and also appear in the ToC in every end of the chapters.

The problem is, I always see References appearing at the end of the ToC with the same page as summary. I assume this is the 'general' references. How can I remove this in the ToC (red arrow in the figure)?
Ref_ToC.JPG
Ref_ToC.JPG (17.43 KiB) Viewed 2039 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

skanda
Posts: 28
Joined: Sat May 16, 2009 6:32 pm

References in ToC

Post by skanda »

This is one of those odd bugs. Only the unlucky get it from time to time..... So sad to hear that you were one of them.

From my notes, here are two possible solutions:

1) Add the command \cleardoublepage just before the \addcontentsline.

2) The slightly involved solution consists of renewing the command \refname to automatically create a TOC
entry on reference, thus:

Code: Select all

\let\myRefname\refname%
\renewcommand\refname{\addcontentsline{toc}{section}%
      {\myRefname}\myRefname}%
Place this code in your preamble. Run everything as usual
Good Luck!

If either one of this solves your problem, please edit your question and change the status of your question to "solved" by using the "tick mark" icon.

Best,
Skanda.
iging
Posts: 2
Joined: Thu Dec 22, 2011 5:36 pm

Re: References in ToC

Post by iging »

Hi Skanda,

Thank you for your reply. Both solutions do not work.

I was thinking to edit manually the thesis.toc file. Is there any way to keep the 'edited' *.toc file after compiling (rather than updating the *.toc)?

regards,
Post Reply