[Tex/LaTex] Inserting a picture in a title page

texmakertitles

I am trying to insert a picture in the first page of my report but it is becoming on a separate page or else it comes above the title. I want it to be between author and date:

\begin{document}


\title{bb}
\author{bb}
\date {bb}

\begin{figure}[]
\centering
\includegraphics[width=3in]{figure1}
\end{figure}
\maketitle
\end{document}

I tried doing as shown below but I got an error with \titlehead:

\titlehead{\centering\includegraphics[width=3in]{figure1}}

Best Answer

There is no requirement that \includegraphics is in a figure environment, which is for including floating objects (including pictures) with their caption.

For your problem, use the titling package that allows customizing the \maketitle command adding items where needed.

\documentclass{article}
\usepackage{graphicx}
\usepackage{titling}

% set up \maketitle to accept a new item
\predate{\begin{center}\placetitlepicture\large}
\postdate{\par\end{center}}

% commands for including the picture
\newcommand{\titlepicture}[2][]{%
  \renewcommand\placetitlepicture{%
    \includegraphics[#1]{#2}\par\medskip
  }%
}
\newcommand{\placetitlepicture}{} % initialization

\begin{document}

\title{A very important paper}
\author{A. Uthor}
\date{38 July 2014}
\titlepicture[width=3in]{example-image}

\maketitle

\end{document}

So long as you have \titlepicture before \maketitle you'll get the picture where you want it. Not specifying \titlepicture will do nothing different from the usual \maketitle.

enter image description here

Related Question