-
Notifications
You must be signed in to change notification settings - Fork 0
/
tuetitle.sty
117 lines (103 loc) · 4.25 KB
/
tuetitle.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
% Titelblatt für die Dissertation bei
% der Mathematisch-Naturwissenschaftlichen Fakultät der Universität Tübingen
%
% Without hyphens: grammatically wrong, but the university wants it so...
%
% Derived from the original tuetitle package with changes by Frank Schneider and Agustinus Kristiadi
%
% Derived by the tuhhtitle.sty file:
% Titelei für die Technische Universität Hamburg-Harburg
% Copyright (c) Markus Kohm, 2007
%
% Redefines the \maketitle command to produce university-approved title page.
% Details and examples are at the end of this file.
%
% This work consists of the file tuetitle.sty only.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{style/tuetitle}[2018/06/27 v3.2]
\newif\if@internal@titlepage
\DeclareOption{internal}{\@internal@titlepagetrue}
\DeclareOption{external}{\@internal@titlepagefalse}
\newif\if@phd
\DeclareOption{dissertation}{\@phdtrue}
\DeclareOption{habilitation}{\@phdfalse}
\newif\if@font
\DeclareOption{sffont}{\@fonttrue}
\DeclareOption{stdfont}{\@fontfalse}
\ExecuteOptions{dissertation,internal,sffont}
\ProcessOptions\relax
\newcommand*{\@birthplace}{%
\PackageError{tuetitle}{\string\birthplace\space missing}{%
You have to use \string\birthplace\space to set up the author's birthplace.}%
}
\newcommand*{\birthplace}[1]{\gdef\@birthplace{#1}}
\newcommand*{\@submissionyear}{\@arabic{\year}%
\PackageWarningNoLine{tuetitle}{\string\submissionyear\space missing, current year assumed}}
\newcommand*{\submissionyear}[1]{\gdef\@submissionyear{#1}}
\if@internal@titlepage
\newcommand*{\@dean}{%
\PackageError{tuetitle}{\string\dean\space missing}{%
You have to use \string\dean\space to set up the faculty dean.}%
}
\newcommand*{\dean}[1]{\gdef\@dean{#1}}
\newcommand*{\@experts}{%
\PackageError{tuetitle}{\string\experts\space missing}{%
You have to use \string\experts\space to set up the experts,\MessageBreak
e.g. `\string\experts{Name of the First Expert\string\and\space
Name of the Second Expert}'.}%
}
\newcommand*{\experts}[1]{\gdef\@experts{#1}}
\newcommand*{\dateoforalexamination}[1]{\gdef\@date{#1}}
\else
\newcommand*{\dean}[1]{\PackageWarning{tuetitle}{No \string\dean\space necessary\MessageBreak in external title page}}
\newcommand*{\experts}[1]{\PackageWarning{tuetitle}{No \string\experts\space necessary\MessageBreak in external title page}}
\newcommand*{\dateoforalexamination}[1]%
{\PackageWarning{tuetitle}{No \string\dateoforalexamination\space necessary\MessageBreak in external title page}}
\fi
\renewcommand*{\maketitle}{%
\begin{titlepage}
\centering
\vspace*{\stretch{.5}}
{\Huge\bfseries\selectfont\if@font\sffamily\fi\strut\ignorespaces\@title\strut}\\[0pt]
\vspace*{\stretch{2}}
\if@phd\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi
{% code for PhD thesis
{\fontsize{14.4}{18}\bfseries\if@font\sffamily\fi Dissertation}\\[0pt]
\vspace*{5pt}
{\fontsize{12}{14}\if@font\sffamily\fi \fontseries{l}\selectfont%
der Mathematisch-Naturwissenschaftlichen Fakult\"{a}t\\[2.5pt]
der Eberhard Karls Universit\"{a}t T\"{u}bingen\\[2.5pt]
zur Erlangung des Grades eines\\[2.5pt]
Doktors der Naturwissenschaften\\[2.5pt]
(Dr.\ rer.\ nat.)}\\}
{% code for Habil
{\fontsize{14.4}{18}\selectfont\textsc{Habilitationsschrift}}\\[0pt]
\vspace*{\stretch{1}}}
\vspace*{\stretch{2}}
{\fontsize{12}{14}\if@font\sffamily\fi \fontseries{l}\selectfont vorgelegt von}\\[0pt]
{\Large\if@font\sffamily\fi\strut\ignorespaces\@author}\\[2pt]
{\fontsize{12}{14}\if@font\sffamily\fi \fontseries{l}\selectfont aus \@birthplace}\\[0pt]
\vspace*{\stretch{1}}
{\fontsize{12}{14}\if@font\sffamily\fi \fontseries{l}\selectfont T\"{u}bingen\\[2.5pt] \@submissionyear}
\clearpage\normalsize
%
\if@phd\if@internal@titlepage
\thispagestyle{empty}\raggedright\null\vfill
Gedruckt mit Genehmigung der Mathematisch-Naturwissenschaftlichen Fakult\"at der
Eberhard Karls Universit\"at T\"ubingen.\par\bigskip\bigskip\bigskip\noindent
\count@=\@ne
\def\and{\unskip\strut\\
\global\advance\count@\@ne
\the\count@.~Berichterstatter: & \ignorespaces}%
\begin{tabular}{@{}ll}
Tag der m\"{u}ndlichen Qualifikation: \qquad & \@date \\
&\\
Dekan: & \@dean \\
1. Berichterstatter: & \@experts
\end{tabular}
\clearpage
\fi\fi
\end{titlepage}
\global\let\maketitle\relax
}
\endinput