如何在论文标题页中插入个性化居中水平分隔线

如何在论文标题页中插入个性化居中水平分隔线

我试图插入一条水平线来分隔我的论文标题和副标题,副标题只是描述这是一篇博士论文。然而,我尝试了各种命令\hrule\hfill但收效甚微。

我希望该行如下所示:

  • 该线不会立即附加到标题(如在 MWE 中),而是可以定制为短距离。
  • 与 之间的距离可自定义\subtitle
  • 对于不跨越文本空间宽度并且居中放置的线,其距离可以自定义,但可以是文本空间宽度的 1/3。

可能我希望它可以是一条花哨的线,比如双线,上面一条加粗,下面一条不那么粗,但目前这并不那么重要。

以下是我的 MWE,谢谢。

\documentclass[
DIV=11,
%fontsize=12,
twoside,
headinclude=false,
titlepage=firstiscover,
abstract=true,
headsepline=true,
footsepline=true,
chapterprefix=true, %this allows for editing of the chapter titles
headings=big,
bibliography=totoc,%adds unnumbered Bibliography chapter to toc
captions=tableheading
]{scrreprt}

%%%%%%%%%%%%%%%%%%%%% PREAMBLE
%%%%%%%%%%% Packages
\usepackage[left=2cm,right=2cm,top=2.5cm,bottom=3cm]{geometry}
\usepackage{setspace} %using this package allows one to not need to know the stretch value associated with the DIV factor chosen to achieve the chosen linespread. It has to be noted that for a title page the line spacing should be reset and that this spacing is NOT applied to footnotes and floats of table and figure captions.
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{minitoc} 
\usepackage{notoccite}
\usepackage{kpfonts}
\usepackage[T1]{fontenc}
\usepackage{acro}
\usepackage[hidelinks
,bookmarksopen=true,bookmarksopenlevel=4 %This is for the appendix command formulated
]{hyperref}
\usepackage{tensor}
\usepackage{siunitx}
\usepackage{wasysym}


\linespread{1.5} %imperial uses 1.5 
\flushbottom

%%%%%%%%%%% STYLING
\makeatletter

\def\phdtitle#1{\gdef\@phdtitle{#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TITLE PAGE
\def\titlepagehere{
    \titlehead{
        \Large \centering  \phantom a
        An Awesome College of Science \& Technology
    }
    \subject{Department of Happiness \\
       %\includegraphics[width=4cm]{}
    }
    \title{\@phdtitle \\
    \hrule %%%%%%%%%%%%%%%%%%%%%%%%%%% Line here...
    }

    \subtitle{\hrule %%%%%%%%%%%%%%%%%%%%%%%%%%% ...or line here?
    \\ PhD Thesis}

    \author{Best Author}
    \date{
        \vskip 1cm
        \normalsize Submitted \\
        \Large October 2014 \\
        \vskip 1cm
        \normalsize Supervisors: \\
        \Large Super. Man \\
        Cool. Dude \\
        \vskip 1cm
        \large Submitted in part fulfilment of the requirements for the degree of
        Doctor of Philosophy in Life Long Happiness College
    %\publishers{}
        }
    \makeatother}

\begin{document}
%%%%%%%%%%%%%%%%%%%%% TITLE PAGE
%%%%%%% WRITE TITLE HERE
\phdtitle{Super Long and Complicated Title for an Awesome Thesis that is at least 2 lines long}

\titlepagehere
\maketitle

%%%%%%%%%%%%%%%%%%%%%%% CHAPTERS
%\body

\chapter{Test}

Test

\end{document}

答案1

以下代码能产生您想要的结果吗?

顺便说一句,由于您使用setspace,因此您应该使用onelinespacing命令而不是\linespread:它负责处理脚注行距和其他一些间距参数。

\documentclass[
DIV=11,
%fontsize=12,
twoside,
headinclude=false,
titlepage=firstiscover,
abstract=true,
headsepline=true,
footsepline=true,
chapterprefix=true, %this allows for editing of the chapter titles
headings=big,
bibliography=totoc,%adds unnumbered Bibliography chapter to toc
captions=tableheading
]{scrreprt}

%%%%%%%%%%%%%%%%%%%%% PREAMBLE
%%%%%%%%%%% Packages
\usepackage[left=2cm,right=2cm,top=2.5cm,bottom=3cm]{geometry}
\usepackage{setspace} %using this package allows one to not need to know the stretch value associated with the DIV factor chosen to achieve the chosen linespread. It has to be noted that for a title page the line spacing should be reset and that this spacing is NOT applied to footnotes and floats of table and figure captions.
\usepackage{graphicx}
\usepackage{xcolor}
%\usepackage{minitoc}
%\usepackage{notoccite}
\usepackage{kpfonts}
\usepackage[T1]{fontenc}
%\usepackage{acro}
\usepackage[hidelinks
,bookmarksopen=true,bookmarksopenlevel=4 %This is for the appendix command formulated
]{hyperref}
%\usepackage{tensor}
\usepackage{siunitx}
\usepackage{wasysym}

\linespread{1.5} %imperial uses 1.5
\flushbottom

%%%%%%%%%%% STYLING
\makeatletter

\def\phdtitle#1{\gdef\@phdtitle{#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% TITLE PAGE
\def\titlepagehere{
    \titlehead{
        \Large \centering  \phantom a
        An Awesome College of Science \& Technology
    }
    \subject{Department of Happiness \\
       %\includegraphics[width=4cm]{}
    }
    \title{\@phdtitle\\[-1.5ex]%%
    %%%%%%%%%%%%%%%%%%%%%%%%%%% Line here...
    \rule{0.33\linewidth}{2.4pt}\\[-3.7ex] \rule{0.33\linewidth}{0.6pt}
    \vskip -1ex
    }
    \subtitle{
    %%%%%%%%%%%%%%%%%%%%%%%%%%% ...or line here?
        PhD Thesis}
%
    \author{Best Author}
    \date{
        \vskip 1cm
        \normalsize Submitted \\
        \Large October 2014 \\
        \vskip 1cm
        \normalsize Supervisors: \\
        \Large Super. Man \\
        Cool. Dude \\
        \vskip 1cm
        \large Submitted in part fulfilment of the requirements for the degree of
        Doctor of Philosophy in Life Long Happiness College
    %\publishers{}
        }
    \makeatother}

\begin{document}
%%%%%%%%%%%%%%%%%%%%% TITLE PAGE
%%%%%%% WRITE TITLE HERE
\phdtitle{Super Long and Complicated Title for an Awesome Thesis that is at least 2 lines long}

\titlepagehere
\maketitle
%
%%%%%%%%%%%%%%%%%%%%%%% CHAPTERS
%\body
%
%\chapter{Test}
%
%Test
%
\end{document} 

在此处输入图片描述

相关内容