-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesis.tex
289 lines (245 loc) · 7.91 KB
/
thesis.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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
\documentclass[11pt,a4paper,oldfontcommands]{memoir}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}
\usepackage[dvips]{graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{todonotes}
\usepackage{times}
\usepackage{amsmath}
\usepackage{natbib}
\usepackage{titlesec}
\usepackage{array}
\usepackage{listings}
\usepackage{pgf-umlsd}
\usepackage{parskip}
\usepackage{gensymb}
\usepackage{indentfirst}
\usepackage{tabularx}
\usepackage[htt]{hyphenat}
\usepackage[toc,nopostdot,nonumberlist]{glossaries}
\setlength{\parskip}{10pt} %add space between paragraphs
\setlength{\parindent}{0cm} % can remove all indentations
\def\@listi{%
% default settings for base LaTeX classes at 10pt:
\parsep 4pt plus 2pt minus 1pt
\topsep 8pt plus 2pt minus 4pt
\itemsep 4pt plus 2pt minus 1pt
% your settings:
\parskip 2pt plus 1pt minus 1pt
}
%%% Fix the issue with \mess redefinition when importing msc
\let\msg\mess
\let\mess\undefined
\newcommand\draft{0}
\definecolor{gitgreen}{HTML}{55A532}
\definecolor{gitred}{HTML}{BD2C00}
\definecolor{gitgray}{HTML}{D0D0D0}
\newcommand\crule[3][black]{\textcolor{#1}{\rule{#2}{#3}}}
\newcommand\grule{\crule[gitgreen]{.25cm}{.25cm}\crule[white]{.05cm}{.25cm}}
\newcommand\rrule{\crule[gitred]{.25cm}{.25cm}\crule[white]{.05cm}{.25cm}}
\newcommand\garule{\crule[gitgray]{.25cm}{.25cm}\crule[white]{.05cm}{.25cm}}
\lstset{
language = C,
basicstyle=\ttfamily\footnotesize, % the size of the fonts that are used for the code
stepnumber=1, % the step between two line-numbers. If it is 1 each line will be numbered
commentstyle=\color{ForestGreen}, %color of comments
keywordstyle=\color{blue}\bfseries,
numbersep=10pt, % how far the line-numbers are from the code
tabsize=2, % tab size in blank spaces
extendedchars=true, %
breaklines=true, % sets automatic line breaking
captionpos=b, % sets the caption-position to top
mathescape=true,
showspaces=false,
showtabs=false,
%xleftmargin=17pt,
framexleftmargin=17pt,
framexrightmargin=17pt,
framexbottommargin=15pt,
framextopmargin=15pt,
showstringspaces=false
}
%%%%%%%%%%%TODO{On bloque les listings à se mettre sur une seule page ?}
% \lstnewenvironment{code}[1][]%
% {\noindent\minipage{\linewidth}\medskip
% \lstset{basicstyle=\ttfamily\footnotesize,#1}}
% {\endminipage}
\renewcommand\lstlistlistingname{List of Listings}
\newlistof{lstlistoflistings}{lol}{\lstlistlistingname}
\newcommand\typestyle{\rmfamily\mdseries\upshape}
\newcommand\addtypes[1]{%
\lstset{morekeywords=[3]{#1}}}
\newlength{\textlarg}
\newcommand{\barre}[1]{%
\settowidth{\textlarg}{#1}
#1\hspace{-\textlarg}\rule[0.5ex]{\textlarg}{0.5pt}}
\usepackage[
breaklinks=true,colorlinks=true,
%linkcolor=blue,urlcolor=blue,citecolor=blue,% PDF VIEW
linkcolor=black,urlcolor=black,citecolor=black,% PRINT
bookmarks=true,bookmarksopenlevel=2]{hyperref}
\usepackage{breakurl}
\usepackage{geometry}
% PDF VIEW
% \geometry{total={210mm,297mm},
% left=25mm,right=25mm,%
% bindingoffset=0mm, top=25mm,bottom=25mm}
% PRINT
\geometry{total={210mm,297mm},
left=20mm,right=20mm,
bindingoffset=10mm, top=25mm,bottom=25mm}
\usepackage{bytefield}
\usepackage{msc}
\OnehalfSpacing
%\linespread{1.3}
\definecolor{gray75}{gray}{0.75}
\newcommand{\hsp}{\hspace{20pt}}
\titleformat{\chapter}[hang]{\Huge\bfseries}{\thechapter\hsp\textcolor{Blue}{|}\hsp}{0pt}{\Huge\bfseries}
\titlespacing*{\chapter}{0pt}{0pt}{40pt}
%%% CHAPTER'S STYLE
%\chapterstyle{bianchi}
%\chapterstyle{ger}
%\chapterstyle{madsen}
%\chapterstyle{ell}
%%% STYLE OF SECTIONS, SUBSECTIONS, AND SUBSUBSECTIONS
\setsecheadstyle{\Large\bfseries\sffamily\raggedright}
\setsubsecheadstyle{\large\bfseries\sffamily\raggedright}
\setsubsubsecheadstyle{\bfseries\sffamily\raggedright}
%%% STYLE OF PAGES NUMBERING
\pagestyle{companion}\nouppercaseheads
%\pagestyle{headings}
%\pagestyle{Ruled}
%\pagestyle{plain}\nouppercaseheads
%\makepagestyle{companion}
\makeevenfoot{companion}{\thepage}{\textsc{Multipath DTLS: Design and Implementation}}{}
\makeoddfoot{companion}{}{Q. \textsc{Devos} \& L. \textsc{Fortemps de Loneux}}{\thepage}
\makeevenhead{companion}{\leftmark}{}{}
\makeoddhead{companion}{}{}{\rightmark}
\copypagestyle{minechapter}{plain}
\makeevenhead{minechapter}{}{}{}
\makeoddhead{minechapter}{}{}{}
\makeevenfoot{minechapter}{\thepage}{\textsc{Multipath DTLS: Design and Implementation}}{}
\makeoddfoot{minechapter}{}{Q. \textsc{Devos} \& L. \textsc{Fortemps de Loneux}}{\thepage}
\aliaspagestyle{chapter}{minechapter}
\maxsecnumdepth{subsection} % chapters, sections, and subsections are numbered
\maxtocdepth{subsection} % chapters, sections, and subsections are in the Table of Contents
%%%% COMMANDS %%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CHANGE HERE %%%%
\renewcommand\title{Multipath DTLS:\\\vspace{0.5cm} Design and Implementation}
\newcommand\options{Networking and Security}
\newcommand\supervisor{Pr. Olivier \textsc{Bonaventure}}
\newcommand\supervisortwo{Pr. Olivier \textsc{Pereira}}
\newcommand\reader{Florentin \textsc{Rochet}}
\newcommand\years{2014-2015}
%%%% BEGIN %%%%
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
\makeglossaries
\begin{document}
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
% TITLEPAGE
%
% due to variety of titlepage schemes it is probably better to make titlepage manually
%
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
\if0\draft
%%%% COVER %%%%
\thispagestyle{empty}
\calccentering{\unitlength}
\begin{adjustwidth*}{\unitlength}{-\unitlength}
\noindent\begin{minipage}{.25\textwidth}
\begin{center}
\noindent\includegraphics[height=3cm]{images/ucl.eps}
\end{center}
\end{minipage}
\begin{minipage}{.49\textwidth}
\begin{center}
\begin{vplace}
UNIVERSITE CATHOLIQUE DE LOUVAIN
\\~\\~
ECOLE POLYTECHNIQUE DE LOUVAIN
\end{vplace}
\end{center}
\end{minipage}
\begin{minipage}{.25\textwidth}
\begin{center}
\begin{vplace}
\hfill\includegraphics[height=1.5cm]{images/epl.eps}
\end{vplace}
\end{center}
\end{minipage}
\end{adjustwidth*}
\vspace{4.5cm}
\begin{center}
\bfseries{\scshape{\Huge{\title}}}
\end{center}
\vspace{4.5cm}
\begin{minipage}{.5\textwidth}
\begin{tabular}{ll}
Supervisors: & \supervisor
\\ & \supervisortwo
\\ Reader: & \reader
\end{tabular}
\\~\\~\\~\\~
\end{minipage}
\begin{minipage}{.5\textwidth}
Thesis submitted for the Master's degree
\\ in computer science and engineering
\\ option: \options
\\~\\~
\begin{tabular}{ll}
by & Quentin \textsc{Devos} \\
& Loïc \textsc{Fortemps de Loneux}
\end{tabular}
\end{minipage}
\vfill
\begin{center}
Louvain-la-Neuve
\\ Academic year \years - June
\end{center}
%%%% END COVER %%%%
\include{acknowledgement}
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
\pagenumbering{roman}
\include{abstract} % Corrected
\cleardoublepage
\tableofcontents*
\cleardoublepage
\listoffigures*
\cleardoublepage
\lstlistoflistings*
\cleardoublepage
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%---%%%
\include{glossary}
\pagenumbering{arabic}
\include{intro} % Corrected
\markboth{}{}
\part{State of the Art}
\include{dtls} % Corrected
\include{mprtp} % Corrected
\markboth{}{}
\part{Multipath DTLS}
\include{design} % Corrected
\include{implem} % rereading
\include{performances} % rereading
\include{conclusion} % rereading
\fi
\if0\draft
\bibliographystyle{unsrt}
\bibliography{articles,rfcs}
\glsaddall
\printglossaries
\clearpage
\markboth{}{}
\pagenumbering{Roman}
\addcontentsline{toc}{part}{Appendices}
\part*{Appendices}
\appendix
\include{appendices/campagnol} % Corrected
\include{appendices/summary} % Corrected
\fi
\include{appendices/graph_process}
\include{appendices/contrib}
\end{document}