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

I have noticed that in the document I am working on the line in the header is changing position page to page. Basically there are two slightly (but notably) different vertical spaces between the line and the page number.

I managed to find out that the line's position is different using \doublespacing and \singlespacing.

Here is MWE: (need to be run twice - with \doublespacing and \singlespacing to see the difference of the line position)





\doublespacing         %different position when using \singlespacing



Have you any idea how I can fix the position of the line while I am using different spacing in the document and the line has different position depending on what is in the code -- single or double spacing.

share|improve this question
up vote 5 down vote accepted

You have to reinstate single spacing in the header:

share|improve this answer
Perfect!!! Thank you, egreg! – Karo Dec 20 '11 at 11:09

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.