-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.tex
203 lines (164 loc) · 5.76 KB
/
config.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage[english, ngerman]{babel}
\usepackage[default]{lato}
% \usepackage[defaultmono]{droidmono}
% \usepackage{pandora}
\usepackage[T1]{fontenc}
% \usepackage[kerning=true,spacing=true,stretch=11]{microtype}
\usepackage[activate={true,nocompatibility},kerning=true]{microtype}
\usepackage[bottom=30mm]{geometry} %Seitenränder
\usepackage[hyphens]{url} % breaks very long urls
\usepackage[pdfborder={ 0 0 0 }, breaklinks, backref]{hyperref}
% ----------------------------------------------------------------
%Fußnoten: verhindere das Zurücksetzen des Fußnotenzählers in jedem kapitel
\usepackage{remreset}
\makeatletter \@removefromreset{footnote}{chapter} \makeatother
% ------------------------------------------------------------------
% breaks url after '-'
% ------------------------------------------------------------------
\usepackage[babel, german=swiss]{csquotes} % Required to generate language-dependent quotes in the bibliography
\usepackage{titleref}
\usepackage{cite}
\usepackage{wrapfig}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage[font={small,it},justification=centering]{caption}
\usepackage{subcaption}
\captionsetup{compatibility=false}
\usepackage[table,xcdraw,dvipsnames]{xcolor}
\usepackage{float} % table float
\usepackage{booktabs} % need for table toprule etc
\usepackage{longtable} % strech tables over multiple pages
\usepackage{enumitem}
\linespread {1.25}\selectfont
%------------------------------------------------
\usepackage{textcomp} % Fix warning with missing font shapes
%------------------------------------------------
\usepackage{xspace} % To get the spacing after macros right
%------------------------------------------------
\usepackage{mparhack} % To get marginpar right
%------------------------------------------------
\usepackage{scrhack} % Fix warnings when using KOMA with listings package
%------------------------------------------------
\usepackage{xspace} % setzt Leerzeichen, wenn welche hingehören
% --------------------------------------------
\usepackage[
nonumberlist, %keine Seitenzahlen anzeigen
nopostdot, %keine Punkte am Ende
acronym, %ein Abkürzungsverzeichnis erstellen
toc]
{glossaries}
\makeglossaries
%Glossar-Befehle anschalten
\include{extra/Glossary}
% ---------------------------------------------------
\definecolor{lightgray}{gray}{0.95}
\definecolor{rulegray}{gray}{0.8}
\addtokomafont{chapter}{ \scshape \mdseries}
\addtokomafont{section}{\huge \scshape \mdseries \color{darkgray}}
\addtokomafont{subsection}{\LARGE \scshape \mdseries \color{gray}}
\addtokomafont{subsubsection}{\large \scshape \mdseries}
\setlength{\parindent}{0pt} % keine Einrückungen nach Absätzen
\newcommand{\grayRule}{
\textcolor{rulegray}{\rule{35em}{0.4pt}}
}
% custom quote format
\AtBeginEnvironment{quote}{\color{darkgray}}
% ----------------------------------------------------
% shortcuts for font-format
\renewcommand{\b}[1]{\textbf{#1}}
\renewcommand{\it}[1]{\textit{#1}}
\renewcommand{\sc}[1]{\textsc{#1}}
\renewcommand{\tt}[1]{\texttt{#1}}
\newcommand{\tm}{\texttrademark}
\newcommand{\highlight}[1]{\textcolor{yellow!50!orange}{#1}} % 50% yellow. 50% orange
\newcommand{\todo}[1]{\textcolor{red!70!blue}{#1}} % 70% red. 30% blue
\newcommand{\note}[1]{\colorbox{green!35!yellow}{#1}} % 30% blue. 70% red
% sub & susubsection
\newcommand{\sub}[1]{\subsection{#1}}
\newcommand{\subsub}[1]{\subsubsection{#1}}
% ----------------------------------------------------
\usepackage{listings}
% numbers=left,
% numberstyle=\tiny,
% stepnumber=1,
\DeclareCaptionFormat{listing}{
\parbox{\textwidth}{
\centering
\grayRule\\
#1#2#3
}
}
\captionsetup[lstlisting]{format=listing, font={small,it}}
\renewcommand{\ttdefault}{pcr} % Using Courier font
\lstdefinelanguage{JSON}{
morestring=[b]",
stringstyle=\color{SeaGreen},
keywordstyle=\color{Cerulean},
identifierstyle=\color{Cerulean},
literate=
*{0}{{{\color{Cerulean}0}}}{1}
{1}{{{\color{Cerulean}1}}}{1}
{2}{{{\color{Cerulean}2}}}{1}
{3}{{{\color{Cerulean}3}}}{1}
{4}{{{\color{Cerulean}4}}}{1}
{5}{{{\color{Cerulean}5}}}{1}
{6}{{{\color{Cerulean}6}}}{1}
{7}{{{\color{Cerulean}7}}}{1}
{8}{{{\color{Cerulean}8}}}{1}
{9}{{{\color{Cerulean}9}}}{1}
{false}{{{\color{Cerulean}false}}}{1}
{true}{{{\color{Cerulean}true}}}{1}
{:}{{{\color{CarnationPink}{:}}}}{1}
{,}{{{\color{CarnationPink}{,}}}}{1}
{\{}{{{\color{CarnationPink}{\{}}}}{1}
{\}}{{{\color{CarnationPink}{\}}}}}{1}
{[}{{{\color{CarnationPink}{[}}}}{1}
{]}{{{\color{CarnationPink}{]}}}}{1},
,
}
\lstdefinelanguage{REACT}{
morekeywords={
export, import, extends,
this, state, props,
const, let, new,
if, else, true,
map, length, log, push,
put, get, allDocs, remove, post,
switch, case, return, throw,
bind, render, function,
then, req, res,
ul, li,
span, form,
button, label, input,
div,
Online, Offline, ContactForm
},
keywordstyle=\color{Cerulean}\bfseries,
sensitive=false,
identifierstyle=\color{SeaGreen},
comment=[l]{//},
morecomment=[s]{/*}{*/},
commentstyle=\color{Gray},
stringstyle=\color{CarnationPink},
morestring=[b]'
}
\lstset{
% backgroundcolor=\color{lightgray},
captionpos=b,
abovecaptionskip=0.5\baselineskip,
belowcaptionskip=1\baselineskip,
aboveskip=0.5\baselineskip,
basicstyle=\color{CarnationPink}\footnotesize,
keywordstyle=\color{Cerulean}\bfseries,
stringstyle=\color{Black},
identifierstyle=\color{SeaGreen},
commentstyle=\color{Gray},
showstringspaces=false,
tabsize=2,
numbersep=5pt,
frame=L,
rulecolor=\color{SeaGreen},
keepspaces=true
% xleftmargin=10pt,
}