In my \documentclass{article}, I would like the last few pages (in essence appendix) to be without numbers, but retain the header (\thispagestyle{empty}) is so out of the question). Is there a way to turn off only page numbering? I use fancyhdr to construct my headers.

2 Answers 2


How stupid of me. After I submitted my question, my search led me to this page that solves the problem by using \pagenumbering{gobble}.

  • 7
    A couple of years too late to say this perhaps but "not stupid at all, sir!". You pretty much just saved my (academic) life!
    – dearN
    Commented Feb 28, 2013 at 13:35
  • @Roman: It's a good idea to mark your own answer as accepted if it solves your problem.
    – Lii
    Commented Sep 2, 2013 at 17:30

With the fancyhdr package, you can avoid page numbers simply by doing:


And you can still use \pagestyle{fancy} or anything else than \pagestyle{empty}.

  • Not sure why but this didn’t work for me.
    – Roly
    Commented May 28, 2023 at 15:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .