0

I am required to use a custom LaTeX class. This class internally uses fancyhdr and, no matter how much I try, I cannot add a footer to the first page. The footer can appear on other pages but not on the first page. Since I am not allowed to change the LaTeX class for this document, are there any other packages I can use to add a footer?

Edit

Unfortunately, I cannot provide any MWE because the Latex class is proprietary and not available in the public domain.

6
  • it is difficult to help if you show no code but probably your first page has a title command that does \thispagestyle{empty} you can re-enable the page style with a later \thispagestyle{fancy} or whatever page style you are using Commented Jun 22, 2021 at 18:02
  • @DavidCarlisle Thanks for the suggestions. Unfortunately, I cannot provide any code as the Latex class is proprietary and not available in the public domain.
    – bherve1998
    Commented Jun 22, 2021 at 18:26
  • you could provide some clues. Or if it is a commercially supported class, then ask the people supporting it. There really isn't a lot anyone can do to a question that basically amounts to "some code I have not shown does something I do not expect, how do I fix it". Commented Jun 22, 2021 at 18:30
  • @DavidCarlisle You're right. It's rude of me to ask this question here
    – bherve1998
    Commented Jun 22, 2021 at 18:38
  • not rude, but possibly pointless, unless actually my first comment solves your problem (which probably it will if used with the right page style) Commented Jun 22, 2021 at 18:39

1 Answer 1

0

If this is just the first page of the document then something like this should work:

\documentclass{article}
\usepackage{fancyhdr}
\usepackage{lipsum}

\pagestyle{fancy}

\fancypagestyle{firstpage}{%
  \fancyhead{}
  \renewcommand\headrule{}
  \fancyfoot[C]{First page footer}
}

\begin{document}
\thispagestyle{firstpage}
\lipsum
\end{document}

If you want it for the first page of each chapter, then use

\fancypagestyle{plain}{....}

Not the answer you're looking for? Browse other questions tagged .