This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.tex
276 lines (224 loc) · 5.78 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
%!TEX root = ./main.tex
\documentclass[
paper=A4,
fontsize=11pt,
parskip=half,
listof=totoc,
draft=false,
headings=small,
oneside,
final,
numbers=noenddot
]{scrbook}
% Margins
\usepackage[
left=25mm,
right=25mm,
top=20mm,
bottom=30mm
]{geometry}
% Reduction of the spaces between headings and text
\RedeclareSectionCommand[afterskip=.0001\baselineskip]{section}
\RedeclareSectionCommand[afterskip=.0001\baselineskip]{subsection}
\RedeclareSectionCommand[afterskip=.0001\baselineskip]{subsubsection}
\RedeclareSectionCommand[beforeskip=.0001\baselineskip]{paragraph}
% Use UTF-8 char encoding
\usepackage[utf8]{inputenc}
% Font selection
\usepackage{fontspec}
% French spelling and French standard texts
\usepackage[french]{babel}
% 1/2-line spacing
\usepackage[onehalfspacing]{setspace}
% For the use of graphics
\usepackage{graphicx}
\usepackage{wrapfig}
% Add tikz
\usepackage{tikz}
\usetikzlibrary{
calc,
positioning
}
% Enable quotation
\usepackage[autostyle=true]{csquotes}
% Better tables
\usepackage{tabularx}
% Diagonally divided table cells
\usepackage{diagbox}
% Table cells across multiple rows or columns
\usepackage{multirow}
% Multiple column page
\usepackage{multicol}
% Possibility for line breaks in tables
\usepackage{makecell}
% Tables in landscape format
\usepackage{rotating}
% more line spacing in tables
\renewcommand{\arraystretch}{1.15}
% For the commands \ toprule, \ midrule and \ bottomrule, e.g. in tables
\usepackage{booktabs}
% Allows the use of colors
\usepackage{xcolor}
\definecolor{bluejcd}{RGB}{0,56,101}
% Links in PDF
\usepackage{hyperref}
\hypersetup{
colorlinks=false,
pdfborder={0 0 0},
pdftitle=\documenttitleun,
pdfauthor=\documentauthor,
}
% Improved URL handling with \ url {http: // ...}
\usepackage{url}
% Lists without spaces \ begin {compactlist} ... \ end {compactlist}
\usepackage{paralist}
% Allowing custom emunerate
\usepackage{enumitem}
% Output of the current time for the draft versions
\usepackage{datetime}
% Add Gantt diagram
\usepackage{pgfgantt}
% Configuration of the figure and table names
\usepackage[
format=hang,
font={footnotesize, sf},
labelfont=bf,
justification=raggedright,
singlelinecheck=false
]{caption}
% Macro for references under figures and tables
\newcommand{\source}[1]{\vspace{-.5\topsep}\caption*{\textsf{\textbf{Quelle:}} \textsf{#1}} }
% Place images at the exact location
\usepackage{float}
% Footnotes to headings
%\usepackage[bottom]{footmisc}
% Justification for caption
\usepackage[justification=centering]{caption}
% Quotes and bibliography
\usepackage[
style=authortitle-ibid,
giveninits=false,
natbib=true,
urldate=long,
url=true,
date=long,
dashed=false,
maxcitenames=2,
maxbibnames=99,
backend=biber,
autocite=footnote,
uniquelist=false,
ibidpage=true,
citetracker=true
]{biblatex}
\bibliography{library/library}
\DeclareLabeldate{
\field{year}
\field{date}
\field{eventdate}
\field{origdate}
\literal{nodate}
}
\AtEveryBibitem{
\ifentrytype{book}{
\clearfield{url}
\clearfield{urldate}
\clearfield{urlyear}
\clearfield{urlmonth}
\clearfield{urlday}
}{}
\ifentrytype{article}{
\clearfield{url}
\clearfield{urldate}
\clearfield{urlyear}
\clearfield{urlmonth}
\clearfield{urlday}
}{}
\ifentrytype{inproceedings}{
\clearfield{url}
\clearfield{urldate}
\clearfield{urlyear}
\clearfield{urlmonth}
\clearfield{urlday}
}{}
\ifentrytype{incollection}{
\clearfield{url}
\clearfield{urldate}
\clearfield{urlyear}
\clearfield{urlmonth}
\clearfield{urlday}
}{}
}
% Numbering level depth
\setcounter{secnumdepth}{3}
% Gliederungstiefe im Inhaltsverzeichnis
\setcounter{tocdepth}{2}
% Level of detail in the table of contents
\setuptoc{toc}{totoc}
% List of tables and figures with designation
\usepackage[titles]{tocloft}
% Abbreviations
\usepackage{acronym}
% Suppress certain warnings
% see http://tex.stackexchange.com/questions/51867/koma-warning-about-toc
\usepackage{scrhack}
% Source code listings
\usepackage[chapter,newfloat]{minted}
\setminted{
linenos=true,
frame=lines,
baselinestretch=1,
breaklines=true,
breakautoindent=true,
fontsize=\small
}
\newenvironment{code}{\captionsetup{type=listing}}{}
\SetupFloatingEnvironment{listing}{name=Listing,listname=List of listing}
% Number footnotes consecutively
\usepackage{chngcntr}
\counterwithout{footnote}{chapter}
% UTF8 characters for math environment
\usepackage{amsmath}
% Improves the referencing of chapters, figures etc.
\usepackage[french,capitalise]{cleveref}
% Pandoc Integration
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
% Define main font
\setmainfont{Arial}
% Define heading format
\tikzset{
% Styling of header text is done using key/value options for TikZ nodes. See
% section 16.4 of the PGF manual for a complete list of options that affect
% text.
headings/base/.style = {
% Zap node seperation, set text width and alignment.
outer sep = 0pt,
% Trim off 2/3rd of an em to compensate for the inner xsep which spaces the
% text nicely away from the left side, but causes the node to hang into the
% right margin.
text width = {\textwidth - 0.666em},
align = left,
text = white,
},
headings/chapter/.style = {
headings/base,
fill = bluejcd,
font = \Large
},
}
\newcommand{\colorboxedsec}[2]{%
\tikz{\node[headings/#1]{#2};}}
\setkomafont{chapter}{\colorboxedsec{chapter}}
% Add figure caption with source
\newcommand*{\captionsource}[2]{%
\caption[{#1}]{%
#1%
\\\hspace{\linewidth}%
\textbf{Source:} #2%
}%
}
% Add commands for i.e., e.g., et al.
\newcommand{\etal}{\textit{et al}.}
\newcommand{\ie}{\textit{i}.\textit{e}.}
\newcommand{\eg}{\textit{e}.\textit{g}.}