page number i latex code example
Example 1: add page number in overleaf
\documentclass{article}
\usepackage{lastpage}
\usepackage{fancyhdr}
\fancyfoot[C]{Page \thepage\ of \pageref{LastPage}}
% Uncomment to remove the header rule
% \renewcommand{\headrulewidth}{0pt}
\pagestyle{fancy}
\begin{document}
some dummy text
\end{document}
Example 2: remove page number latex
To suppress page numbers on a single page, use \thispagestyle{empty}
somewhere within the text of the page. Note that, in the standard classes,
\maketitle and \chapter use \thispagestyle internally, so your call
must be after those commands.