我如何设计自己的标题页?

我如何设计自己的标题页?

标准标题页非常简单。我正在寻找一个非常复杂的标题页需要帮助定制我的标题页。
它应该与 classicthesis博士论文模板相匹配

下面是一个最小的工作示例:

\documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true]{scrbook}
\XeTeXinputencoding iso-8859-1
\usepackage[marginparsep=8pt,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm]{geometry}
 \usepackage[parts,pdfspacing,dottedtoc]{classicthesis}


 \frontmatter
 \begin{document}
    \pagestyle{scrheadings}

      %this is the place to set up my cover sheet.
      %*******************************************************
     % Abstract
    %*******************************************************
   %\renewcommand{\abstractname}{Abstract}
   \pdfbookmark[1]{Résumé}{Résumé}
  \begingroup
   \let\clearpage\relax
   \let\cleardoublepage\relax
   \let\cleardoublepage\relax

     \chapter{Résumé}
    Résumé de la thèse en français\dots


   \vfill


   \chapter*{Summary}
  Résumé de la thèse en anglais\dots


 \endgroup          

 \vfill



 \end{document}

答案1

标题页是书籍或论文的第一页之一。此页仅包含标题,其形式与书中其他正文类似。

这就是维基百科告诉我们的,现在我们有了一个可以遵循的观点,标题页应该与书籍或论文其余部分的外观相匹配。让我们看看标准的剪贴簿标题页。

\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english,french]{babel}
\makeatletter
\newcommand{\fakechap}[1]{{\noindent\normalfont\sectfont\nobreak\size@chapter{}#1\par}\chapterheadendvskip\noindent\ignorespaces}
\makeatother
\subject{Doctoral thesis}
\title{On ducks and their love for dissertations}
\subtitle{A fiction story telling the truth}
\author{domi}
\publishers{Published by the publisher\\ at a secret location}
%\extratitle{Stories of ducks}
\uppertitleback{\vspace{3cm}I want to thank Scrooge MacDuck for his financial Support}
\date{}
\usepackage{blindtext}
\begin{document}
\frontmatter
\maketitle

\tableofcontents
\addchap{Résumé}
Résumé de la thèse en français\dots
\blindtext
\vfill

\selectlanguage{english}
\fakechap{Summary}
Résumé de la thèse en anglais\dots
\blindtext
\vfill

\selectlanguage{french}
\end{document}}

标准科玛

命令\maketitle将预定义元素放置在第一页上。如果需要,您可以使用常用 \addtokomafont机制更改字体。

还有更多可用的元素,例如\publishers\titlehead\extratitle。只有当用户使用某些参数定义其他元素时,才会对其进行排版。换句话说,为了以防万一,没有保留任何空间。

书籍类不提供abstract环境,因为书籍通常有一整章来总结内容。我定义了一个\fakechap命令,让两者在同一页上并且看起来相似。老实说,这有点像 hack,章节应该是独立的。请注意使用的区别\addchap。如果您有兴趣,您可以在以下位置了解更多信息: 如何在 KOMA-script 中使用未编号章节?

如果我们使用\extratitle上述 MWE,会发生什么情况?
一开始就生成了一对额外的页面。对于标题来说,这似乎是一个奇怪的位置。这是历史事实,因为不久前书籍没有精装书皮。这个额外的标题保护书籍免受灰尘侵扰。它也被称为混蛋称号

书籍类别的默认选项是从奇数页(右侧)开始新章节。这意味着,对于我们来说,标题和第一章之间会有一页空白页。如果我们设置,\uppertitleback 我们可以放置感谢信或其他内容。如果您需要进行一些自定义,您甚至可以使用空格。

\title但是谁决定了和co元素的放置\author 位置?是该类的作者。对于 KOMA 脚本,作者是 Markus Kohm。这引出了我们的下一个问题:

我如何设计自己的标题页?

相对简单,因为 LaTeX 是一种放置框的宏语言。这就像拥有一套巨大的乐高积木,将各个部分拼凑在一起,直到得到满意的解决方案。

由于我们现在想自己动手制作标题页,因此我们不调用\maketitle它来执行默认操作。由于我们不使用,因此\maketitle我们不需要为其设置字段。不需要\title{this is the title}等。 \maketitle如果您与-environment 一起使用 titlepage,那么您做错了。

\documentclass{report}
\usepackage{blindtext}
\begin{document}
\begin{titlepage}
    Dixie dancing ducks

    A story of love, hate and fame
\end{titlepage}
\chapter{Summary}
\blindtext
\end{document}

标题页纯文本

看起来不太美观。我们忘记使用正确的部件来修改它。一些调整导致我们得到以下结果:

\documentclass{report}
\usepackage{blindtext}
%\usepackage{showframe}
\begin{document}
\begin{titlepage}
    \vspace*{9em}{\centering\Huge\usefont{T1}{qzc}{m}{it}
Dixie dancing ducks\par}
\vspace{1em}
{\hfill\itshape A story of love, hate and fame}
\clearpage
    \vspace*{\fill}\hfill   \parbox{.4\textwidth}{
    \raggedleft
\scriptsize Delilah was a sad duck with a dream, being a
    Dixie dancer some day. She wasn't the best looking duck
    in town but she never cared about superficial things.
    Practicing a lot she finally became a professional Dixie
    dancer. She even fell in love. Will Delilah overcome the
    infamy and hate of her \emph{new gained friends}?
}
\end{titlepage}
\chapter{Summary}
\blindtext
\end{document}

领域驱动设计

看起来好多了,但页码搞错了。使用 KOMA 级可以挽救局面。


现在举一个可以用作论文封面的例子。使用 -environment addmargin,我们可以为标题页获得一些异步性。包mwe为我们提供了一些虚拟图片,我们可以使用大学徽标来代替。

domiTitlepage异步

\documentclass{scrreprt}
\usepackage{graphicx}
\begin{document}
\begin{titlepage}
    \begin{addmargin}[4cm]{-1cm}
        \centering
        \hfill\includegraphics[width=2cm]{example-image-1x1}\par
        \vspace{4\baselineskip}
        {\Huge 
        Peter Piper picked a peck\\ of pickled peppers\par}
        \vspace{4\baselineskip}
        by\par
        {\Large\textsc{Crazy Capybara}\par}
        \vfill
        in order to get a fancy degree at\par
        {\em The university of applied dice rolling}
    \end{addmargin}
\end{titlepage}
\end{document}

也可以为科学论文添加标题页。如果期刊没有提供模板,那么就没有必要费心去实现他们的风格,他们会很乐意为你做这件事。

这只是一个例子,如果您真的在为期刊制作标题页,请采用后面提到的可靠方法。所有这些手动修复都不应重复进行以获得相同的输出。

\documentclass[twoside,ngerman]{article}
\usepackage{blindtext}
\usepackage{babel}
\usepackage{hyperref}

\begin{document}
\twocolumn[%
    \centering
    \begin{minipage}{.75\textwidth}
    \begin{center}
        {\large
            Pendulum\par}
    presents\par
    {\Large The sonic recreation of \\the end of the world\par}
\end{center}
    \vspace{\baselineskip}
    \setlength{\parskip}{\smallskipamount}
    Ladies and gentlemen, We understand that you Have come tonight
    To bear witness to the sound Of drum And Bass.

    We regret to announce That this is not the case, As instead We
    come tonight to bring you The sonic recreation of the end of
    the world.

    Ladies and gentlemen, Prepare To \dots\par
    \rule{7em}{.4pt}\par
     Rob Swire, Gareth McGrillen, and Paul
    Harding;\par \href{mailto:[email protected]}{Mail the
            authors}
\end{minipage}
\vspace{2\baselineskip}
]
\section{Hold Your Colour}
\blindtext

\blindtext
\end{document}

domi标题页文章文档

您可以在以下网址找到各种不同的标题页,您可以根据自己的喜好定制标题页标题页。我也会尝试收集一些github 上的 titlepages

如何调整标题以匹配classicthesis

使用坚如磐石的 KOMA 接口的自然方法是不可能的,因为作者classicthesis决定在其他方式。我们必须将命令放在定义中,这对我来说感觉像强奸,所以没有例子。我们又回到了拼乐高积木的过程。

\documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true,headings=optiontoheadandtoc]{scrbook}
%\usepackage{geometry}
%\geometry{marginparsep=8pt,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm}
\usepackage[parts,pdfspacing,dottedtoc]{classicthesis}
\usepackage[utf8]{inputenc}
\makeatletter
\newcommand{\fakechap}[1]{{\noindent\normalfont\sectfont\nobreak\size@chapter{}#1\par}\chapterheadendvskip\noindent\ignorespaces}
\makeatother
\usepackage{blindtext}
\begin{document}
\frontmatter
\begin{titlepage}
    \vspace*{7em}
    \begin{center}
        {\Large \spacedallcaps{is it really worth the trouble?}
    \bigbreak}
        An assessment of spent time adjusting badly
        implemented \LaTeX{} templates \\[2em]
        {\scriptsize \spacedlowsmallcaps{The author}}
    \end{center}
\end{titlepage}

\tableofcontents
\addchap{Résumé}
Résumé de la thèse en français\dots
\blindtext[13]
\vfill

\fakechap{Summary}
No, simple as that. 
\blindtext
\vfill
\end{document}}

标题页经典论文

标题页看起来还不错,但是——安装了最新的 TeX——我们收到了一个巨大的警告,看到下一页我们大吃一惊。我们预定义的假冒不匹配。 classicthesis加载titlesec与 KOMA 不兼容的包。titlesec向 LaTeX 标准类添加功能, 并memoir有自己的自定义方式。某些功能已损坏。KOMA

如何制作立体的标题页?

对于高级用户

如果标题页的布局由公司设计的某些规则或指南固定,我们需要确保用户不会更改外观。我们使用定义标题页的相同概念,但将其隐藏在包文件(或可能是类文件中)中。就像标准类一样,我们为用户定义了一组宏(authortitledegree)。用户可以在文档中输入自己的数据,而无需关心后台发生了什么,只需调用 即可\maketitle。一个非常基本且非高级的示例:

 \begin{filecontents}{domititlepage.sty}
 \ProvidesPackage{domititlepage}[2014/11/03 titlepages domi style]
 %There is absolutely no warranty for this demo package
 % https://tex.stackexchange.com/questions/209993/how-to-add-a-flyleaf-code/210280#210280
 \RequirePackage{etoolbox}
 \ifundef{\KOMAClassName}{
  \@ifclassloaded{memoir}{\PackageWarningNoLine{domititlepage}{Using
   memoir. Memoir has its own mechanism of
   generating stuff. Not loading
  `scrextend'. Aborting now}
  \endinput
 }{
  \typeout{You seem to be using a standard class.
   Using package `scrextend' for nice
  features}
  \RequirePackage[extendedfeature=title]{scrextend}
 }
 \typeout{non-KOMA branch}
}{
 \typeout{Using a KOMA class, no need to load package scrextend}
}
   \newcommand{\@supervisor}{}
   \newcommand{\supervisor}[1]{\gdef\@supervisor{#1}}
   \newkomafont{supervisor}{\normalfont\normalsize}
   \newcommand{\@degree}{}
   \newcommand{\degree}[1]{\gdef\@degree{#1}}
   \newkomafont{degree}{\normalfont\normalsize}
   \newcommand*{\@thanksnote}{}
   \newcommand*{\thanksnote}[1]{\gdef\@thanksnote{#1}}
   \newkomafont{thanksnote}{\small\itshape}
   \newcommand{\@@thanksnote}{\begin{minipage}{\linewidth}
    \usekomafont{thanksnote}\@thanksnote\par\end{minipage}\par}
 \renewcommand{\maketitle}{%
  \begin{titlepage}
   \setlength{\parindent}{\z@}
   \setlength{\parskip}{\z@}
   \typeout{Typesetting the titlepage}
   \vspace{-1em}
   \begin{minipage}[t]{\textwidth}
    \centering
    University for theoretical and applied animal dance in Duckburg\par
   \end{minipage}\par
   \vspace{7em}
   {\LARGE\centering\usefont{T1}{qcs}{b}{n} \@title\par}
   \vspace{5em}
   {\usekomafont{author}\centering \@author\par}
   \vspace{2em}
   \ifx\@degree\@empty \else
   {\centering\usekomafont{degree}\@degree\par}
   \fi
   \next@tpage
   \ifx\@thanksnote\@empty\hbox{} \else
   {\@@thanksnote}
   \fi
   \vfill
   \begin{minipage}{10em}
    \raggedright
     \usefont{T1}{qcr}{m}{n}
     No animals were harmed
     during the production of
    this printed work\par
   \end{minipage}
  \end{titlepage}%
}
\end{filecontents}
\documentclass{scrbook}
\usepackage{domititlepage}
\usepackage{blindtext}
\author{Paulo Lee Peterson}
\title{Polka loving Platypus}
%\degree{Master of Stuff}
%\thanksnote{Thanks to Daisy for her support}

\begin{document}
\maketitle
\chapter{Introduction to Polka dancing}
\blindtext
\end{document}

上面使用了一个小技巧来节省我们的时间,它将第一个环境(filecontents)的内容写入一个新文件(名为domititlepage.sty),这为我们提供了一个用户可以在序言中加载的可靠的 LaTeX 包。

本节的标题说了一些关于可靠方法的内容,在示例之前,我说它是非高级的。这是怎么回事?我们正在定义一些简单易记的命令,如 authordegree。由于标题页的外观是给定的并且因此是固定的,因此用户以何种顺序输入其数据并不重要,我们的\maketitle命令会负责根据指南将所有内容排版到应该在的位置。一些东西保留变量。有一个易于使用的界面来设置 KOMA-scripts 字体选择功能提供的一些元素的字体。用户可以决定是否要给出感谢信或将其省略。该包处理这个。

几乎所有的代码都对用户隐藏,用户可能会感到害怕,因此用户无法不费吹灰之力就更改任何东西。这似乎很可靠,那么为什么它不先进呢?以上是语法/语言的混合TeXLaTe2eX将来可能会有一点 LaTeX3。这是相当糟糕的风格。

局部局部性

坚如磐石的方法

KOMA-script 的作者titlepage几年前启动了一个名为的项目,收集不同的标题页,定义不同的语言,从而使标题页坚如磐石。 zip 文件夹可以在KOMA 项目网站

软件包titlepage提供了一个新的接口,\maketitle 可以非常方便地提供相关信息键值语法. 并非所有样式(由 加载 \TitlePageStyle{<style>})都支持所有可能的字段。

但问题是,为了使您所在大学的标题页与该titlepage包一起使用,您需要联系 KOMA-script 的作者。

%% Copyright (c) 2011 by Markus Kohm <komascript(at)gmx.info>
\documentclass[a4paper,pagesize]{scrbook}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[demo]{graphicx}% remove option demo if you have the logo
\usepackage{xcolor}
\usepackage{titlepage}
\begin{document}
\TitlePageStyle{KIT}
\maketitle[%
  mainlogo={\textcolor{red}{%
      \includegraphics[width=40mm,height=18.5mm]{KITLogo_RGB}}},%
  % You may additionally change titlehead. Original definition of titlehead
  % is:
  titlehead={\usetitleelement{mainlogo}\hspace*{\fill}},%
  title=\textcolor{red}{Titel der Arbeit\\im Stil \texttt{KIT}},%
  subject=\textcolor{red}{Klassifizierung der Arbeit},%
  author=\textcolor{red}{Markus~Kohm},%
  faculty=\textcolor{red}{Fakultät für Informatik},%
  chair=\textcolor{red}{%
    Institute for Program Structures\\and Data Organization (IPA)},%
  advisor={\textcolor{red}{Titel Vorname Nachname}\and
    \textcolor{red}{Titel Vorname Nachname}},%
  referee={\textcolor{red}{Titel Vorname Nachname}\and
    \textcolor{red}{Titel Vorname Nachname}},%
  duration=\textcolor{red}{XX. Monat 20XX -- XX. Monat 20XX},%
  university=\textcolor{red}{\KITlongname},%
  homepage=\textcolor{red}{\KITurl}%
]
\end{document}

标题页KIT


进一步阅读

Wikibook 上的标题创建页面,你可以在那里找到更多示例

答案2

@ Johannes_B:从上面的例子来看,我按照以下方式定制我的标题页:

            \documentclass[12pt,a4paper,footinclude=true,twoside,headinclude=true,headings=optiontoheadandtoc]{scrbook}
      %\usepackage{geometry}
       %\geometry{marginparsep=8pt,left=3.5cm,right=3.5cm,top=3cm,bottom=3cm}
     \usepackage[parts,pdfspacing,dottedtoc]{classicthesis}
      \usepackage[utf8]{inputenc}
  \frontmatter


   \begin{document}


   %    \pagestyle{scrheadings}
   %    \manualmark
   %    \markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}                     


     \pagestyle{scrheadings}
     \newpage
     \begin{titlepage}

     \begin{center}
      \textsc{\Large Université...}\\[1cm]

      École doctorale 

      Équipe 

     Centre de Recherche \\[1cm]


     \begingroup \linespread{1,75} \selectfont 
     \textsc{\Large Title of the thesis}\\[0,75cm]
      \endgroup


     \begingroup \linespread{1,75} \selectfont 
      \textsc{\LARGE Thèse}\\[0,50cm]
      \endgroup

       Présentée et soutenue publiquement par\\[0,50cm]

       \begingroup \linespread{1,75} \selectfont 
       \textsc{\large My Name}\\[0,50cm]
       \endgroup



       Le (day-month-year)\\[0,50cm]


       Sous la direction de 

       \begingroup \linespread{1,75} \selectfont 
        \textsc{\large Supervisor's name}\\[1cm]
        \endgroup




         Pour l’obtention du grade de Docteur en ...\\[1cm]


         \begingroup \linespread{1,75} \selectfont 
          \textsc{\large Rapporteurs :}\\[0,50cm]
          \endgroup

           \\[0,50cm]

          \begingroup \linespread{1,75} \selectfont 
          \textsc{\large Composition du jury :}\\[0,50cm]
          \endgroup



            \end{center}



             \vfill
             \end{titlepage}

相关内容