This repository has been archived by the owner on Apr 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.tex
151 lines (132 loc) · 4.02 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
\PassOptionsToPackage{table,svgnames,dvipsnames}{xcolor}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[sc]{mathpazo}
\usepackage[ngerman,american]{babel}
\usepackage[autostyle]{csquotes}
\usepackage[%
backend=biber,
url=true,
style=numeric,
maxnames=4,
minnames=3,
maxbibnames=99,
giveninits,
uniquename=init]{biblatex}
\usepackage{graphicx}
\usepackage{scrhack} % necessary for listings package
\usepackage{listings}
\usepackage{lstautogobble}
\usepackage{tikz}
\usepackage{pgf}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepackage{booktabs}
\usepackage[final]{microtype}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[printonlyused]{acronym}
\usepackage[hidelinks]{hyperref} % hidelinks removes colored boxes around references and links
\AtBeginDocument{%
\hypersetup{
pdftitle=\getTitle,
pdfauthor=\getAuthor,
}
}
\usepackage{ifthen}
\usepackage[hhmmss]{datetime}
\usepackage{amsmath}
\usepackage{bussproofs}
% for fachschaft_print.pdf
\makeatletter
\if@twoside
\typeout{TUM-Dev LaTeX-Thesis-Template: twoside}
\else
\typeout{TUM-Dev LaTeX-Thesis-Template: oneside}
\fi
\makeatother
\addto\extrasamerican{
\def\lstnumberautorefname{Line}
\def\chapterautorefname{Chapter}
\def\sectionautorefname{Section}
\def\subsectionautorefname{Subsection}
\def\subsubsectionautorefname{Subsubsection}
}
\addto\extrasngerman{
\def\lstnumberautorefname{Zeile}
}
\renewcommand{\dateseparator}{-}
%\usepackage{background}
%\IfFileExists{git_ref.tex}{%
% \newcommand{\draft}{\upshape{\texttt{Draft: \input{git_ref.tex} {\yyyymmdddate\today}T\currenttime } } }
% \backgroundsetup{
% angle=0,
% contents={
% \begin{tikzpicture}
% \node[text=red, above=-1cm] at (current page.north) {\draft};
% \node[text=red, below=-1cm] at (current page.south) {\draft};
% \end{tikzpicture}
% },
% opacity=1,
% scale=1
% }
%}
% Themes
\ifthenelse{\equal{\detokenize{dark}}{\jobname}}{%
% Dark theme
\newcommand{\bg}{black} % background
\newcommand{\fg}{white} % foreground
\usepackage[pagecolor=\bg]{pagecolor}
\color{\fg}
}{%
% Light theme
\newcommand{\bg}{white} % background
\newcommand{\fg}{black} % foreground
}
\bibliography{main}
\setkomafont{disposition}{\normalfont\bfseries} % use serif font for headings
\linespread{1.05} % adjust line spread for mathpazo font
% Add table of contents to PDF bookmarks
\BeforeTOCHead[toc]{{\cleardoublepage\pdfbookmark[0]{\contentsname}{toc}}}
% Define TUM corporate design colors
% Taken from http://portal.mytum.de/corporatedesign/index_print/vorlagen/index_farben
\definecolor{TUMBlue}{HTML}{0065BD}
\definecolor{TUMSecondaryBlue}{HTML}{005293}
\definecolor{TUMSecondaryBlue2}{HTML}{003359}
\definecolor{TUMBlack}{HTML}{000000}
\definecolor{TUMWhite}{HTML}{FFFFFF}
\definecolor{TUMDarkGray}{HTML}{333333}
\definecolor{TUMGray}{HTML}{808080}
\definecolor{TUMLightGray}{HTML}{CCCCC6}
\definecolor{TUMAccentGray}{HTML}{DAD7CB}
\definecolor{TUMAccentOrange}{HTML}{E37222}
\definecolor{TUMAccentGreen}{HTML}{A2AD00}
\definecolor{TUMAccentLightBlue}{HTML}{98C6EA}
\definecolor{TUMAccentBlue}{HTML}{64A0C8}
% Settings for pgfplots
\pgfplotsset{compat=newest}
\pgfplotsset{
% For available color names, see http://www.latextemplates.com/svgnames-colors
cycle list={TUMBlue\\TUMAccentOrange\\TUMAccentGreen\\TUMSecondaryBlue2\\TUMDarkGray\\},
}
% Settings for lstlistings
\lstset{%
basicstyle=\ttfamily,
columns=fullflexible,
autogobble,
keywordstyle=\bfseries\color{TUMBlue},
stringstyle=\color{TUMAccentGreen},
captionpos=b
}
\usepackage[noabbrev]{cleveref}
\usepackage{algpseudocode}
% for the pgf plots by mpl
\def\mathdefault#1{#1}
\usepackage{xfrac}
\usepackage{multirow}
\usepackage{float}
\newfloat{lstfloat}{htbp}{lop}
\floatname{lstfloat}{Listing}
\crefname{lstfloat}{listing}{listings}
\Crefname{lstfloat}{Listing}{Listings}
\newcommand{\inlineimg}[1]{\raisebox{-0.25em}{\includegraphics[clip,height=1em]{#1}}}