TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 need to do the following:

For the first page of every section, the page number should be at the bottom and centered. The text should stop one "double space" above it.

For all other pages, the page number should be at the top right, with the text starting one "double space" below that.

How can I:

  1. Change the location of the page number according to the above?
  2. How can I specify a "double space" distance above/below the page number?
share|improve this question
up vote 12 down vote accepted

You could use a package like fancyhdr or scrpage2 to customize header and footer. Compile this example and look at header and footer of the pages with filler text:


The commands and their usage are described in the fancyhdr manual.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.