This repository has been archived by the owner on Dec 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
preamble.tex
executable file
·126 lines (108 loc) · 3.61 KB
/
preamble.tex
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
%% Packages from ASI-PR
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
%\usepackage{ngerman}
\usepackage{fancyhdr}
\usepackage{geometry}
\usepackage{float}
\usepackage{cite}
\usepackage[numbers,round]{natbib}
\usepackage{tikz}
\usepackage{circuitikz}
%% New Packages for AP2
\usepackage{multicol}
\usepackage{csvsimple}
\usepackage{lscape}
\usepackage{xfrac}
\usepackage{amsmath}
\usepackage{mathtools}
%%\usepackage{subfig}
\usepackage{graphicx}
\usepackage{gensymb}
\usepackage{hyperref}
\usepackage{wrapfig}
%% New packages for BThesis
\usepackage{diagbox}
\usepackage{listings}
\usepackage{subcaption}
\usepackage{tabularx}
\usepackage{colortbl}
%%%% Listings
\usepackage{bera}% optional: just to have a nice mono-spaced font
\usepackage{xcolor}
\colorlet{punct}{red!60!black}
\definecolor{background}{HTML}{EEEEEE}
\definecolor{delim}{RGB}{20,105,176}
\colorlet{numb}{magenta!60!black}
% Python style for highlighting
\newcommand\pythonstyle{\lstset{
language=Python,
basicstyle=\ttm,
otherkeywords={self}, % Add keywords here
keywordstyle=\ttb\color{deepblue},
emph={MyClass,__init__}, % Custom highlighting
emphstyle=\ttb\color{deepred}, % Custom highlighting style
stringstyle=\color{deepgreen},
frame=tb, % Any extra options here
showstringspaces=false %
}}
\lstdefinelanguage{json}{
basicstyle=\normalfont\ttfamily,
numbers=left,
numberstyle=\scriptsize,
stepnumber=1,
numbersep=8pt,
showstringspaces=false,
breaklines=true,
frame=lines,
backgroundcolor=\color{background},
literate=
*{:}{{{\color{punct}{:}}}}{1}
{,}{{{\color{punct}{,}}}}{1}
{\{}{{{\color{delim}{\{}}}}{1}
{\}}{{{\color{delim}{\}}}}}{1}
{[}{{{\color{delim}{[}}}}{1}
{]}{{{\color{delim}{]}}}}{1},
}
%%%%
%% Page Setup
\geometry{verbose,a4paper,tmargin=25mm,bmargin=25mm,lmargin=15mm,rmargin=15mm}
\pagestyle{fancy}
\fancyhf{}
%% Images are loaded from ./img
\graphicspath{{img/}}
%% Header ...
\lhead{A Generic Survey Tool with xAPI Support} %% (!!!) Change this when re-using!
\rhead{Noah Hummel}
%% ... and Footer
\rfoot{\thepage}
\title{A Generic Survey Tool with xAPI Support \\ Bachelor Thesis \\ }
\date{31st October, 2018}
\author{Noah Hummel (5966916) \\ Informatik B.Sc. \\ J.W. Goethe University Frankfurt \\ Supervisor: Prof. H. Drachsler}
%%%% Some helpful stuffs %%%%
\newcommand{\namesigdate}[2][5cm]{%
\begin{minipage}{#1}
#2 \vspace{1.0cm}\hrule\smallskip
\small \textit{Signature}
\vspace{1.0cm}\hrule\smallskip
\small \textit{Date}
\end{minipage}
}
%% \begin{onepage} -> Fit contents on one page
\newcommand{\addstretch}[1]{\addtolength{#1}{\fill}}
\newenvironment{onepage}
{\newpage\flushbottom
\addstretch{\baselineskip}
\addstretch{\abovedisplayskip}
\addstretch{\abovedisplayshortskip}
\addstretch{\belowdisplayskip}
\addstretch{\belowdisplayshortskip}
\setlength{\parskip}{0pt}}
{\newpage}
%% $\abs{X}$ -> |X|
\DeclarePairedDelimiter\abs{\lvert}{\rvert}
\newcommand{\profhd}{Prof. H. Drachsler }
\def\inline{\lstinline[basicstyle=\ttfamily,keywordstyle={}]}
\newcommand{\zcomp}{\underline{Z}}
\newcommand{\cmp}[1]{\underline{#1}}