-
Notifications
You must be signed in to change notification settings - Fork 4
/
packages.tex
275 lines (207 loc) · 7.07 KB
/
packages.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
% http://tex.stackexchange.com/questions/51867/koma-warning-about-toc
% CTAN: http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script/doc
\usepackage{scrhack}
% marginnote – Notes in the margin, even where \marginpar fails
% http://www.ctan.org/pkg/marginnote
\usepackage{marginnote}
% scrlayer-scrpage – Define and manage page styles
% https://www.ctan.org/pkg/scrlayer-scrpage
\usepackage[]{scrlayer-scrpage}
% fix-cm – Permit Computer Modern fonts at arbitrary sizes
% https://www.ctan.org/pkg/fix-cm
\RequirePackage{fix-cm}
% seqsplit – Split long sequences of characters in a neutral way
% https://www.ctan.org/pkg/seqsplit
\usepackage{seqsplit}
% dirtree – Display trees in the style of windows explorer
% https://www.ctan.org/pkg/dirtree
\usepackage{dirtree}
% xcolor – Driver-independent color extensions for LaTeX and pdfLaTeX
% https://www.ctan.org/pkg/xcolor
\usepackage[table]{xcolor}
% tcolorbox – Coloured boxes, for LaTeX examples and theorems, etc
% https://ctan.org/pkg/tcolorbox
\usepackage[
many,%
breakable,%
]{tcolorbox}
% etoolbox – e-TeX tools for LaTeX
% https://www.ctan.org/pkg/etoolbox
\usepackage{etoolbox}
% http://tex.stackexchange.com/questions/112404/reliable-code-for-automatic-noindent-after-specific-environments
\makeatletter
\newcommand*\NoIndentAfterEnv[1]{%
\AfterEndEnvironment{#1}{\par\@afterindentfalse\@afterheading}}
\makeatother
\NoIndentAfterEnv{code}
% minted – Highlighted source code for LaTeX
% https://www.ctan.org/pkg/minted
\usepackage[
chapter,%
% newfloat=true,
]{minted}
\tcbset{
breakable,%
% before skip=1em,%
% after skip=1em,%
boxrule=0.5pt,%
colback=white,%
colframe=black,%
skin=enhanced,%
% float,
}
\BeforeBeginEnvironment{minted}{\renewcommand{\fcolorbox}[4][]{#4}\begin{tcolorbox}}
\AfterEndEnvironment{minted}{\end{tcolorbox}}
\usepackage{xpatch}
\xpretocmd{\inputminted}{\begin{tcolorbox}}{}{}
\xapptocmd{\inputminted}{\end{tcolorbox}}{}{}
\setminted[]{
autogobble=true,% remove (gobble) all common leading whitespace from code
breaklines=true,% break lines
breakafter=-/.\\,%
% breakanywhere=true,% break lines anywhere
linenos=true,% show line numbers
xleftmargin=2em,% Abstand links
framerule=0pt,%
fontsize=\footnotesize,%
}
\setminted[php]{startinline}% PHP: highlight also if no <?php is present
% Formatierung der Zeilennummern
\renewcommand{\theFancyVerbLine}{%
\sffamily\textcolor[rgb]{0.5,0.5,1.0}{%
\footnotesize\oldstylenums{%
\arabic{FancyVerbLine}%
}%
}%
}
\newmintedfile{apache}{
autogobble=true,% remove (gobble) all common leading whitespace from code
breaklines=true,% break lines
breakafter=-/.,%
% breakanywhere=true,% break lines anywhere
linenos=true,% show line numbers
xleftmargin=2em,% Abstand links
framerule=0pt,%
}
\newmintedfile{bash}{
autogobble=true,% remove (gobble) all common leading whitespace from code
breaklines=true,% break lines
breakafter=-/.,%
% breakanywhere=true,% break lines anywhere
linenos=true,% show line numbers
xleftmargin=2em,% Abstand links
framerule=0pt,%
}
\newmintedfile{dockerfile}{
autogobble=true,% remove (gobble) all common leading whitespace from code
breaklines=true,% break lines
breakafter=-/.,%
% breakanywhere=true,% break lines anywhere
linenos=true,% show line numbers
xleftmargin=2em,% Abstand links
framerule=0pt,%
}
\newmintedfile{php}{
autogobble=true,% remove (gobble) all common leading whitespace from code
breaklines=true,% break lines
breakafter=-/.:\\,%
% breakanywhere=true,% break lines anywhere
linenos=true,% show line numbers
xleftmargin=2em,% Abstand links
framerule=0pt,%
}
\newmintedfile{yaml}{
autogobble=true,% remove (gobble) all common leading whitespace from code
breaklines=true,% break lines
breakafter=-_/.:\\,%
% breakanywhere=true,% break lines anywhere
linenos=true,% show line numbers
xleftmargin=2em,% Abstand links
framerule=0pt,%
}
\newcommand{\lstlistingname}{Listing}
% textcomp – LaTeX support for the Text Companion fonts
% https://www.ctan.org/pkg/textcomp?lang=de
\usepackage{textcomp}
% geometry – Flexible and complete interface to document dimensions
% http://www.ctan.org/pkg/geometry
\usepackage{geometry}
\geometry{
top=30mm,% Oben
bottom=20mm,% Unten
inner=25mm,% Innen
outer=25mm,% Außen
bindingoffset=15mm,% Bundsteg
nomarginpar,% Kein Platz für Randnotizen
%includeheadfoot,
showframe=false,% shows visible frames for the text area and page, and the lines for the head and foot on the first page
}
% inputenc – Accept different input encodings
% UTF8 als Enconding verwenden
% https://www.ctan.org/pkg/inputenc
\usepackage[utf8]{inputenc}
% fontenc – Standard package for selecting font encodings
% Nötig um Wörter mit Umlauten korrekt umzubrechen
% https://www.ctan.org/pkg/fontenc
\usepackage[T1]{fontenc}
% babel – Multilingual support for Plain TeX or LaTeX
% Neue deutsche Rechtschreibung
% https://www.ctan.org/pkg/babel
\usepackage[ngerman]{babel}
% marvosym – Martin Vogel's Symbols (marvosym) font
% https://www.ctan.org/pkg/marvosym
\usepackage{marvosym}
\DeclareUnicodeCharacter{20AC}{\EUR{}}
\clubpenalty = 10000
%\widowpenalty = 10000
\displaywidowpenalty = 10000
% calc – Simple arithmetic in LaTeX commands
% https://www.ctan.org/pkg/calc
\usepackage{calc}
% graphicx – Enhanced support for graphics
% https://www.ctan.org/pkg/graphicx
\usepackage{graphicx}
% float – Improved interface for floating objects
% https://www.ctan.org/pkg/float
\usepackage{float}
% datetime2 – Formats for dates, times and time zones
% https://www.ctan.org/pkg/datetime2
\usepackage[useregional]{datetime2}
% tabularx – Tabulars with adjustable-width columns
% https://www.ctan.org/pkg/tabularx
\usepackage{tabularx}
% booktabs – Publication quality tables in LaTeX
% https://www.ctan.org/pkg/booktabs
\usepackage{booktabs}
% ragged2e – Alternative versions of "ragged"-type commands
% https://www.ctan.org/pkg/ragged2e
\usepackage{ragged2e}
% pgfplots – Create normal/logarithmic plots in two and three dimensions
% https://www.ctan.org/pkg/pgfplots
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
% enumitem – Control layout of itemize, enumerate, description
% https://www.ctan.org/pkg/enumitem
\usepackage{enumitem}
\setlist{noitemsep}
%\setlist[itemize]{leftmargin=*}%Kein Einzug
% setspace – Set space between lines
% Standard Zeilenabstand: 1,5 zeilig
% https://www.ctan.org/pkg/setspace
\usepackage{setspace}
\onehalfspacing
% csquotes – Context sensitive quotation facilities
% https://www.ctan.org/pkg/csquotes
\usepackage{csquotes}
% todonotes – Marking things to do in a LATEX document
% https://www.ctan.org/pkg/todonotes
\setlength{\marginparwidth}{2.2cm}
\usepackage[
german,%
]{todonotes}
\presetkeys{todonotes}{fancyline, color=red!77}{}
% Appendix
\usepackage[header,title]{appendix}
\renewcommand{\appendixname}{Anhang}
\renewcommand{\appendixtocname}{Anhang}
\renewcommand{\appendixpagename}{Anhang}