How to Change Page Numbering in LaTeX
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}.
Not sure it worked on your document? Paste it into LetX and compile it, free and in the browser.
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.
Related LaTeX fixes
Browse all LaTeX problems & fixes, or start with the LaTeX guide.
Try the fix in LetX
Open the editor, paste your code, and compile in seconds to see the error clear. Free, in your browser.
Open LetX Free