[Tex/LaTex] Suppress page numbers in article documentclass

header-footerpage-numberingtitles

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 be empty):

\documentclass[a4paper,10pt,english]{article}
\title{My title}
\begin{document}
 \maketitle
 \thispagestyle{empty}% Reset page style to 'empty'
 Hello World
\end{document}

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 the titlepage option, which typesets an entire page (a titlepage) when using \maketitle. Such a page is necessarily issued using \thispagestyle{empty}. That is, without any header/footer.