-
Notifications
You must be signed in to change notification settings - Fork 3
/
preamble.tex
141 lines (94 loc) · 3.54 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
%%%%% General packages & Utilities
% Allow for German "Umlaute"
% Note that for this to work, all files containing Umlaute must be saved in the UTF-8 file format!
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
% Tables
\usepackage{booktabs}
% Make todo notes in the thesis.
% Simply change the status to "final" to suppress printing of the notes and their list.
\usepackage[status=draft]{fixme}
% Useful in defining custom shortcut commands
\usepackage{xspace}
% Load english and german language hyphenation and options.
% The language put last here is selected as the main language for the document,
% specifying keywords such as Table of Contents / Inhaltsverzeichnis, etc.
\usepackage[ngerman, english]{babel}
\usepackage{csquotes}
%%%%% Style
% Font type
\usepackage{lmodern}
% Line spacing
\usepackage{setspace}
%\singlespacing
\onehalfspacing
%\doublespacing
%%%%% Graphics packages
\usepackage{graphicx}
%% add subfolder containing figures to the graphics path
\graphicspath{{figures/}}
% Subfigures
\usepackage{caption}
\usepackage{subcaption}
% Powerful package for programmatically producing nice vector graphics
\usepackage{tikz}
% Package for easily drawing electrical circuits (uses tikz)
\usepackage[european]{circuitikz}
% Package for creating plots in latex using tikz internally
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}
\usepgfplotslibrary{units}
%%%%% Maths and computer science packages
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amsfonts}
\usepackage{mathtools}
% introduce new type of theorems (uses amsthm package)
\newtheorem{lemma}{Lemma}
% Improvement of \left and \right due to
% http://tex.stackexchange.com/questions/2607/spacing-around-left-and-right
\usepackage{mleftright}
% Produce pseudo code sections
% See http://tex.stackexchange.com/a/230789/64293 for a discussion of the various
% packages available for this task.
\usepackage{algorithm}
\usepackage{algpseudocode}
% Correctly display SI units
\usepackage{siunitx}
%%%%% Referencing, Glossary, Bibliography
% Allow for cross-referencing other parts of this documents
% -- hidelinks prevents ugly red boxes around clickable items. Alternatively, these could be styled differently.
% -- pdfusetitle adds author and title information to meta data
\usepackage[hidelinks, pdfusetitle]{hyperref}
% Easier cross-referencing, using the \cref and \Cref commands
\usepackage{cleveref}
% Glossaries must be loaded after hyperref
\usepackage[style = long, nolist, acronym, nonumberlist, nopostdot, toc]{glossaries}
\newglossary{symbols}{sym}{sbl}{List of Mathematical Symbols}
\makenoidxglossaries
% Bibliography
\usepackage[backend=biber, style=ieee, sorting=nyt]{biblatex}
% Change the separator between title and subtitle of a book from comma to colon
\renewcommand{\subtitlepunct}{\addcolon\addspace}
% Make the space between author names and actual reference in the \textcite
% command non-breakable.
\renewcommand\namelabeldelim{\addnbspace}
\addbibresource{references.bib}
% Add lines to table of contents for list of figures, tables, etc. and for bibliography.
% Alternatively (e.g. when not using a KOMA document class), this could be achieved by
% adding
% \addcontentsline{toc}{chapter}{List of Figures}
% before \listoffigures, and similarly for the others.
\KOMAoptions{
listof=totoc,
bibliography=totoc
}
%%%%% Abbreviations and macros
% Order must be first macros then glossary, since the latter uses the former
\input{macros}
\loadglsentries{glossary}
%%%%% Emacs-related stuff
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "main"
%%% End: