I'm using the fancyhdr
package to include a header on each page. In order to surpress the section title also being cited in the header of each page, I'm using the command \fancyhf{}
, however this also erases all page numbers after the first page. Does anybody know how to get them back in?
See code below
\documentclass[10pt, letter]{article}
\usepackage{setspace}
\usepackage[margin=1.250in]{geometry}
\singlespacing
\usepackage{fancyhdr}
\fancyhf{}
\pagestyle{fancy}
\rhead{\textcolor{gray}{Mock Draft}}
\renewcommand{\headrulewidth}{0pt}
\usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor
\begin{document}
xxxxx
\clearpage
xxxx
\clearpage
xxxx
\end{document}
Many thanks!
Best Answer
This can be done with the help of the
afterpage
package.Before the page where you want the page number begins, put:
So, your MWE can be rewritten as:
Note that I deleted
letter
from the options of thearticle
class. The default is already the letter paper and anyway the right option isletterpaper
.