Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
    
Welcome to TeX.SX! Please add a complete minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. What heights have your images? Use \centering instead of \begin{center} and \end{center}. –  Kurt Jul 26 '13 at 13:46
    
\maketitle has a predefined layout. To change it you should edit that command. In your case, is better to type the title page as you want. Instead of using \title{} format it using \textbf{}, large or something else. Also, you can use \vspace{??cm} to insert vertical space. –  Sigur Jul 26 '13 at 13:51
    
I edited my question to complete the code –  Elie Gnrd Jul 26 '13 at 13:59
    
My images have the same width and height, about 200x200 px –  Elie Gnrd Jul 26 '13 at 14:05

1 Answer 1

up vote 4 down vote accepted

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}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.