[Tex/LaTex] Remove bibliography header from table of contents

bibliographiestable of contents

How can I remove the bibliography from table of contents?

I'm using this code :

\begin{document}
\tableofcontents*

%content content content %

\nocite{*}
\bibliographystyle{plain}
\bibliography{bibliography}

\printindex

\end{document}

Best Answer

As the O.P. stated he uses memoir as document class, so this is a possible (and most likely the easiest) solution:

Use the \nobibintoc command to prevent the inclusion of the bibliography in the ToC -- by default (see the relevant code at the end of this answer) \bibintoc is effective and enables the inclusion.

And here is the solution:

\documentclass{memoir}

\nobibintoc
\begin{document}
\tableofcontents*

\chapter{And now for something completely different}

\cite{Lam94}
\bibliographystyle{plain}
\bibliography{biblio}

%\printindex

\end{document}

enter image description here

Only for interested readers

Here's the relevant portion of memoir.cls which shows that inclusion of bibliography in the ToC is the default.

...
\newcommand{\@memb@bchap}{%
  \chapter*{\bibname}%
  \bibmark
  \ifnobibintoc\else
    \phantomsection
    \addcontentsline{toc}{chapter}{\bibname}%
  \fi
  \prebibhook}
\newcommand{\@memb@bsec}{\section{\bibname}\prebibhook}
\newcommand{\bibsection}{\@memb@bchap}

\newenvironment{thebibliography}[1]{%
  \bibsection
  \begin{bibitemlist}{#1}}{\end{bibitemlist}\postbibhook}
\newif\ifnobibintoc
\newcommand*{\bibintoc}{\nobibintocfalse}
\newcommand*{\nobibintoc}{\nobibintoctrue}
\bibintoc
...