36
 \begin{document}
  \tableofcontents
  \include{chapter1}
  \bibliographystyle{plain}
  \bibliography{biblio}
 \end{document}

The bibliography does not appear in the table of contents, have you an idea please?

If I add this:

\usepackage[nottoc,numbib]{tocbibind}

the bibliography will appear as a chapter in my document!!

5 Answers 5

61

To get the bibliography to be listed in the ToC as an unnumbered sectional unit (chapter or section), use tocbibind without the numbib option:

\usepackage[nottoc,notlot,notlof]{tocbibind}

Another option would be to use the etoolbox package to patch \thebibliography to use \addcontentsline:

\documentclass{book}
\usepackage{etoolbox}

\apptocmd{\thebibliography}{\csname phantomsection\endcsname\addcontentsline{toc}{chapter}{\bibname}}{}{}

\begin{document}
\tableofcontents
\include{chapter1}
\bibliographystyle{plain}
\bibliography{biblio}
\end{document}
8
  • sorry i want it a chapter in the TOC but without mention in the bibliographie page: Chapter2: Bibliographie
    – researcher
    Sep 11, 2012 at 19:12
  • @researcher please see my updated answer. Sep 11, 2012 at 19:57
  • i have used the second solution because the first one appear the listoffigures and list of table in the TOC
    – researcher
    Sep 11, 2012 at 20:08
  • @researcher you can use the notlot, notlof options; see my updated answer. Sep 11, 2012 at 20:10
  • ok, i have tested the first solution, it works, thank you :)
    – researcher
    Sep 11, 2012 at 20:14
14

A very easy way is to include following line before after writing bibliography, i.e., after the command \bibliography in standard LaTeX or after the command \printbibliography using the package biblatex.

\addcontentsline{toc}{chapter}{Bibliography}

here is the original post: Insert bibliography into table of content

For example, in standard LaTeX

\documentclass{book}

\begin{document}
\tableofcontents
\include{chapter1}
\bibliographystyle{plain}
\bibliography{biblio}%writing the bibliography
\addcontentsline{toc}{chapter}{Bibliography}%Including it as a chapter
\end{document}

Or with the package biblatex

\documentclass{book}
\usepackage[style=plain]{biblatex}
\addbibresource{biblio}

\begin{document}
\tableofcontents
\include{chapter1}
\printbibliography%Writing the bibliography
\addcontentsline{toc}{chapter}{Bibliography}%Including it as a chapter
\end{document}
5
  • 2
    It's problematic - if at the chapter starts at the new page it will show bibliography as starting on previous page then it should. Jan 12, 2013 at 10:42
  • Yes, i recognized this too. But do you know how it can be changed to the real value even with this function?
    – XandruCea
    Jan 12, 2013 at 16:21
  • No. But Gonzalo's method with \usepackage[nottoc,notlot,notlof]{tocbibind} worked. Jan 12, 2013 at 18:33
  • Ok, than sorry for this, i just recognized it a week later and forgot i just posted this solution here. But thank you for the reminder, otherwise i would be wondering next time again about this .
    – XandruCea
    Jan 12, 2013 at 20:41
  • 1
    Note that here, Bibliography can be replaced with whatever you like, e.g. References, Works Cited, Orange Monkey List. Of course, it usually makes sense for this text to be the same as the title that appears at the top of your bibliography.
    – Cerran
    Mar 5, 2014 at 15:28
2

Placing the

\addcontentsline{toc}{chapter}{Bibliography}

immediately below the

\begin{thebibliography}

seems to work.

3
  • 1
    Welcome! This works if the bibliography is “hand made”, but in the case of this question it is produced with BibTeX.
    – egreg
    Dec 11, 2016 at 22:26
  • Thank you and sorry, I didn't see the question was BibTeX-bound. Dec 12, 2016 at 0:27
  • If it is after, the hyperlink works but the page number in the ToC is the last page of the bibliography. Feb 21, 2021 at 14:14
0

Can use following example on adding

  • Bibliography

  • List of Publications

  • Brief Biodata


\include{chap5} 
\addcontentsline{toc}{chapter}{Bibliography}

\bibliographystyle{IEEEtran}
\bibliography{IEEEabrv,Main_thesis}

\input{lop.tex}
\addcontentsline{toc}{chapter}{List of Publications}
\input{biodata.tex}
\addcontentsline{toc}{chapter}{Brief Biodata of the Author}
1
  • This solution was already correctly covered in another answer. You are adding the toc entry at the wrong point.
    – Johannes_B
    May 1, 2017 at 5:01
0

I had the problem that tocbibind only includes the bibliography as section, which looks like it's part of the last chapter. So I found a solution which also works with hyperref :

\phantomsection
\addcontentsline{toc}{chapter}{\refname}
\renewcommand{\addcontentsline}[3]{}
\bibliography{biblio}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.