将图片阵列放在标题页的顶部

将图片阵列放在标题页的顶部

我尝试使用以下方法将一系列图形(徽标)放置在标题页的顶部\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}

但是,徽标出现在底部而不是顶部。我该如何解决这个问题?

编辑以回应评论:如果我使用,徽标会出现在顶部

\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}

\pretitle环境中而不是\begin{figure}。因此,原则上这也应该在article类中起作用,而不仅仅是在report

答案1

由于您使用figure环境,TeX 会将其放置在页面中最适合的位置。那就是底部。下面我删除了所有浮动内容,并\raisebox为所有小页面使用了一个(我还删除了徽标文件):

\pretitle{%
  \begin{center}
    \LARGE
    \vspace*{-2cm}
    \hspace{-0.3cm}
    \raisebox{\dimexpr \ht\strutbox-\totalheight}{%
      \begin{minipage}[b][3cm]{0.25\linewidth}
        \centering\includegraphics[width=3cm,height=3cm]{example-image}
      \end{minipage}%
      \begin{minipage}[b][3cm]{0.25\linewidth}
        \centering\includegraphics[width=3cm,height=3cm]{example-image}
      \end{minipage}%
      \begin{minipage}[b][3cm]{0.25\linewidth}
        \centering\includegraphics[width=3cm,height=1.45cm]{example-image}
        \vfill
        \includegraphics[width=3cm,height=1.45cm]{example-image}
      \end{minipage}%
      \begin{minipage}[b][3cm]{0.25\linewidth}
        \centering\includegraphics[width=3cm,height=3cm]{example-image}
      \end{minipage}}
    \rule{0pt}{4cm}
  }
  \posttitle{\end{center}}

在此处输入图片描述

答案2

标题页怎么样:

\documentclass[a4paper]{article}
\title{\textbf{Title}}
\author{Name}
\newcommand*{\institution}{\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}


\begin{document}
\begin{titlepage}
    \centering%
        \LARGE%
        \vspace*{-2cm}%
        \begin{minipage}[t][3cm]{0.25\linewidth}%
        \raisebox{\dimexpr \ht\strutbox-\totalheight}{%
        {\includegraphics[width=3cm,height=3cm]{example-image}}}%
        \end{minipage}%
        \begin{minipage}[t][3cm]{0.25\linewidth}%
        \raisebox{\dimexpr \ht\strutbox-\totalheight}{%
        {\includegraphics[width=3cm,height=3cm]{example-image-a}}}%
        \end{minipage}%
        \begin{minipage}[t][3cm]{0.25\linewidth}%
        \raisebox{\dimexpr \ht\strutbox-\totalheight}{%
        {\includegraphics[width=3cm,height=1.45cm]{example-image-b}}}%
        \vfill%
        \raisebox{\dimexpr \ht\strutbox-\totalheight}{%
        {\includegraphics[width=3cm,height=1.45cm]{example-image-c}}}%
        \end{minipage}%
        \begin{minipage}[t][3cm]{0.25\linewidth}%
        \raisebox{\dimexpr \ht\strutbox-\totalheight}{%
        {\includegraphics[width=3cm,height=3cm]{example-image}}}%
        \end{minipage}%
    \vfill
    \makeatletter
    {\Huge\@title}
    \vskip0.6cm
    {\LARGE\@author}
    \vskip0.4cm
    {\LARGE\institution}
    \vfill
    \@date
    \vfill
    \vfill
    \makeatother
\end{titlepage}
\end{document}

在此处输入图片描述

相关内容