[Tex/LaTex] Custom first page with fancyhdr


I'm using the package fancyhdr to format my footers and headers, with my name in the header and a n of m pages format for the footer. Like so:

\fancyhf{} % clear all header and footer fields
\fancyfoot[C]{\footnotesize Page \thepage\ of \pageref{LastPage}}

By default, the fancy page style only affects the pages after the first page. I know I can set the first page to the fancy page style using \thispagestyle, but I only want the first page to use the footer, not the header. Is there a way to create a custom style that just the first page will use?

Best Answer

The \fancypagestyle command can be used to create custom styles:

   \fancyfoot[C]{\footnotesize Page \thepage\ of \pageref{LastPage}}
   \renewcommand{\headrulewidth}{0pt} % removes horizontal header line

Then just use \thispagestyle{firststyle} on the first page, immediately after \maketitle (if that is used).

Related Question