[Tex/LaTex] fancyfoot on the last page

fancyhdrlastpage

On the last page of my document, I need to add Next Review Date: blah blah. If I add the text at the bottom of the document, there is a possibility that the text might appear on a new page on its own. Ideally, I need something like \fancyfoot[L]{Next Review Date: blah blah}, which only appears on the last page. I wonder how this can be done.

Best Answer

Lets define a new page style to be loaded only on the last page.

\makeatletter
\def\myrev{Next Review Date:}
\def\ps@lastpage{%
  \let\@oddhead\@empty\let\@evenhead\@empty%
  \def\@oddfoot{{\slshape\myrev}\hfil\thepage}%
  \def\@evenfoot{{\slshape\myrev}\hfil\thepage}%
  }
\makeatother

\begin{document}
here is the last page
\thispagestyle{lastpage}
\end{document}

Only the page with the command \thispagestyle{lastpage} will have the same footer, independently if it is even or odd.

Related Question