I'm making a report in latex, using the report documentclass, and i want to remove the page numbers on the buttom of the pages, that latex automatically adds, while also having the page number in the header instead. Can anybody help?

edit: I am using fancyhdr. My question has been answered, thank you guys.

  • 1
    maybe the fancyhdr package is useful? (ctan.org/pkg/fancyhdr?lang=en)
    – Marijn
    Feb 25, 2016 at 9:36
  • I am using fanyhdr, but how to make it remove the number on the buttom, while still being capable of showing it in the header?
    – Killemusen
    Feb 25, 2016 at 9:38
  • Please provide short, complete document (minimal working example), which we can compile. In it show how you use fancyhdr. With this your document we will can more easy to help you. Also try to search for similar question here. They are quite often.
    – Zarko
    Feb 25, 2016 at 9:41

2 Answers 2


Load this in your preamble



A good description for the start is given in here. The fancyhdr package provides a lot of flexibility. You could also have a look at the koma-script classes.

  • 1
    If you want to remove the page number at the bottom without adding anything to the top, these two commands work. \fancyhf{} \renewcommand{\headrulewidth}{0pt} tex.stackexchange.com/questions/13896/…
    – mpr
    May 2, 2018 at 21:36

Just issue the instruction


(The default is \pagestyle{plain}.)

Note that you'll still page numbers placed at the bottom of the page for pages with chapter-level headings. This is usually a good idea since you wouldn't want page-number information competing visually with chapter-number information.

If you want any chapter-related information to be shown in the header line alongside the page numbers, use the headings page style, rather than the myheadings style.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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