[Tex/LaTex] Page break after \maketitle

page-breakingtitles

Hi I have some problem again with my first page, this is my code:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\title{balalla}
\author{someone}

\begin{document}

\centering \includegraphics[scale=0.5]{logo_inria}
\nopagebreak
\maketitle


\end{document}

Can someone tell me how to avoid the page break?

Best Answer

You should rather use

\begingroup
{\centering \includegraphics[scale=0.5]{logo_inria}\par}
\let\newpage\relax%
\maketitle
\endgroup

which locally changes the definition of \newpage - executed by \maketitle to start at fresh on a clean page - to a no-op.