<filename>titlepage.tex<gh_stars>0

%------------------------------------- Custom Title Page ---------------------------
\renewcommand{\maketitle}{
\thispagestyle{empty}

\parindent=0pt
\begin{center}
%    \includegraphics[width=5cm]{icons/uni_siegel}\\
    \includegraphics[width=12cm]{icons/unilogo}\\
    \vspace{0.25cm}
    \Large{
    Department of Computer Science (IIF)\\
    Chair of Computer Architecture\\
    }
\end{center}

\vspace{20mm}
\hrule
\vspace{5mm}

\begin{center}
    \LARGE
    \textbf{\textsc{ $title$ }}
\end{center}

\vspace{5mm}
\hrule
\vspace{10mm}

$if(subtitle)$
\begin{center}
    \Large
    \textsc{ $subtitle$ }
\end{center}
$endif$

\vfill

\vspace{\baselineskip}\noindent
\large
\begin{tabular}{lp{\textwidth}}
    Thesis of: & \texttt{$for(author)$$author$$sep$ \and $endfor$}\\
    Matriculation number: & \texttt{$studentnumber$} \\
    &\\[12pt]
    Submission on: & \texttt{$date$}\\
    &\\[24pt]
    First examiner: & \texttt{$reviewer1$}\\
    Second examiner: & \texttt{$reviewer2$}
\end{tabular}
}
%------------------------------------- Custom Title Page ---------------------------



%------------------------------------- Custom Title (Back) Page --------------------
\newcommand\customtitlebackpage{
\thispagestyle{empty}
\hfill
\vfill
%\textbf{$author$} ($studentnumber$) \\
%\textit{$title$} \\
%$date$ \\[12pt]
\begin{tabular}{lp{\textwidth}}
    First examiner: & \texttt{$reviewer1$}\\
    &\\[5pt]
    Second examiner: & \texttt{$reviewer2$}\\
    &\\[10pt]
    Advisers:& \texttt{$adviser1$} \\
        & \texttt{$adviser2$} \\
        &\\[5pt]
        & \texttt{$adviser3$} \\
        & \texttt{$adviser4$} \\
        &\\[10pt]
Writing Period:& \texttt{01.02.2022 - 30.04.2022}

\end{tabular}
}
%------------------------------------- Custom Title (Back) Page --------------------



%------------------------------------- Patch Eisvogel's frontmatter ----------------
%% Eisvogel template uses `\frontmatter` directly *after* `\maketitle`, thus there is
%% a `\doubleclearpage` after the titlepage, which prevents our title-back-page to be
%% positioned on the backside of the titlepage ...
%% (Pandocs default template uses `\frontmatter` *before* `\maketitle`)
$if(eisvogel)$
\usepackage{xpatch}
\xpretocmd{\frontmatter}{\customtitlebackpage}{}{}
\xapptocmd{\frontmatter}{\setcounter{page}{3}}{}{}
$endif$
%------------------------------------- Patch Eisvogel's frontmatter ----------------



%------------------------------------- Workaround for CleanStyle -------------------
%% cleanthesis.sty *will* check the bibfile, even if `configurebiblatex=false` ...
%% So we need to set it appropriately using our metadata variable "cleanthesisbibfile"
$if(cleanthesis)$
\PassOptionsToPackage{
    figuresep=colon,
    configurelistings=true,
    configurebiblatex=false,
    bibfile=$cleanthesisbibfile$
}{cleanthesis}
$endif$
%------------------------------------- Workaround for CleanStyle -------------------
