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.

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.

share|improve this question
2  
Please edit your question and add a short example code that reproduces the problem. –  Ian Thompson Jun 28 '12 at 11:45
    
I'm afraid I still can't reproduce the problem. It's best to provide a self-contained example (i.e. no \include or \bibliography commands, etc.). –  Ian Thompson Jun 28 '12 at 12:24
    
Please have a look at some points about minimal working examples (MWE) and reduce your code. Right now, it contains many many lines that don't have anything to do with your problem. Please also include how the solutions to the other questions didn't solve your problem. –  doncherry Jun 28 '12 at 12:36

1 Answer 1

up vote 3 down vote accepted

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

http://tex.stackexchange.com/a/8459/16059

The trick was to replace

\usepackage{tocbibind} 

With

\usepackage[nottoc,numbib]{tocbibind}

According to the post this should work for all standard classes (article, book, report).

share|improve this answer

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.