[Tex/LaTex] Preserve page numbering in fancyhdr

fancyhdrheader-footerpage-numbering

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:

\afterpage{\cfoot{\thepage}}

So, your MWE can be rewritten as:

\documentclass[10pt]{article}
\usepackage{setspace}
\usepackage[margin=1.250in]{geometry}
\singlespacing
\usepackage{fancyhdr}
\usepackage{afterpage}
\fancyhf{}
\pagestyle{fancy}
\rhead{\textcolor{gray}{Mock Draft}}
\renewcommand{\headrulewidth}{0pt}
\usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor

\begin{document}
xxxxx
\afterpage{\cfoot{\thepage}}
\clearpage
xxxx
\clearpage
xxxx
\end{document}

Note that I deleted letter from the options of the article class. The default is already the letter paper and anyway the right option is letterpaper.