# Entry in table of content and page number overlap [duplicate]

This question already has an answer here:

I have the following problem. I am using the report document class to write my master's thesis. My table of content naturally extends to more than more line, and I have page numbers in the top right corner, except for the first page of each section.

The first page of the table of content does not have a page number (this is correct). The second page and on do have the correct page numbers, except that: on the second page, the page number overlaps on the top entry of the table of content. For example, the first entry in the table of content is:

2.6.4 This is the first line on this page........... 29


and the page number (iv) appears directly on top of the 29. How can I prevent this from happening? This doesn't happen on the next page, i.e. the v appears above the top entry and the same is true for page vi.

Here's the relevant part of my preamble:

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}

...

\begin{document}

...

\tableofcontents

...

\end{document}


## marked as duplicate by Werner table-of-contents StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Dec 16 '16 at 16:13

• Is your document two-sided? – Bernard Dec 9 '16 at 0:53
• What other content do you have in the header? Are you getting any warnings/messages from fancyhdr in your .log (something about the header being too big, perhaps)? – Werner Dec 9 '16 at 1:05
• No, my document is not two-sided. – Luis Negrete Dec 9 '16 at 17:03
• In my .log file, there's a warning that reads: Package Fancyhdr Warning: \headheight is too small (0.0pt): Make it at least 13.59999pt. We now make it that large for the rest of the document. This may cause the page layout to be inconsistent, however. – Luis Negrete Dec 9 '16 at 17:03

\setlength{\headheight}{14pt}