This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpreamble.tex
101 lines (86 loc) · 2.99 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
% Lorem Ipsum
\usepackage{lipsum}
% Language and Font
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman, english]{babel}
\usepackage{lmodern}
\usepackage{xcolor}
% Mathematical Symbols
\usepackage{amssymb}
% Images
\usepackage{graphicx} % for including graphics
\graphicspath{ {img/} } % root directory for graphics
\usepackage{subcaption} % figures inside figures (e.g. for side by side figures)
\usepackage{float} % required for positioning figures with [H] and more
\usepackage{wrapfig} % floating figures
% Import PDFs
\usepackage{pdfpages}
\usepackage[headsepline, footsepline, plainfootsepline]{scrlayer-scrpage}
\clearpairofpagestyles
\automark{chapter}
\ihead{\leftmark{}}
\ofoot[\thepage]{\thepage}
% Section Headers
\usepackage{titlesec}
\titleformat{\chapter}[display] % Remove 'Chapter X' from headings
{\normalfont\bfseries}{}{0pt}{\Huge}
\usepackage{parskip}
\setlength{\parindent}{0cm} % No identitation after new paragraphs
\setlength{\headheight}{14.5pt}
\setlength{\marginparwidth}{2cm}
\titlespacing*{\chapter}{0pt}{-50pt}{20pt} % Change vertical spacing for Chapter Headings (default 50pt before and 40pt after)
% Change paragraphs, so that they can be displayed as title
\makeatletter
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
{-2.5ex\@plus -1ex \@minus -.25ex}%
{1.25ex \@plus .25ex}%
{\normalfont\normalsize\itshape\bfseries}}
\makeatother
% Todo notes
\usepackage[ngerman,linecolor=gray,bordercolor=gray,backgroundcolor=yellow]{todonotes}
% Code Highlighting
\usepackage{listings}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\lstset{ %
basicstyle=\ttfamily, % size of fonts used for the code
breaklines=true, % automatic line breaking only at whitespace
captionpos=b, % sets the caption-position to bottom
commentstyle=\color{mygreen}, % comment style
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
keywordstyle=\color{blue}, % keyword style
stringstyle=\color{mymauve}, % string literal style
extendedchars=true,
frame=single,
frameround=tttt,
framexleftmargin=1pt,
framexrightmargin=1pt
}
% Hyperlinks
\usepackage[hidelinks, pdftex]{hyperref}
\hypersetup{%
pdftitle={Formula Student - Path Planning Algorithm},
% Use \plainauthor for final version.
pdfauthor={Marco Forster and Dan Hochstrasser},
pdfdisplaydoctitle=true, % For Accessibility
bookmarksnumbered,
pdfstartview={FitH}
}
% Enumerated list modification
\usepackage{enumitem}
% Diagrams
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usepackage{pgfplotstable}
\usepackage{sfmath}
\usetikzlibrary{patterns}
% Removes Justification in bibliography and formats better than \raggedright
\usepackage{ragged2e}
% Glossaries
\usepackage[style=long,nonumberlist,toc,section=section,xindy,acronym,nomain]{glossaries}
\newglossary[ch1]{term}{ch2}{ch3}{List of Terms}
\makenoidxglossaries
\loadglsentries{glossary.tex}
% Tables
\usepackage{array, tabularx, booktabs}