I want to suppress page numbers. I am also using \maketitle
command which seems to trigger the problem. MWE:
\documentclass[a4paper,10pt,english]{article}
\title{My title}
\begin{document}
\thispagestyle{empty}
\maketitle
Hello World
\end{document}
Best Answer
You need to set the page style after
\maketitle
since\maketitle
sets the page using\thispagestyle{plain}
(which overwrites your request for it to beempty
):If you wish to suppress the page numbering for all pages within your article, you should add
\pagestyle{empty}
to your document preamble.The
article
document class also supports thetitlepage
option, which typesets an entire page (atitlepage
) when using\maketitle
. Such a page is necessarily issued using\thispagestyle{empty}
. That is, without any header/footer.