帮助调整自定义标题页的行距

帮助调整自定义标题页的行距

我正在为我的博士论文提案制作一个自定义标题页,遵循维基教科书中 LaTeX 的标题创建文章。但是,经过多次尝试,我还是无法让标题的行距更大。我想知道是否有人可以帮助我解决这个问题。

以下是该问题的图片和示例文档: 标题

示例文档:

\documentclass[10pt,a4paper]{article}

\usepackage[portuguese]{babel}
\usepackage[latin1]{inputenc}  
\usepackage[pdftex]{graphicx}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\begin{document}

\begin{titlepage}
    \begin{center}

    % Upper part of the page
    %\includegraphics[width=0.15\textwidth]{./logo}\\[1cm]    
    \textsc{\large Department}\\[0.5cm]
    \textsc{\Large University}\\[3.5cm]

    \textsc{\Large Proposal bla bla}\\[1.5cm]

    % Title
    \HRule \\[0.4cm]
    {\Huge \bfseries Proposal title proposal title proposal title proposal title proposal title proposal title}\\[0.4cm]
    \HRule \\[1.5cm]

    % Author and supervisor
    \begin{minipage}{0.4\textwidth}
    \begin{flushleft} \large
        \emph{Autor:}\\
        John Smith
    \end{flushleft}
    \end{minipage}
    \begin{minipage}{0.4\textwidth}
    \begin{flushright} \large
        \emph{Orientador:} \\
        Dr.~Albert \textsc{Einstein}
    \end{flushright}
    \end{minipage}

    \vfill

    % Bottom of the page
    {\large \today}

    \end{center}

\end{titlepage}

\end{document}

答案1

您正在将字体大小更改为\Huge组内的大小,但该组在段落之前结束,因此 的行距\Huge不起作用;要纠正这个问题,您必须\par在关闭组之前结束段落(例如,使用):

\documentclass[10pt,a4paper]{article}

\usepackage[portuguese]{babel}
\usepackage[latin1]{inputenc}  
\usepackage[pdftex]{graphicx}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\begin{document}

\begin{titlepage}
    \begin{center}

    % Upper part of the page
    %\includegraphics[width=0.15\textwidth]{./logo}\\[1cm]    
    \textsc{\large Department}\\[0.5cm]
    \textsc{\Large University}\\[3.5cm]

    \textsc{\Large Proposal bla bla}\\[1.5cm]

    % Title
    \HRule \\[0.4cm]
    {\Huge \bfseries Proposal title proposal title proposal title proposal title proposal title proposal title\par}

\vspace{0.4cm}
    \HRule \\[1.5cm]

    % Author and supervisor
    \begin{minipage}{0.4\textwidth}
    \begin{flushleft} \large
        \emph{Autor:}\\
        John Smith
    \end{flushleft}
    \end{minipage}
    \begin{minipage}{0.4\textwidth}
    \begin{flushright} \large
        \emph{Orientador:} \\
        Dr.~Albert \textsc{Einstein}
    \end{flushright}
    \end{minipage}

    \vfill

    % Bottom of the page
    {\large \today}

    \end{center}

\end{titlepage}

\end{document}

生成结果:

在此处输入图片描述

如果您想要进一步增加行距,您可以更改\linespread标题;使用一个小例子\linespread{1.5}(再次注意\par使更改生效所需的命令):

\documentclass[10pt,a4paper]{article}
\usepackage[portuguese]{babel}
\usepackage[latin1]{inputenc}  
\usepackage[pdftex]{graphicx}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}

\begin{document}

\begin{titlepage}
    \begin{center}

    % Upper part of the page
    %\includegraphics[width=0.15\textwidth]{./logo}\\[1cm]    
    \textsc{\large Department}\\[0.5cm]
    \textsc{\Large University}\\[3.5cm]

    \textsc{\Large Proposal bla bla}\\[1.5cm]

    % Title
\linespread{1.5}
    \HRule\\
    {\Huge\bfseries Proposal title proposal title proposal title proposal title proposal title proposal title\par}

\vspace*{0.4cm}
    \HRule\\[1.5cm]

\linespread{1}
    % Author and supervisor
    \begin{minipage}{0.4\textwidth}
    \begin{flushleft} \large
        \emph{Autor:}\\
        John Smith
    \end{flushleft}
    \end{minipage}%
    \begin{minipage}{0.4\textwidth}
    \begin{flushright} \large
        \emph{Orientador:} \\
        Dr.~Albert \textsc{Einstein}
    \end{flushright}
    \end{minipage}

    \vfill

    % Bottom of the page
    {\large \today}

    \end{center}

\end{titlepage}

\end{document}

在此处输入图片描述

相关内容