Page Layout ⇒ References in ToC
References in ToC
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)?
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
References in ToC
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}%
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.
Re: References in ToC
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,