[Tex/LaTex] Logo and picture on titlepage

graphicstitles

I need to make a title page with a logo on the top left corner, the title and the author centered and another picture under this. I tried this code but the problem is that the second image is right under the logo and the title and the author are on another page.

%%!TEX encoding = UTF-8 Unicode

\documentclass[a4paper,12pt]{article}
\usepackage{geometry}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xspace}
\usepackage{epstopdf}
\usepackage[frenchb]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\geometry{dvips,a4paper,margin=1.5in}
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}



\begin{document}

    \begin{titlepage}

        \includegraphics[width = 40mm]{logo.jpg}

        \begin{center}

            \title{Report}
            \author{Author}
            \date{Septembre 2013}

            \includegraphics[width = 40mm]{image.png}

        \end{center}

    \end{titlepage}

    \maketitle

\newpage

\tableofcontents

\newpage

\vspace{2.5cm}

\section{Abstract}

\newpage

\section{Introduction}

\end{document}

Best Answer

The problem is that \author, \title and \date are only definitions, not commands to print this information. These commands in titlepage without \maketitle do nothing. So all is printed when you said \maketitle, that is, after the title page.

Usually you choose between using only \maketitle at the beginning of the document, that print \author, \title and \date at the top of the article (defined before, preferably in the preamble) with a default format, or a titlepage environment to have a title page, where you simply insert what you want with the format that you want.

But in order to clean the document environment, you can also redefine \maketitle so this command followed by a \newpage (or inside titlepage) make all the work:

MWE

\documentclass[a4paper12pt]{article}
\usepackage{geometry}
\usepackage[demo]{graphicx}

\title{Report}
\author{Author}
\date{Septembre 2013}

% Definition of \maketitle
\makeatletter         
\def\@maketitle{
\raggedright
\includegraphics[width = 40mm]{logo.jpg}\\[8ex]
\begin{center}
{\Huge \bfseries \sffamily \@title }\\[4ex] 
{\Large  \@author}\\[4ex] 
\@date\\[8ex]
\includegraphics[width = 40mm]{image.png}
\end{center}}
\makeatother


\begin{document}

\maketitle
% \thispagestyle{empty}
\newpage

\tableofcontents

\newpage
\vspace{2.5cm}
\section{Abstract}
\newpage
\section{Introduction}
\end{document}