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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Looking at the example provided in Different headers for different chapters, I noticed something strange: The vertical alignment of sections is varying. I was able to strip the effect down to the following (hopefully minimal) example:




\chapter{My First Chapter}
\section{Section 1}
\section{Section 2}
\section{Section 3}


If you look closely, the vertical alignment of "Section 1" differs from those of "Section 2" and "Section 3" (which are the same). The effect disappears if you either a) refrain from using the fancyhdr package and \pagestyle{fancy} or b) switch to the 10pt class option. What is causing this strange vertical alignment?

share|improve this question
up vote 8 down vote accepted

I think you can find in the log the complaint that due to insufficient \headheight the alignment might be uneven. Try to increase \headheight.

share|improve this answer
I'll be damned. Package Fancyhdr Warning: \headheight is too small (12.0pt): Make it at least 14.49998pt. We now make it that large for the rest of the document. This may cause the page layout to be inconsistent, however. – lockstep Dec 8 '11 at 14:43
I was writing from a phone, so I could not run MWE, but I remember rhis warning :) – Boris Dec 8 '11 at 14:46

Your Answer


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.