[Tex/LaTex] How to typeset a footer on only one page

header-footer

Does anyone know how I can make \rfoot at only 1 page.

I am using report as document class, and in my preface I want my name and city at the right side at the bottom of the page

Best Answer

This is a more conventional method...

Define a new page style

\fancypagestyle{alim}{\fancyhf{}\renewcommand{\headrulewidth}{0pt}\fancyfoot[R]{Alim, from Unknown City}}

and use

\thispagestyle{alim}

only in the page where you want the right foot, e.g. the title page.

MWE:

\documentclass{report}
\usepackage{fancyhdr}
\usepackage{lipsum} % just for the example

\fancypagestyle{alim}{\fancyhf{}\renewcommand{\headrulewidth}{0pt}\fancyfoot[R]{Alim, from Unknown City}}
\pagestyle{fancy} % or whatever

\begin{document}
\begin{titlepage}
\thispagestyle{alim}
\lipsum[1-4]
\end{titlepage}
\lipsum[1-4]
\end{document} 

Output:

enter image description here

Related Question