Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to modify the font size of my page numbers in footers, but running into problems with the chapter page when using an epigraph. Here is my MWE:

\usepackage{epigraph, fancyhdr}


% clear plain page style
\fancyfoot[C]{\changefont \thepage}


\fancyhead[LE]{\changefont \slshape \rightmark}
\fancyhead[RO]{\changefont \slshape \leftmark}
\fancyfoot[C]{\changefont \thepage}

\ \thechapter.\ #1}{}}



\fancyhead[LE,RO]{\changefont \slshape Acknowledgements}
\fancyfoot[C]{\changefont \thepage}

\epigraphhead[70]{\epigraph{The isolated man does not develop any intellectual power. It is necessary for him to be immersed in an environment\ldots}{Alan Turing}}

Acknowledgements go here.


I've tried changing the epigraph pagestyle with the modified footer, using

\fancypagestyle{epigraph}{\fancyfoot[C]{\changefont \thepage}}

but this removes my epigraph. Any ideas?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The correct way to modify the size of the page number in the footer is by redefining the \epigraphhead macro, which sets the page-style for that page (in which \epigraphhead[...]{...} is provided) using \ps@epigraph command. This can't be done using \fancypagestyle{epigraph}{\fancyfoot[C]{\changefont \thepage}}, as this removes the epigraph itself. The position and placement of epigraph is handled by this macro along with the pagestyle definition.

The right way is to add the macro just before \begin{document}:


Note: I have added \changefont to the definition of \@oddfoot.

There is also a \reset@font command provided in the \@oddfoot macro. We can also change the font size by setting \changefont to \reset@font without the above provided tweak. I think this will not be a good idea, since \reset@font work as \normalfont in core macros.

share|improve this answer
Excellent! This worked perfectly. –  Kyle Niemeyer Jul 26 '13 at 16:59
@Jagath AR: is there a simple way to just have the "normal" page style (as without the \epigraphhead command)? –  Dan Nov 25 '13 at 20:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.