This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesistitlepage.sty
93 lines (70 loc) · 2.42 KB
/
thesistitlepage.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
\ProvidesPackage{thesistitlepage}[2018/01/04 v1.0]
% Define commands to set variables
\def\title#1{\gdef\@title{#1}}\def\@title{}
\def\author#1{\gdef\@author{#1}}\def\@author{}
\def\date#1{\gdef\@date{#1}}\def\@date{\today}
\def\city#1{\gdef\@city{#1}}\def\@city{Osnabrück}
\def\firstSupervisor#1{\gdef\@firstSupervisor{#1}}\def\@firstSupervisor{}
\def\secondSupervisor#1{\gdef\@secondSupervisor{#1}}\def\@secondSupervisor{}
\def\workgroup#1{\gdef\@workgroup{#1}}\def\@workgroup{}
\def\institute#1{\gdef\@institute{#1}}\def\@institute{}
\def\@thesistype{Master's Thesis}
\RequirePackage{geometry}
\renewcommand{\maketitle}{
\hypersetup{pageanchor=false} % See https://tex.stackexchange.com/a/331766/51583
\newgeometry{margin=1in}
\begin{titlepage}
\thispagestyle{empty}
\begin{center}
\LARGE{\textsc{Osnabrück University}}
\vspace{4mm}
\LARGE{\textsc{\@institute}}
\LARGE{\textsc{\@workgroup}}
\vfill
\LARGE{\textit{\@thesistype}}
\vspace{8mm}
\huge{\textbf{\@title}}
\vspace{8mm}
\LARGE{\@author}
\vspace{32mm}
\Large{\@date}
\vfill
\begin{flushright}
{\def\arraystretch{1.5}
\begin{tabular}{l}
\large Supervisors: \\
\Large \@firstSupervisor \\
\Large \@secondSupervisor
\end{tabular}
} % end arraystretch
\end{flushright}
\end{center}
\end{titlepage}
\restoregeometry
\hypersetup{pageanchor=true}
}
\AtBeginDocument{
\hypersetup{
pdftitle = {\@thesistype: \@title},
pdfauthor = {\@author},
pdfsubject = {\@title},
pdfcreator = {pandoc \& pdfLaTeX},
pdfproducer = {pandoc \& pdfLaTeX},
}
}
\newcommand{\declarationofauthorship}{
\cleardoublepage
\chapter{Declaration of Authorship}
I hereby certify that the work presented here is, to the best of my
knowledge and belief, original and the result of my own investigations,
except as acknowledged, and has not been submitted, either in part or
whole, for a degree at this or any other university.
\vspace*{.2cm}
{\def\arraystretch{1.3}
\begin{tabular}{ll}
\@city, \@date & \\
& \small \@author
\end{tabular}
} % end arraystretch
}
\endinput