-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
105 lines (80 loc) · 2.91 KB
/
main.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Template for lab reports used at STIMA
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Sets the document class for the document
% Openany is added to remove the book style of starting every new chapter on an odd page (not needed for reports)
\documentclass[10pt,english, openany]{book}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Loading packages that alter the style
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[]{color}
\usepackage{alltt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts}
\usepackage{amsmath}
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
\usepackage[titletoc]{appendix}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
% Set page margins
\usepackage[top=100pt,bottom=100pt,left=68pt,right=66pt]{geometry}
% Prevents LaTeX from filling out a page to the bottom
\raggedbottom
% Adding both languages
\usepackage[english, italian]{babel}
% All page numbers positioned at the bottom of the page
\usepackage{fancyhdr}
\fancyhf{} % clear all header and footers
\fancyfoot[C]{\thepage}
\renewcommand{\headrulewidth}{0pt} % remove the header rule
\pagestyle{fancy}
% Changes the style of chapter headings
%\usepackage{titlesec}
% \usepackage[Glenn]{fncychap}
% Adds table captions above the table per default
\usepackage{float}
\floatstyle{plaintop}
\restylefloat{table}
% Adds space between caption and table
\usepackage[tableposition=top]{caption}
% Adds hyperlinks to references and ToC
\usepackage{cite}
\usepackage{hyperref}
%\hypersetup{hidelinks,linkcolor = black} % Changes the link color to black and hides the hideous red border that usually is created
% If multiple images are to be added, a folder (path) with all the images can be added here
\graphicspath{ {Figures/} }
% Separates the first part of the report/thesis in Roman numerals
\frontmatter
% Algorithms
\usepackage[ruled,vlined]{algorithm2e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Starts the document
\begin{document}
%%% Selects the language to be used for the first couple of pages
\selectlanguage{english}
\author{Julian Eßer}
\title{Comparison of Optimal Control Frameworks in the Context of Bipedal Walking}
%%%%% Adds the title page
\begin{titlepage}
\maketitle
\end{titlepage}
% Adds a table of contents
\tableofcontents{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% Text body starts here!
\mainmatter
\include{Chapter/introduction}
\include{Chapter/libCrocoddyl}
\include{Chapter/libDrake}
\include{Chapter/comparison}
\include{Chapter/conclusion}
\pagebreak
% Adding a bibliography if citations are used in the report
\bibliographystyle{plain}
\bibliography{literature.bib}
% Adds reference to the Bibliography in the ToC
\addcontentsline{toc}{chapter}{\bibname}
\pagebreak
\end{document}