In the TOC page the "Contents" title appears twice, once at the beginning and once at the end of the table of contents. This problem started when I added the "fancyhdr" commands, since headers and footers are required to appear in the title page as well as in the table of contents page (this is also not working yet). I've tried many suggestions such as:

How do I prevent “Contents” from appearing twice in the header when I use \leftmark and \rightmark with fancyhdr?

How to prevent “CONTENTS” from appearing as a header in ToC

(and many others) but still the problem persists. Here is a short version of the main files I'm using (I only included the most relevant packages for this problem).

The main document (with preamble) looks like this:

    \usepackage[utf8]{inputenc} % allow specify input encoding
    \usepackage[margin=1in]{geometry} % page dimensions
    \usepackage{emptypage} % remove all pages with no text 

    % Style customization for headers and footers 
    \fancyhf{} % clears the header and footer
    \lhead{Title goes here} % left side of the header
    \rhead{\today\ } % right side of the header
    \lfoot{Document \#: FFFFF } 
    \cfoot{\thepage} % center of the footer

    % Extra level of sections & include them in TOC

    % Commands: 
    % Eliminate numbering on titles 

    % Trying to fix double Contents title (not working yet)


    {\huge\bf Title goes here }\\ 
    \rule{\textwidth}{2pt} % horizontal line 
    {\huge\bf Sub-title goes here}\\ 
    \renewcommand{\contentsname}{TABLE OF CONTENTS} 
    % delete white pages 



The Intro.tex has for now only:


Chapter1.tex and Chapter2.tex respectively look like this:

    \chapter{Chapter 1}
    \section{Section 1}

1 Answer 1


First, it is not the header and second , this has nothing to do with fancyhdr.

You have called \tableofcontents twice:


Remove one of them (the second one):

%\tableofcontents      %%<---remove

You will get

enter image description here

BTW, remove these lines too:

  • Great! Thank you so very much Harish! That fixed the problem. I was confused because I thought the line \tableofcontents\thispagestyle{fancy} was used to only add the style for the TOC page. I really appreciate all your help. =] Commented Sep 7, 2015 at 16:58
  • @StalinRios You are welcome. Please remember that you can also accept the answer if it helped solve your problem by clicking the pale green check mark below the vote count.
    – user11232
    Commented Sep 7, 2015 at 22:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .