From 1131781d7132da0bc5a50109e981cf9fa2c36191 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Thu, 3 Jan 2019 17:15:14 +0100 Subject: [PATCH] Added custom titlepage Signed-off-by: Jim Martens --- masterthesis.sty | 53 +++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 3 deletions(-) diff --git a/masterthesis.sty b/masterthesis.sty index 42e0ad6..98fe2d9 100644 --- a/masterthesis.sty +++ b/masterthesis.sty @@ -24,6 +24,11 @@ \@librarytrue } +\newif\if@writeprof\@writeproffalse +\DeclareOption{writeprof}{% + \@writeproftrue +} + \ProcessOptions\relax % load packages @@ -32,6 +37,8 @@ \usepackage{textcomp, amssymb} % additional symbols (there are more packages) \usepackage[all]{xy} % creating figures within latex \usepackage[tight]{subfigure} % figures within figures +\usepackage{geometry} +\usepackage{soul} \usepackage{ifpdf} % load biblatex @@ -79,7 +86,6 @@ % simplify quoting \usepackage{csquotes} -\MakeOuterQuote{"} % support both german and english \usepackage[ngerman,english]{babel} @@ -93,9 +99,51 @@ \usepackage[xindy]{glossaries} % for \printglossary \makeglossaries +%%% conditional includes +\newif\if@privatedefs\@privatedefsfalse +\IfFileExists{./private/definitions.tex}{% + \@privatedefstrue + \input{./private/definitions.tex} +}{} + + +\MakeOuterQuote{"} + %%% define commands \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 \input{licence.tex} @@ -112,7 +160,6 @@ \tableofcontents } - \newcommand{\finish}{% %\clearpage \printbibliography[heading=bibintoc]