-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathustutt-titlepage.sty
96 lines (93 loc) · 3.13 KB
/
ustutt-titlepage.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
% -*- coding:utf-8 mod:LaTeX -*-
% Title page for Ph.D. thesis at the University of Stuttgart.
\newcommand{\TBlabel}[1]{\textbf{#1}\hfil}
\newenvironment{TBlist}{%
\list{}{\labelwidth 35mm \leftmargin 51mm % alt: 35/60 mm
\rightmargin 10mm \let\makelabel\TBlabel}%
}{\endlist}
\newcommand*{\firstexaminer}[1]{\def\@firstexaminer{#1\xspace}}
\def\@firstexaminer{
\@latex@warning@no@line{Package `ustutt-titlepage': No \noexpand\firstexaminer given}}
\newcommand*{\secondexaminer}[1]{\def\@secondexaminer{#1\xspace}}
\def\@secondexaminer{
\@latex@warning@no@line{Package `ustutt-titlepage': No \noexpand\secondexaminer given}}
\newcommand*{\dateofexamination}[1]{\def\@dateofexamination{#1\xspace}}
\def\@dateofexamination{
\@latex@warning@no@line{Package `ustutt-titlepage': No \noexpand\dateofexamination given}}
\newcommand*{\placeofbirth}[1]{\def\@placeofbirth{#1\xspace}}
\def\@placeofbirth{
\@latex@warning@no@line{Package `ustutt-titlepage': No \noexpand\placeofbirth given}}
%
\newcommand*{\faculty}[1]{\def\@faculty{#1\xspace}}
% Liste der Fakultäten: http://www.uni-stuttgart.de/ueberblick/organisation/fakultaeten/
\def\@faculty{
\@latex@warning@no@line{Package `ustutt-titlepage': No \noexpand\faculty given}}
%
% Degree
% Akademischer Grad gemäß § 1 Abs. 1
\newcommand*{\degree}[1]{\def\@degree{#1\xspace}}
\def\@degree{Doktors der Naturwissenschaften (Dr.~rer.~nat.)\xspace}
%
\newcommand*{\department}[1]{\def\@department{#1\xspace}}
\def\@department{
\@latex@warning@no@line{Package `ustutt-titlepage': No \noexpand\department given}}
%
\newcommand*{\university}[1]{\def\@university{#1\xspace}}
\def\@university{Universit\"at Stuttgart\xspace}
%
\newcommand*{\keywords}[1]{\def\@keywords{#1}}
\def\@keywords{}
\renewcommand\maketitle{
%\hypersetup{pdftitle={\@title}}
%\hypersetup{pdfauthor=\@author}
%hypersetup{pdfkeywords=\@keywords}
\thispagestyle{empty}
\begin{titlepage}
\begin{spacing}{1.3}
\setcounter{footnote}{0}
%\null\vfil
%\vskip 60\p@
\begin{center}
\setlength{\parskip}{0pt}
\includegraphics[width=6cm]{ustutt-logo.pdf}\\
\vspace{18pt}
{\LARGE \textbf \@title \par}
\vspace{30pt}
{Von der \@faculty der \@university
zur Erlangung der W\"urde eines
\@degree
genehmigte Abhandlung \par}
%\bigskip
\vspace{25pt}
{Vorgelegt von \par}
\vspace{.8ex}
{\large \@author \par}
\vspace{.8ex}
{aus \@placeofbirth \par}
\vspace{30pt}
\begin{tabular}{ll}
\textbf{Hauptberichter:} & \@firstexaminer \\
\textbf{Mitberichter:} & \@secondexaminer \\
&\\
\textbf{Tag der m\"undlichen Pr\"ufung:} & \@dateofexamination
\end{tabular}
\vspace{30pt}\par\vfill
{\@department \par}
\vspace{10pt}
{\the\year}
\end{center}
\end{spacing}
\end{titlepage}
\setcounter{footnote}{0}
\global\let\thanks\relax
\global\let\maketitle\relax
\global\let\@thanks\@empty
%\global\let\@author\@empty
%\global\let\@date\@empty
%\global\let\@title\@empty
%\global\let\title\relax
%\global\let\author\relax
%\global\let\date\relax
%\global\let\and\relax
\cleardoublepage
}