To remove page numbers from your LaTeX document, you can use one of the following methods depending on where and how the page numbers are being added.
1. Remove all page numbers (including headers/footers)
If you're using a standard class like article, report, or book, page numbers are usually added via the \pagestyle command. To remove them:
latex
\pagestyle{empty}
Place this command in the preamble (before \begin{document}) to remove page numbers from all pages.
🔹 This works well for most basic documents but may not remove headers/footers entirely in some document classes or when using packages like fancyhdr.
2. Use \thispagestyle{empty} for specific pages
To remove the page number from just one page (e.g., the title page):
latex
\thispagestyle{empty}
Place it on the page where you want to suppress the page number.
3. When using fancyhdr package
If you’re customizing headers and footers with the fancyhdr package, make sure to set both header and footer to empty:
latex
\usepackage{fancyhdr}
\fancyhf{} % clear all header and footer fields
\renewcommand{\headrulewidth}{0pt} % remove the horizontal line
\pagestyle{fancy} % apply the fancy style (but with nothing in it)
Or use:
latex
\pagestyle{empty}
to remove everything, even if fancyhdr is loaded.
4. Suppress page numbers in specific environments
Some environments (like titlepage) automatically suppress page numbers in certain classes. But if they don’t, combine \thispagestyle{empty} with the environment.
Summary
Goal
Command
Remove from whole document
\pagestyle{empty}
Remove from current page
\thispagestyle{empty}
Custom headers & footers
Use fancyhdr + \fancyhf{}
Let me know which document class or packages you're using if you need more specific help!