Added custom titlepage

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2019-01-03 17:15:14 +01:00
parent e769325cfe
commit 1131781d71

View File

@ -24,6 +24,11 @@
\@librarytrue \@librarytrue
} }
\newif\if@writeprof\@writeproffalse
\DeclareOption{writeprof}{%
\@writeproftrue
}
\ProcessOptions\relax \ProcessOptions\relax
% load packages % load packages
@ -32,6 +37,8 @@
\usepackage{textcomp, amssymb} % additional symbols (there are more packages) \usepackage{textcomp, amssymb} % additional symbols (there are more packages)
\usepackage[all]{xy} % creating figures within latex \usepackage[all]{xy} % creating figures within latex
\usepackage[tight]{subfigure} % figures within figures \usepackage[tight]{subfigure} % figures within figures
\usepackage{geometry}
\usepackage{soul}
\usepackage{ifpdf} \usepackage{ifpdf}
% load biblatex % load biblatex
@ -79,7 +86,6 @@
% simplify quoting % simplify quoting
\usepackage{csquotes} \usepackage{csquotes}
\MakeOuterQuote{"}
% support both german and english % support both german and english
\usepackage[ngerman,english]{babel} \usepackage[ngerman,english]{babel}
@ -93,9 +99,51 @@
\usepackage[xindy]{glossaries} % for \printglossary \usepackage[xindy]{glossaries} % for \printglossary
\makeglossaries \makeglossaries
%%% conditional includes
\newif\if@privatedefs\@privatedefsfalse
\IfFileExists{./private/definitions.tex}{%
\@privatedefstrue
\input{./private/definitions.tex}
}{}
\MakeOuterQuote{"}
%%% define commands %%% define commands
\newcommand{\start}{% \newcommand{\start}{%
\maketitle \newgeometry{centering,left=2cm,right=2cm,top=2cm,bottom=2cm}
\begin{titlepage}
\IfFileExists{./private/images/uhh-logo.pdf}{%
\includegraphics[scale=0.3]{uhh-logo}}{}
\vspace*{2cm}
\Large
\begin{center}
\if@privatedefs
\textcolor{uhhRed}{\textbf{\so{MASTERTHESIS}}}
\else
\textcolor{red}{\textbf{\so{MASTERTHESIS}}}
\fi
\vspace*{2cm}\\
{\LARGE \textbf{\@title}}
\vspace*{2cm}\\
vorgelegt von
\vspace*{0.4cm}\\
\@author
\end{center}
\vspace*{3.9cm}
\noindent
\faculty \vspace*{0.4cm} \\
\department \vspace*{0.4cm} \\
\if@writeprof
\professor \vspace*{0.4cm} \\
\else\fi
Studiengang: \studiengang \vspace*{0.4cm} \\
Matrikelnummer: \matrikelnummer \vspace*{0.8cm} \\
Erstgutachter: \firstReviewer \vspace*{0.4cm} \\
Zweitgutachter: \secondReviewer
\end{titlepage}
\restoregeometry
\if@uselicence \if@uselicence
\input{licence.tex} \input{licence.tex}
@ -112,7 +160,6 @@
\tableofcontents \tableofcontents
} }
\newcommand{\finish}{% \newcommand{\finish}{%
%\clearpage %\clearpage
\printbibliography[heading=bibintoc] \printbibliography[heading=bibintoc]