header and footer latex code example

Example 1: footnote latex

I'm writing something here to test \footnote{footnotes working fine}
several features.

Example 2: how to add footer only on first page latex

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

\fancyhf{}
\pagestyle{fancy}

\AtBeginDocument{%
  \rfoot{Alim, from Unknown City}%
  \AtBeginShipoutNext{%
    \rfoot{}%
  }%
}

\begin{document}
\lipsum[1-20]
\end{document}

Tags:

Misc Example