# [Tex/LaTex] Add a picture before book title

booksgraphics

I want to add a logo picture on the title page. However, it appears that I could not make it before the title. Is it possible to do so, please? If so, how and how to make it centered and above the title?

\documentclass[a4paper, 11pt, oneside]{book}

\usepackage{graphicx}

\includegraphics[]{logo}
%opening
\title{abc}
\author{abc}

\begin{document}
\end{document}


The issue here is, that you try to add a picture befor the \begin{document}. Your commands only set the content of \title but don't typeset it. You might use the following:

\documentclass[a4paper, 11pt, oneside]{book}

\usepackage{graphicx}

%opening
\title{abc}
\author{abc}

\begin{document}
\vbox{
\centering
\includegraphics[width=0.2\textwidth]{example-image}
\maketitle %this typesets the contents of \title, \author and \date
}
\clearpage
\end{document}


Please note that I put the \maketitle and the \includegraphics in a \vbox{} to prevent it from pagebreaking in between the picture and the title.

EDIT: I've adapted the code to not use \maketitle in a titlepage-environment.