I try to place an array of figures (logos) on top of my titlepage by using \pretitle:
\documentclass[a4paper]{article}
\title{\textbf{Title\vspace{0.4cm}}}
\author{Name \\\\ \textit{Institution}}
\date{\vspace{-2ex}}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage[
top = 2.2cm,
bottom = 2.35cm,
left = 2.35cm,
right = 2.35cm]{geometry}
\setlength{\skip\footins}{0.8cm}
\setlength{\footnotesep}{0.5cm}
\usepackage{titling}
\pretitle{%
\begin{center}
\LARGE
\vspace*{-2cm}
\hspace{-0.3cm}
\begin{figure}
\begin{minipage}[t][3cm]{0.25\linewidth}
\raisebox{\dimexpr \ht\strutbox-\totalheight}{
\subfloat{\includegraphics[width=3cm,height=3cm]{logo1.png}}}
\end{minipage}%
\begin{minipage}[t][3cm]{0.25\linewidth}
\raisebox{\dimexpr \ht\strutbox-\totalheight}{
\subfloat{\includegraphics[width=3cm,height=3cm]{logo2.png}}}
\end{minipage}
\begin{minipage}[t][3cm]{0.25\linewidth}
\raisebox{\dimexpr \ht\strutbox-\totalheight}{
\subfloat{\includegraphics[width=3cm,height=1.45cm]{logo3.png}}}
\vfill
\raisebox{\dimexpr \ht\strutbox-\totalheight}{
\subfloat{\includegraphics[width=3cm,height=1.45cm]{logo4.png}}}
\end{minipage}%
\begin{minipage}[t][3cm]{0.25\linewidth}
\raisebox{\dimexpr \ht\strutbox-\totalheight}{
\subfloat{\includegraphics[width=3cm,height=3cm]{logo5.png}}}
\end{minipage}
\end{figure}
\hspace{0.4cm}
}
\posttitle{\end{center}}
\begin{document}
\maketitle
\end{document}
However, the logos appear at the bottom and not at the top. How can I fix this?
Edit in response to the comment: The logos appear at the top if I use
\begin{minipage}[t]{0.2\textwidth}
\raisebox{\dimexpr \ht\strutbox-\totalheight}{
\includegraphics[width=\textwidth]{logo1.png}}
\end{minipage}
\begin{minipage}[t]{0.2\textwidth}
\raisebox{\dimexpr \ht\strutbox-\totalheight}{
\includegraphics[width=\textwidth]{logo2.png}}
\end{minipage}
in the \pretitle environment instead of \begin{figure}. Therefore, this should in principle also work in the article class, not only in report.


article. If you use thereport-class for example, they appear at the top of page. You can build your custom titlepage utilizing thetitlepageenvironment. – Skillmon Aug 25 '17 at 12:55\begin{figure}(I wanted to write this comment just now...) – Skillmon Aug 25 '17 at 13:04