在包文件中本地更改行距

在包文件中本地更改行距

我正在课堂上为我的博士论文制作标题页memoir,我想稍微增加标题的行距。

如何增加行距?我尝试了该linespread{1.5}命令,但没有效果。

包文件内容(文件名为UiTThesis.sty):

%%%% file UiTThesis.sty
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{UiTThesis}[2020/06/19 v0.1 UiT PhD Thesis]

% Check that the memoir class is loaded
\@ifclassloaded{memoir}{\let\endUiTThesis\relax}{\let\endUiTThesis\endinput
    \PackageError{UiTThesis}{The UiTThesis package only works with the memoir class}%
    {\@ehd}}

% Load packages
\RequirePackage{lipsum}
\RequirePackage{graphicx}
\RequirePackage{pdfpages}
\RequirePackage{microtype}
\RequirePackage[colorlinks=true,
                linkcolor=blue,
                citecolor=red,
                linktoc=page]{hyperref}
                
\RequirePackage[backend=biber,
                maxcitenames=99,
                mincitenames=1,
                style=numeric-comp,
                maxbibnames=99,
                firstinits=false,
                hyperref=true,
                uniquelist=false,
                uniquename=false]
                {biblatex}
                
                % Make group of references that will not
                % appear in the references section
                % (citing papers in List of Papers)
                \DeclareBibliographyCategory{dontbib}

% Page layout
\setstocksize{240mm}{170mm}
\settrimmedsize{\stockheight}{\stockwidth}{*}
\settrims{0pt}{0pt}
\setlrmarginsandblock{2cm}{3cm}{*}
\setulmarginsandblock{3cm}{3cm}{*}
\checkandfixthelayout


% Define a title page
\newcommand*\uittitlepage{
    \begin{center}
    \begingroup
    \vspace{0.1\textheight}
    %\rule{\textwidth}{2pt}\\[\baselineskip]
    {\huge\bfseries\@title} \\[\baselineskip]
    {\large\itshape Subtitle}
    %\rule{\textwidth}{2pt}\\[\baselineskip]
    \vfill
    {\Large\bfseries\scshape\@author}\\[\baselineskip]
    \vfill
    {\large\itshape Submitted in partial fulfillment of the requirements \\[0.5\baselineskip] for the degree of Philosophiae Doctor}\\[\baselineskip]
    \vfill
    {\large\bfseries Main Supervisor} \\ Firstname Lastname \\[\baselineskip]
    {\large\bfseries Co--Supervisor} \\ Firstname Lastname
    \vfill
    \large\@date
    \endgroup
    \end{center}
}

\endinput

MWE 文件

\documentclass[11pt,
               twoside,
               onecolumn,
               openright,
               final]
               {memoir}
               
\usepackage{UiTThesis}

\author{Firstname Lastname}
\title{A Very Scientific Title}

\begin{document}        
    \begin{titlingpage}
        \uittitlepage
    \end{titlingpage}
\end{document}

答案1

这样做效果会更好。由于现在有结束的段落,因此等的行距\huge可以按预期工作。将具有排版{\Huge long text} end大小的行距。end

\bigskip根据\vspace{...}需要添加

\begin{titlingpage}
\centering

\huge\bfseries My large and long title with too small line spacing

\large\itshape Subtitle

\Large\bfseries\scshape Author % write by hand
\vfill

\large\itshape Submitted in partial fulfillment of the requirements
for the degree of Philosophiae Doctor


\large\bfseries Main Supervisor
Firstname Lastname

\large\bfseries Co--Supervisor Firstname Lastname


\large date % write by hand
\end{titlingpage}

相关内容