How to remove double “Contents” heading generated by book
class?
I've tried using the following advice which was given for the memoir
class but none of these solve my problem.
How to remove the self-reference of the ToC from the ToC?
How to remove "Contents" line from table of contents
How to remove double "Contents" heading generated by memoir?
Hiding the "Table of Contents" page from Table of Contents
The structure of my document is as follows:
\documentclass[12pt, twoside, a4paper]{book}
\usepackage{tocbibind}
\setcounter{secnumdepth}{0}
\begin{document}
\frontmatter
\setcounter{tocdepth}{1}
\tableofcontents
\mainmatter
\chapter[Chapter 1]{Chapter 1}
\appendix
\chapter[Appendix 1]{Appendix 1}
\backmatter
\cleardoublepage
\phantomsection
\clearpage
\begin{thebibliography}{}
\end{thebibliography}
%\addcontentsline{toc}{chapter}{\numberline{}Bibliography}%
\chapter[Summary]{Summary}
\end{document}
I could solve the self reference 'contents' in the TOC by:
Removing the "%" in front of
\addcontentsline{toc}{chapter}{\numberline{}Bibliography}
and removing
\usepackage{tocbibind}
\phantomsection
However, this creates a new problem. In that case the bibliography is no longer lined out with the backmatter (in ToC). In stead it is spaced with the titles of the Appendices (without the appendix number).
What I want is for the bibliography to appear inline with the backmatter sections (Summary) in the ToC without a self reference of the 'contents' heading.
Best Answer
I have found a solution thanks to the information in:
Making the bibliography appear in the table of contents
In which the following answer helped me
https://tex.stackexchange.com/a/8459/16059
The trick was to replace
With
According to the post this should work for all standard classes (
article
,book
,report
).