制作标题时出现不需要的空白页

制作标题时出现不需要的空白页

当我意识到 A4 纸和信纸之间的尺寸差异时,我决定改变我的论文的几何形状。当我从 A4 纸换成信纸时,Latex 开始在我的标题前产生一个烦人的空白页。我该如何摆脱它?我的 MWE 是

\documentclass[12pt,twoside]{report}
\usepackage[letterpaper,width=180mm,top=20mm,bottom=20mm]{geometry}
\usepackage{graphicx}
\usepackage{setspace}

\def\Unam{Universidad Nacional Aut\'{o}noma de M\'{e}xico}
\def\Ier{Instituto de Energ\'{i}as Renovables}
\def\Ii{Instituto de Ingenier\'{i}a}
\def\Titulo{Topological impact of nano-electrodes on the structure of the electrical double layer and the differential capacitance}
\def\Yo{Adri\'{a}n Silva Caballero}
\def\Marcelo{Dr. Marcelo Lozada y Cassou}
\def\Lugar{Temixco, Mor.}
\def\fecha{12 de marzo de 2020}
\def\fechaingles{March 12, 2020}

\begin{document}
    \pagestyle{empty}
        \begin{titlepage}
        % Left layout - Logos
        \begin{minipage}[c][257mm][s]{25mm}
            \centering
            \includegraphics[width=26mm]{Escudo-UNAM}\\[10pt]
            \hskip 2pt\vrule width 2pt height 187mm
            \hskip 1mm\vrule width 1pt height 187mm\\[10pt]
            \includegraphics[height=18mm]{logo-ierii}
        \end{minipage}\hskip 10pt
        % Right layout - Titles
        \begin{minipage}[c][257mm][s]{135mm}
            \centering
            % University, institute, department and title
            \vspace{4.5mm}
            \resizebox{,99\columnwidth}{!}{{\Large\scshape \Unam}}
            \vspace{3mm}\hrule height 2pt
            \vspace{1mm}\hrule height 1pt
            \vspace{3.5mm}
            {\large\scshape \Ier\\[1pt]\Ii}\\[3pt]
            % Title
            \vspace{25mm}
            {\begin{singlespace}\Large{\textbf{\scshape\Titulo}}\end{singlespace}}
            \vspace{27mm}
            % Degree, author, supervisor and date
            {\Large \textbf{T E S I S}}\\[3pt]
            \small QUE PARA OBTENER EL TÍTULO DE\\[8pt]
            {\large\scshape Ingeniero en Energías Renovables}

            \vspace{22mm}
            \textbf{P R E S E N T A}\\[4pt]
            {\large\scshape \Yo}

            \vspace{22mm}
            {\small\bf DIRECTOR DE TESIS}\\[2pt]
            {\scshape \Marcelo}

            \vspace{38mm}
            {\scshape {\relax}{\hfill}{\Lugar, a \fecha}}

        \end{minipage}
        \newpage
        \vspace*{\fill}
        \centering\large
        {\setstretch{1.2}\Large\bfseries \Titulo}\\[15pt]
        by\\[15pt]
        {\Large \Yo}
        \\[30pt]
        Thesis presented to obtain the title of
        \\[5pt]
        Engineer in Renewable Energies
        \\[10pt]
        in the
        \\[15pt]
        {{\scshape \Ier}}\\[20pt]
        {\Large\scshape\Unam}
        \\[25pt]
        \Lugar.\, \fechaingles
        \vspace*{\fill}     
    \end{titlepage}

\end{document}

提前致谢

答案1

您的日志文件应该显示类似

Underfull \vbox (badness 10000) has occurred while \output is active [1]
Overfull \vbox (46.20601pt too high) has occurred while \output is active
[2{/usr/local/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]

这是什么意思?LaTeX 发现第一页中的对​​象太大,因此强制弹出几乎空白的页面(第一页中总是有一些不可见的内容,后面跟着一个可行的分页点),从而产生该消息Underfull \vbox (badness 10000)

接下来 TeX 尝试将对象放入下一页,但无法做到,因此它发出一条Overfull \vbox消息并继续前进(标题页中没有可行的分页点)。

显然问题出在minipages 的垂直尺寸上,它被设置为 257 毫米,这对于比 A4 纸高度低的 Letter 纸来说太大了。

超出部分为 46.2pt,对应 16.24mm。

如果我将 257mm 改为 240mm,空白页就会消失。

相关内容