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:








marked as duplicate by Werner table-of-contents Dec 16 '16 at 16:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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

I was missing the line:


in my preamble.

Not the answer you're looking for? Browse other questions tagged or ask your own question.