Commit 8bb1c9a9 authored by Dominik Kaaser's avatar Dominik Kaaser
Browse files

initial import

parent 6180b3f9
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+12 −0
Changes for .gitignore: 12 added lines, 0 removed lines.
Original line number Diff line number Diff line
*.aux
*.bbl
*.bcf
*.blg
*.fdb_latexmk
*.fls
*.lof
*.log
*.lot
thesis.pdf
*.run.xml
*.toc

thesis/Makefile

0 → 100644
+7 −0
Changes for thesis/Makefile: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
all:
	latexmk -pdf thesis.tex

clean:
	latexmk -pdf -C

thesis/ide-logo.pdf

0 → 100644
+8.76 KiB

File added.

No diff preview for this file type.

thesis/references.bib

0 → 100644
+0 −0

Empty file added.

thesis/thesis.cls

0 → 100644
+297 −0
Changes for thesis/thesis.cls: 297 added lines, 0 removed lines.
Original line number Diff line number Diff line
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{idethesis}[2022/09/30 Dominik's thesis class]

\LoadClass[numbers=noenddot,paper=a4,fontsize=11pt,american,headsepline=0.4pt:130mm,chapterprefix]{scrbook}

\PassOptionsToPackage{a4paper, right=40mm, left=20mm, top=40mm, bottom=40mm, headsep=10mm, footskip=20mm, headheight=10mm, nomarginpar, bindingoffset=20mm}{geometry}
\RequirePackage{geometry}
\setlength{\parskip}{0.25\baselineskip}
\setlength{\parindent}{1em}
\emergencystretch=1.4em
\setcounter{tocdepth}{1}

\addtokomafont{disposition}{\rmfamily}
\addtokomafont{dedication}{\itshape}

\PassOptionsToPackage{draft=false,headsepline=0.4pt:130mm}{scrlayer-scrpage}
\RequirePackage{scrlayer-scrpage}

\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{xpatch}
\RequirePackage{palatino}
\RequirePackage{microtype}
\RequirePackage[USenglish]{babel}
\RequirePackage{csquotes}

\RequirePackage{amsmath}
\RequirePackage{amssymb}
\RequirePackage{amsthm}

\RequirePackage{graphicx}
\RequirePackage[rgb,dvipsnames,svgnames,table]{xcolor}

\RequirePackage{booktabs}
\RequirePackage{multirow}

\RequirePackage{calc}

\RequirePackage{float}

\RequirePackage{tikz}
\usetikzlibrary{calc}
\definecolor{tuhh}{HTML}{00C1D4}%

\extratitle{
\begin{center}
\Large \@title
\end{center}
}
\lowertitleback{
\begin{minipage}{12cm}
\begin{flushleft}
\noindent \textbf{Hamburg University of Technology}\newline
Institute for Data Engineering

\medskip

Am Schwarzenberg-Campus 1\newline
21073 Hamburg\newline
Germany

\bigskip

\noindent\textbf{\@author}\newline
\textit{\@title}\newline
\@date{} $ \cdot $ commit \StrLeft{\commit}{7}\ on branch \branch
\end{flushleft}
\end{minipage}
}

\usepackage{xstring}
\usepackage{catchfile}

\CatchFileDef{\headfull}{../.git/HEAD}{}
\StrGobbleRight{\headfull}{1}[\head]
\StrBehind[2]{\head}{/}[\branch]
\IfFileExists{../.git/refs/heads/\branch}{%
    \CatchFileDef{\commit}{../.git/refs/heads/\branch}{}}{%
    \newcommand{\commit}{unknown}}

% Define location field
\def\location#1{\gdef\@location{#1}}
\def\@location{}

% Define supervisors field
\def\supervisors#1{%
\publishers{\begin{minipage}{17cm}%
Supervisors:\\%
{%
\def\and{\\}%
#1%
}%
\end{minipage}%
}%
}


\titlehead{
\begin{tikzpicture}[overlay,remember picture]
    \draw [line width=1pt, color=tuhh]
        ($ (current page.north west) + (2cm,-2cm) $)
        rectangle
        ($ (current page.south east) + (-2cm,2cm) $);
    \draw [line width=1pt, color=tuhh]
        ($ (current page.south west) + (2cm,4cm) $)
        --
        ($ (current page.south east) + (-2cm,4cm) $);
    \node[inner sep=0pt,anchor=west] (logo-left) at ($(current page.south west) + (2.5cm,3cm)$)
    {\IfFileExists{tuhh-logo.pdf}{\includegraphics[height=1cm]{tuhh-logo}}{}};
    \node[inner sep=0pt,anchor=east] (logo-right) at ($(current page.south east) + (-2.5cm,3cm)$)
    {\IfFileExists{ide-logo.pdf}{\includegraphics[height=1cm]{ide-logo}}{}};

    \node[inner sep=0pt,anchor=center] (bottomtext)
    at ($(current page.south) + (0cm,2cm)$)
    {\minipage{7cm}\endminipage};

    %\node[inner sep=0pt,anchor=north west] (title)
    %at ($(current page.north west) + (1.5cm,-1.5cm)$)
    %{\minipage[t][3cm][t]{12cm}\raggedright\Huge \@title \par \Large \@subtitle \endminipage};

\end{tikzpicture}%
}

% Chapter Headlines
\renewcommand*{\chapterformat}{%
\pagestyle{scrheadings}%
\color{gray} \raggedleft \bfseries\fontsize{120}{0}\selectfont\thechapter \vskip 1cm
}
\renewcommand*{\chapterheadstartvskip}{\vskip 2cm}
\renewcommand*{\chapterheadendvskip}{\vskip 1cm}

\renewcommand*{\chaptermarkformat}{%
  \thechapter\autodot\enskip%
}

% Abstract
\newenvironment{abstract}{
\markboth{Abstract}{}
\chapter*{Abstract}
\addcontentsline{toc}{chapter}{Abstract}
}{
\cleardoublepage
}

\newenvironment{preface}[1]{\markboth{#1}{}%
\chapter*{#1}%
\addcontentsline{toc}{chapter}{#1}}
{\cleardoublepage}

% Biblatex
\PassOptionsToPackage{style=alphabetic,
maxbibnames=99,
maxcitenames=2,
mincitenames=1,
maxalphanames=4,
minalphanames=3,
date=year,
sorting=nyt,
bibencoding=auto,
backend=biber}{biblatex}
\RequirePackage{biblatex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55
%% Fix up bibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55
% clear quotes around the title in \citetitle{}, but use italics
\DeclareFieldFormat*{citetitle}{\itshape #1}
\DeclareFieldFormat*{title}{\itshape #1\isdot}
\renewcommand*{\intitlepunct}{\space}

%%%%%
\DeclareFieldFormat[inproceedings]{volume}{Volume #1}
\DeclareFieldFormat*{pages}{pages #1}
%\DeclareFieldFormat*{volume}{Volume #1}
%\DeclareFieldFormat*{number}{\mkbibparens{#1}}
%
%\renewbibmacro*{volume+number+eid}{%
%  \setunit{\addcomma\space}
%  \printfield{volume}%
%  \setunit*{\addnbspace}% NEW (optional); there's also \addnbthinspace
%  \printfield{number}%
%}

%\renewbibmacro*{issue+date}{%
%  \setunit{\addcomma\space}
%  %\printtext[parens]{%
%    \iffieldundef{issue}
%      {\usebibmacro{date}}
%      {\printfield{issue}%
%       \setunit*{\addspace}%
%       \usebibmacro{date}}%}%
%  \newunit}
%%%%%
\AtEveryBibitem{% Clean up the bibtex rather than editing it
 % Make a volume number actually be the series number for inproceedings
 \ifentrytype{inproceedings}{%
  \iffieldundef{series}{}{%
    \savefield{volume}{\theoriginalvolume}%
    \restorefield{number}{\theoriginalvolume}%
    \clearfield{volume}%
  }%
 }{}%
 % and same for book
 \ifentrytype{book}{%
  \iffieldundef{series}{}{%
    \savefield{volume}{\theoriginalvolume}%
    \restorefield{number}{\theoriginalvolume}%
    \clearfield{volume}%
  }%
 }{}%
 % And remove address, location, and editor
 \clearlist{address}%
 %\clearfield{date}%
 %\clearfield{eprint}%
 %\clearfield{isbn}%
 %\clearfield{issn}%
 \clearlist{location}%
 %\clearfield{month}%
 %\clearfield{series}%
 \ifentrytype{book}{}{% Remove publisher and editor except for books
  %\clearlist{publisher}%
  \clearname{editor}%
 }%
}
\AtEveryCitekey{\UseBibitemHook}
%%%%%

\renewcommand*{\multicitedelim}{\addcomma\space}
\renewcommand{\labelnamepunct}{\addcolon\space}

\renewbibmacro*{issue+date}{%
  \setunit{\addcomma\space}
  %\printtext[parens]{%
    \iffieldundef{issue}
      {\usebibmacro{date}}
      {\printfield{issue}%
       \setunit*{\addspace}%
       \usebibmacro{date}}%}%
  \newunit}


\renewbibmacro*{publisher+location+date}{%
  \printlist{location}%
  \iflistundef{publisher}
    {\setunit*{\addcomma\space}}
    {\setunit*{\addcolon\space}}%
  \printlist{publisher}%
  \setunit*{\addcomma\space}%
  \addcomma\space\usebibmacro{date}%
  \newunit}



\DeclareFieldFormat*{number}{\mkbibparens{#1}}
\DeclareFieldFormat[inproceedings]{number}{\addcomma\space volume #1\addcomma}
%\DeclareFieldFormat[inproceedings]{number}{\mkbibparens{#1}\addcomma}
\DeclareFieldFormat[incollection]{volume}{\addcomma\space volume #1\addcomma}
\DeclareFieldFormat[article]{volume}{volume #1}

\renewbibmacro*{volume+number+eid}{%
  \setunit{\addcomma\space}
  \printfield{volume}%
  \setunit*{\addnbthinspace}% NEW (optional); there's also \addnbthinspace
  \printfield{number}%
}

\xpatchbibdriver{incollection}{%
  \usebibmacro{maintitle+booktitle}%
  \newunit\newblock
}{%
  \usebibmacro{maintitle+booktitle}%
  \iffieldundef{volume}{
    \newunit\newblock
  }{
    \addcomma\space\newblock
  }
}{}{}

%use comma before edition for books
\xpatchbibdriver{book}{%
\newunit\newblock
\printfield{edition}%
}
{%
\setunit{\addcomma\space}\newblock
\printfield{edition}%
}{}{}

\def\insertdeclaration{
\chapter*{Eidesstattliche Erklärung}
\thispagestyle{empty}

Hiermit versichere ich an Eides statt, die vorliegende Arbeit selbstständig verfasst wurde und keine anderen als die angegebenen Quellen und Hilfsmittel benutzt wurden.

\vspace{1.5cm}

\noindent \@location, am \@date \hfill \@author
}
Loading