forked from MichaelGrupp/TTT
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.tex
229 lines (183 loc) · 6.11 KB
/
settings.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
%%%%%%%%%%%%%%%%%%%
% essentials
%%%%%%%%%%%%%%%%%%%
% use the scrbook KOMA document class
\documentclass[ pdftex,
a4paper, % DIN A4 format
titlepage, % separate title page
%draft, % draft version, no figures in PDF!
final, % final version
\printstyle , % see \def in main document (oneside or twoside)
11pt, % font size
DIV=calc,
]{scrbook}
\setkomafont{disposition}{\normalfont\bfseries}
\usepackage{scrhack}
% page geometry - define custom if needed...
\def\coverborderleft{20mm} % needed for title page - update: Druck mit Pappumschlag braucht's eher nicht
\usepackage[left=30mm , right=30mm, top=30mm, bottom=30mm]{geometry}
% typesetting
\usepackage{palatino} % Palatino font with sans-serif \sffamily Helvetica
\usepackage[utf8]{inputenc} % Umlaute
\usepackage[T1]{fontenc} % extended character set
\parindent0pt % no indentation of the first line
\parskip1ex % gap between paragraphs
\usepackage{setspace} % package for line spacing settings
\singlespacing % 1,0
%\onehalfspacing % 1,5
%\doublespacing % 2,0
% language for automated stuff, like "List of Figures" or "Abbildungsverzeichnis"
\usepackage[english]{babel}
%\usepackage[german=quotes]{csquotes} % Deutsche Anführungszeichen
% BibTex
\usepackage[numbers]{natbib}
\bibliographystyle{plainnat}
% Advanced time (optional)
\usepackage{advdate}
%%%%%%%%%%%%%%%%%%%
% poem
%%%%%%%%%%%%%%%%%%%
\usepackage{verse}
\usepackage{attrib}
%%%%%%%%%%%%%%%%%%%
% figures & co
%%%%%%%%%%%%%%%%%%%
% graphics and figures
\usepackage{graphicx, tikz, pgfplots}
\graphicspath{{images/}} % additional path(s) for loading images
\usepackage{rotating} % needed for \begin{sidewaysfigure} ...
% insert PDF files
\usepackage{pdfpages}
% settings for PDF Pages to accept additional versioned PDF files
\pdfminorversion=6
\pdfcompresslevel=9
\pdfobjcompresslevel=9
% define custom colors
\usepackage{xcolor}
\definecolor{gray1}{gray}{0.92}
\definecolor{darkgreen}{rgb}{0,0.5,0}
\definecolor{urlLinkColor}{rgb}{0,0,0.5}
\definecolor{LinkColor}{rgb}{0,0,0}
\definecolor{ListingBackground}{rgb}{0.85,0.85,0.85}
\usepackage{color}
\definecolor{LinkColor}{rgb}{0.1,0.1,0.1}
\definecolor{ListingBackground}{rgb}{0.98,0.98,0.98}
\definecolor{gray}{rgb}{0.4,0.4,0.4}
\definecolor{darkblue}{rgb}{0.0,0.0,0.6}
\definecolor{cyan}{rgb}{0.0,0.6,0.6}
%%%%%%%%%%%%%%%%%%%
% layout tools
%%%%%%%%%%%%%%%%%%%
% for \textblock on title page
\usepackage[absolute]{textpos}
%\setlength{\TPHorizModule}{1mm}
%\setlength{\TPVertModule}{\TPHorizModule}
% matching font color
\newcommand{\UniversitaetLogoBreite}{19mm}
\newcommand{\UniversitaetLogoHoehe}{19cm}
\definecolor{UniversitaetFarbe}{RGB}{16,66,122}
% blindtext generator
\usepackage{lipsum}
% advanced conditionals
\usepackage{pdftexcmds}
%%%%%%%%%%%%%%%%%%%
% math
%%%%%%%%%%%%%%%%%%%
\usepackage{amssymb}
\usepackage{amsmath}
% custom argmin, argmax
\newcommand{\argmax}[1]{\underset{#1}{\operatorname{arg}\,\operatorname{max}}\;}
\newcommand{\argmin}[1]{\underset{#1}{\operatorname{arg}\,\operatorname{min}}\;}
%%%%%%%%%%%%%%%%%%%
% code listings
%%%%%%%%%%%%%%%%%%%
\usepackage{listings}
\lstloadlanguages{TeX, C++, XML, Matlab, Java, Python, C} % add languages if needed
\lstset{%
language=[LaTeX]TeX, %
numbers=left, % line numbers left
stepnumber=1, % number every line
numbersep=5pt, % distance of line numbers to the code
numberstyle=\tiny, % size of the line numbers
breaklines=true, % break lines if necessary
breakautoindent=true, % indent lines after line breaks
postbreak=\space, % line break at spaces
tabsize=2, % size of tab indentation
basicstyle=\small\ttfamily,
showspaces=false, % don't show spaces
columns=fullflexible,
showstringspaces=false, % ...also not in 'strings' / "strings"
extendedchars=true, % show all Latin1 chars
backgroundcolor=\color{ListingBackground} % background color of the listing
}
% captions for listings
\usepackage{caption}
\DeclareCaptionFont{white}{\color{white}}
\DeclareCaptionFormat{listing}{\colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{\parbox{\textwidth}{\hspace{15pt}#1#2#3}}}
\captionsetup[lstlisting]{
format=listing,
labelfont=white,
textfont=white,
singlelinecheck=false,
margin=0pt,
font={footnotesize}
}
%%%%%%%%%%%%%%%%%%%
% pseudo-code
%%%%%%%%%%%%%%%%%%%
\usepackage[ruled,vlined]{algorithm2e}
\DontPrintSemicolon % suppresses semicolon at the end of each line
%%%%%%%%%%%%%%%%%%%
% images side-by-side
%%%%%%%%%%%%%%%%%%%
\usepackage{subcaption}
%%%%%%%%%%%%%%%%%%%
% pretty tables
%%%%%%%%%%%%%%%%%%%
\usepackage{booktabs}
%%%%%%%%%%%%%%%%%%%
% enumeration
%%%%%%%%%%%%%%%%%%%
\usepackage{enumitem}
%%%%%%%%%%%%%%%%%%%
% header & footer
%%%%%%%%%%%%%%%%%%%
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyfoot{}
\renewcommand{\headrulewidth}{0.4pt} % line for header - 0.0pt = no line
\renewcommand{\footrulewidth}{0.0pt} % line for footer - 0.0pt = no line
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\quad#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\quad#1}}
\fancyhead[LO]{\textit{\rightmark}}
\fancyhead[RO]{\textit{\thepage}}
\def\twoside{twoside} % macro needed
\ifx \printstyle \twoside
% adapt footers and headers if two-sided
\fancyhead[LE]{\textit{\thepage}}
\fancyhead[RE]{\textit{\rightmark}}
\fi
%%%%%%%%%%%%%%%%%%%
% hyperref
%%%%%%%%%%%%%%%%%%%
\usepackage[
pdftitle={\titleFirstLanguage},
pdfauthor={\authorname},
pdfsubject={\titleFirstLanguage},
pdfcreator={MiKTeX, LaTeX with hyperref and KOMA-Script based on template by Michael Grupp ( github.com/MichaelGrupp/TTT ) and modifications
by Malte Büttner ( https://github.com/mbuet2ner/BambergThesis )},
pdfkeywords={Abschlussarbeit, Thesis, University of Bamberg},
pdfpagemode=UseOutlines,%
pdfdisplaydoctitle=true,%
pdflang=de%
]{hyperref}
\hypersetup{%
colorlinks=true,% colored links without border
linkcolor=LinkColor,%
citecolor=LinkColor,%
filecolor=LinkColor,%
menucolor=LinkColor,%
urlcolor=LinkColor,%
bookmarksnumbered=true%
}