I am trying to create a cover page containing an image and the title of the report, but the image and the title appear on different pages. How can I solve this problem?
\documentclass[30pt]{report}
\usepackage[a4paper,top=3cm,bottom=3cm,left=3cm,right=3cm]{geometry}
\usepackage{graphicx}
\begin{document}
\begin{figure}[h]
\centering \includegraphics[width=5cm]{najah.png}
\end{figure}
\title{ATLAS Detector}
\author{Fatima Shahrouj\\ Departement of physics, An-Najah National University NNU, Nablus, Palestine.}
\maketitle
\end{document}
figure
environment to insert images,\includegraphics
works perfectly fine outside it as well (as demonstrated in Andreas' answer).figure
is a floating container, its purpose is to let LaTeX move images and their captions, in order to avoid bad page breaks. – Torbjørn T. Mar 24 '18 at 19:16