Changing page number format
July 15, 2009
Mark Senn

How can the page number format be changed?

To change the page number format insert one of the following immediately after the \begin{document} command.

To center the page number do:

            \makeatletter
                \def\@@evenhead{\hfil\textrm{\thepage}\hfil}
                \def\@@oddhead{\hfil\textrm{\thepage}\hfil}
            \makeatother

To put odd-numbered page numbers (right-hand pages) on the right and even-numbered page numbers (left-hand pages) on the left do:

            \makeatletter
                \def\@@evenhead{\textrm{\thepage}\hfil}
                \def\@@oddhead{\hfil\textrm{\thepage}}
            \makeatother

Revised: July 15, 2009
Created: July 15, 2009