How to Change Page Numbering in LaTeX
The fix
Control page numbers in LaTeX with \pagenumbering{roman} for front matter (i, ii, iii) and \pagenumbering{arabic} to restart at 1 for the main body. Remove the number on a single page with \thispagestyle{empty}, or turn numbers off entirely with \pagestyle{empty}.
Example
\begin{document}
\pagenumbering{roman} % i, ii, iii ...
\tableofcontents
\newpage
\pagenumbering{arabic} % restarts at 1
% main content ...
\thispagestyle{empty} % no number on THIS pageFrequently asked questions
How do I use Roman numerals for the front matter?
Put \pagenumbering{roman} before the front matter and \pagenumbering{arabic} where the main text starts — the latter also resets the counter to 1.
How do I remove the page number from the first page?
Add \thispagestyle{empty} on that page (for example the title page). To remove numbers everywhere, use \pagestyle{empty}.
How do I start numbering from a specific number?
Use \setcounter{page}{5} to force the current page to a chosen number.
Try the fix in LetX
Open the editor, paste your code, and compile in 1 second to see the error clear — free, in your browser.
Open LetX Free