Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
 \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!!

share|improve this question
add comment

2 Answers

up vote 8 down vote accepted

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}
share|improve this answer
    
sorry i want it a chapter in the TOC but without mention in the bibliographie page: Chapter2: Bibliographie –  researcher Sep 11 '12 at 19:12
    
@researcher please see my updated answer. –  Gonzalo Medina Sep 11 '12 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 '12 at 20:08
    
@researcher you can use the notlot, notlof options; see my updated answer. –  Gonzalo Medina Sep 11 '12 at 20:10
    
ok, i have tested the first solution, it works, thank you :) –  researcher Sep 11 '12 at 20:14
show 2 more comments

A very easy way is to include following line before the bibliography starts, at the end of the document.

\addcontentsline{toc}{chapter}{Bibliography}

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

share|improve this answer
1  
It's problematic - if at the chapter starts at the new page it will show bibliography as starting on previous page then it should. –  Maciej Piechotka Jan 12 '13 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? –  亚历山大 Jan 12 '13 at 16:21
    
No. But Gonzalo's method with \usepackage[nottoc,notlot,notlof]{tocbibind} worked. –  Maciej Piechotka Jan 12 '13 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 . –  亚历山大 Jan 12 '13 at 20:41
    
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 at 15:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.
http://tex.stackexchange.com/questions/71129/bibliography-in-table-of-contents/86623
tex.stackexchange.com
crawl=CC-MAIN-2014-15
78070
application/http; msgtype=response
sha1:VP6IRJGJ5DS24PFLW5KDORL6ELFLHSIX
<urn:uuid:7a0252f5-684b-4dfc-bdfa-6dd1d3f00d87>
2014-04-17T12:46:16Z
198.252.206.140
sha1:QSAXPLTCZWZDQZL5IJ3HHH26D446R6GR
<urn:uuid:68c409c8-44ec-4da1-8e7a-2b1fc3606374>
http://tex.stackexchange.com/questions/71129/bibliography-in-table-of-contents/86623
response
<urn:uuid:9f5f5662-b675-4a0c-8168-03a842ec9497>
robots: classic
hostname: ip-10-147-4-33.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2014-15
operator: CommonCrawl Admin
description: Wide crawl of the web with URLs provided by Blekko for April 2014
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf