How to Remove Page Number in LaTeX?

The need to selectively remove page numbers from specific pages often arises in document formatting, particularly in books, dissertations, and thesis documents. While LaTeX offers robust control over page numbering, selectively omitting page numbers from certain pages. This blog post will explore the command for removing page numbers from specific pages in LaTeX.

Remove Page Number in LaTeX

To remove page numbers from specific pages in LaTeX, you can use the command \thispagestyle{empty}. This command will remove the page number on the page it’s applied to.

Here’s an example of how to use this command to remove page numbers from a certain page:

\documentclass{article}
\usepackage{lipsum}

\begin{document}

\section*{This page has a page number}
Latextutorial.net
\lipsum[1-3]

\newpage
\thispagestyle{empty}

\section*{This page does not have a page number}
Latextutorial.net
\lipsum[4-6]

\newpage
\thispagestyle{empty}

\section*{This page does not have a page number}
\lipsum[7-9]

\newpage

\section*{This page has a page number}
\lipsum[10-12]

\end{document}

Output

In this example, the \thispagestyle{empty} command is used to remove the page number from the pages where it is included. You can place this command on any page where you want to omit the page number. Here pages number 2 and 3 are omitted whereas page number 1 and 4 remain intact.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.