-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathneutralThesis.sty
More file actions
127 lines (93 loc) · 3.61 KB
/
Copy pathneutralThesis.sty
File metadata and controls
127 lines (93 loc) · 3.61 KB
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
118
119
120
121
122
123
124
125
126
127
\ProvidesPackage{prettytex/neutralThesis}
\RequirePackage{prettytex/base}
%%---------------------------------------------------------------------------------------------------------------------
% setup
%%---------------------------------------------------------------------------------------------------------------------
% author
\def\@thesisauthor{\@author}
\newcommand{\thesisauthor}[1]{\def\@thesisauthor{#1}}
% title
\def\@thesistitle{\@title}
\newcommand{\thesistitle}[1]{\def\@thesistitle{#1}}
% date
\def\@thesisdate{\@date}
\newcommand{\thesisdate}[1]{\def\@thesisdate{#1}}
% degree
\def\@academicdegree{Master of Science}
\newcommand{\academicdegree}[1]{\def\@academicdegree{#1}}
% programme
\def\@degreeprogramme{Mathematics}
\newcommand{\curriculum}[1]{\def\@degreeprogramme{#1}}
% programme type
\def\@programmetype{Master}
\newcommand{\programmetype}[1]{\def\@programmetype{#1}}
% university
\def\@university{ETH Zürich}
\newcommand{\university}[1]{\def\@university{#1}}
% institue
\def\@institute{Mathematics}
\newcommand{\institute}[1]{\def\@institute{#1}}
% location
\def\@location{Zürich}
\newcommand{\location}[1]{\def\@location{#1}}
% supervisor
\def\@supervisor{An awesome person with lots of titles}
\newcommand{\supervisor}[1]{\def\@supervisor{#1}}
% logo
\def\@logolocation{logo.pdf}
\newcommand{\logolocation}[1]{\def\@logolocation{#1}}
\ifdefined\usefamilyofkomafont
\def\tugraz@titlefont{\usefamilyofkomafont{disposition}}
\else
\def\tugraz@titlefont{}
\fi
%%---------------------------------------------------------------------------------------------------------------------
% titlepage
%%---------------------------------------------------------------------------------------------------------------------
\newcommand{\printthesistitle}{%
\newgeometry{bottom=2.7cm,left=2.5cm,right=2.5cm,top=1cm}
\thispagestyle{empty}
\cleardoublepage
\begin{center}
\includegraphics{\@logolocation}
\end{center}
\vskip3cm
\begin{center}
{\fontsize{14pt}{16pt}\selectfont\@thesisauthor \par}
\vskip1.2cm
{\fontsize{16pt}{20pt}\selectfont\bfseries\@thesistitle \par}
\vfill
{\bfseries\fontsize{12pt}{14pt}\selectfont\uppercase\expandafter{\@programmetype}'S THESIS}
{\@programmetype's degree programme:\\\@degreeprogramme}
\vskip 1.2cm
{\bfseries\fontsize{10pt}{12pt}\selectfont Supervisor \par}
{\fontsize{10pt}{12pt}\selectfont \@supervisor\\\smallskip\@institute\\\@university \par}
\vskip1.4cm
{\fontsize{8pt}{11pt}\selectfont \@location, \@thesisdate \par}
\end{center}
\restoregeometry
}
\newcommand{\printtwologothesistitle}[2]{%
\newgeometry{bottom=2.7cm,left=2.5cm,right=2.5cm,top=1cm}
\thispagestyle{empty}
\cleardoublepage
\begin{center}
\includegraphics[height=#2cm]{\@logolocation}
\includegraphics[height=#2cm]{#1}
\end{center}
\vskip3cm
\begin{center}
{\fontsize{14pt}{16pt}\selectfont\@thesisauthor \par}
\vskip1.2cm
{\fontsize{16pt}{20pt}\selectfont\bfseries\@thesistitle \par}
\vfill
{\bfseries\fontsize{12pt}{14pt}\selectfont\uppercase\expandafter{\@programmetype}'S THESIS}
{\@programmetype's degree programme:\\\@degreeprogramme}
\vskip 1.2cm
{\bfseries\fontsize{10pt}{12pt}\selectfont Supervisor \par}
{\fontsize{10pt}{12pt}\selectfont \@supervisor\\\smallskip\@institute\\\@university \par}
\vskip1.4cm
{\fontsize{8pt}{11pt}\selectfont \@location, \@thesisdate \par}
\end{center}
\restoregeometry
}