How to add bibliography to TOC in LaTeX

By default, the table of contents (TOC), bibliography and index sections of a book do not appear in the TOC. They do not appear in the TOC that is shown in the PDF reader in a sidewindow either. To make them appear in TOC add the package tocbibind to the preamble.

Tried with: Ubuntu 14.04

How to use BibLaTeX

BibLaTeX is a modern alternative to BibTeX. Using it in your LaTeX document is pretty simple:


% Add at the top
\usepackage{biblatex}
% Add in preamble
\addbibresource{foo.bib}
% Cite somewhere in document
\cite{foobarreference}
% Add before end of document
\printbibliography

Tried with: Ubuntu 12.04 LTS