-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.tex
389 lines (333 loc) · 11.5 KB
/
header.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
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
% raccourcis de feignasse \o/
\newcommand\radon{\citeauthor{radon1917akad}\xspace}
\newcommand\matus{\citeauthor{matus1993pami}\xspace}
\newcommand\katz{\citeauthor{katz1978springer}\xspace}
\newcommand\reed{\citeauthor{reed1960jsiam}\xspace}
\newcommand\shannon{\textsc{Shannon}\xspace}
\newcommand\hamming{\textsc{Hamming}\xspace}
\newcommand\vander{\textsc{Vandermonde}\xspace}
\newcommand\cauchy{\textsc{Cauchy}\xspace}
\newcommand\gauss{\textsc{Gauss}\xspace}
\newcommand\gj{\textsc{Gauss-Jordan}\xspace}
\newcommand\singleton{\textsc{Singleton}\xspace}
\newcommand\rs{\textsc{Reed-Solomon}\xspace}
\newcommand\eo{\textsc{EVENODD}\xspace}
\newcommand\fourier{\textsc{Fourier}\xspace}
\newcommand\galois{\textsc{Galois}\xspace}
\newcommand\intel{\textsc{Intel}\xspace}
\newcommand\ZZ{\mathbb{Z}}
\newcommand\NN{\mathbb{N}}
\newcommand\RR{\mathbb{R}}
\newcommand\CC{\mathbb{C}}
\newcommand\FF{\mathbb{F}}
\newcommand\PP{\mathcal{P}}
\newcommand\QQ{\mathcal{Q}}
%\newcommand\MM{\mathcal{M}}
\newcommand\MM{M}
\documentclass[11pt,
french,
fancyChapter,
fancyPart,
%squeezeComittee,
]{these-LUNAM-UBL}
%]{report}
% je retire les en-tête parce que c'est bof
%\pagestyle{plain}
% en fait je les laisse mais en plus petit
% faut voir comment garder les chapitres et parties "fancy" <3 ...
% http://tex.stackexchange.com/questions/78550/how-to-modify-the-headers-of-this-book-to-lower-case
\usepackage{fancyhdr}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[LO]{\itshape\nouppercase{\rightmark}}
\fancyhead[RE]{\itshape\nouppercase{\leftmark}}
\renewcommand{\headrulewidth}{0pt}
%\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{microtype}
\usepackage{times}
%\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{algorithm}
\usepackage{algpseudocode}
% http://tex.stackexchange.com/questions/74880/algorithmicx-package-comments-on-a-single-line
\algnewcommand{\LineComment}[1]{\State \(\triangleright\) #1}
%\usepackage[pdftex]{graphicx}
\usepackage{url}
\usepackage{longtable, booktabs, multirow}
\usepackage{makeidx}
\usepackage{transparent}
\usepackage{xspace}
\usepackage{minitoc}
\mtcselectlanguage{french}
\usepackage{array,booktabs}
\newcolumntype{L}{@{}>{\kern\tabcolsep}l<{\kern\tabcolsep}}
\usepackage{colortbl}
\usepackage{tikz,pgfplots,pgfgantt}
\usetikzlibrary{arrows,positioning,matrix}
%http://tex.stackexchange.com/questions/102460/underbraces-in-matrix-divided-in-blocks
\usetikzlibrary{decorations.pathreplacing}
\newcommand{\tikzmark}[1]{\tikz[overlay,remember
picture,baseline=(#1.base)]
\node (#1) {\strut};}
%http://tex.stackexchange.com/questions/132783/how-to-write-checkmark-in-latex
\def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15)
-- cycle;}
\usepackage{lscape,afterpage}
%\usepackage{xcolor} %déjà intégré dans le .cls
%\geometry{inner=2.5cm, outer=2.5cm, top=2.5cm, bottom=2cm}
%\geometry{inner=1.5cm, outer=1.5cm, top=2cm, bottom=2cm}
\usepackage{textcomp}
\usepackage{pdflscape}
\usepackage{sistyle}
\definecolor{myred}{HTML}{810303}
\definecolor{myblue}{HTML}{000080}
\definecolor{mygrey}{HTML}{272822}
\definecolor{mybgrey}{HTML}{75715E}
\definecolor{mywhite}{HTML}{DDDDDD}
\definecolor{mypink}{HTML}{F92672}
\definecolor{mygreen}{HTML}{A6E22E}
\definecolor{ubl_blue}{HTML}{31849B}
\definecolor{ubl_red}{HTML}{FF320A}
\definecolor{ubl_green}{HTML}{C8C83C}
\definecolor{ubl_black}{HTML}{2B2B2A}
\definecolor{ubl_gray}{HTML}{ECF0DF}
\definecolor{ubl_light_gray}{HTML}{F8F8F8}
\usepackage{listings}
\lstset{language=C++,
%backgroundcolor=\color{mygrey},
emph={map,reduce,pragma}, emphstyle={\bfseries\color{mygreen}},
emph={[2]void, int, for}, emphstyle={[2]\bfseries\color{mypink}},
commentstyle=\itshape\color{mygrey},
breaklines=true,
captionpos=b,
numbers=left,
numberstyle=\color{black},
xleftmargin=2em, % pour que les numéros ne sortent pas du paragraphe
%basicstyle={\color{mywhite}},
escapechar={\&}, % pour mettre des morceaux de LaTeX dedans
frame=single%none}
}
\newcommand{\firstinit}{D.}
\newcommand{\prenom}{Dimitri}
\newcommand{\nom}{Pertin}
% régle la profondeur de la table des matières
% \setcounter{tocdepth}{3}
% \setcounter{secnumdepth}{3}
% options et procédures pour inclure les images SVG
\graphicspath{{img/}}
\newcommand{\executeiffilenewer}[3]{%
\ifnum\pdfstrcmp{\pdffilemoddate{#1}}%
{\pdffilemoddate{#2}}>0%
{\immediate\write18{#3}}\fi%
}
\newcommand{\includesvg}[1]{%
\executeiffilenewer{#1.svg}{#1.pdf}%
{inkscape -z -D --file=#1.svg %
--export-pdf=#1.pdf --export-latex}%
\input {#1.pdf_tex}%
}
\def\proj{\mathrm{proj}}
\def\M{\mathcal{M}}
\def\blocs{blocs\xspace}
\DeclareMathOperator*{\xor}{\bigoplus}
% relatif au papier reprojection
\DeclareMathOperator*{\bigast}{\ast}
\DeclareMathOperator*{\bigastinv}{\ast^{-1}}
\newcommand{\Conv}{\mathop{\scalebox{1.5}{\raisebox{-0.2ex}{$\ast$}}}}%homemade
\def\dir#1{\left\{#1\right\}}
\def\ghost#1{g_{#1}}
\def\moj#1#2{M_{#1}\left[#2\right]}
\def\ct#1{«~#1~»}
\makeatletter
\renewcommand{\ALG@name}{Algoritme}
\makeatother
\algrenewcommand\algorithmicrequire{\textbf{Entrée :}}
\algrenewcommand\algorithmicensure{\textbf{Sortie :}}
\algrenewcommand\algorithmicfor{\textbf{pour}}
\algrenewcommand\algorithmicforall{\textbf{pour tout}}
\algrenewcommand\algorithmicdo{\textbf{faire}}
\algrenewcommand\algorithmicend{\textbf{fin}}
\algrenewcommand\algorithmicif{\textbf{si}}
\algrenewcommand\algorithmicthen{\textbf{alors}}
\pgfplotscreateplotcyclelist{my black white}{%
solid, every mark/.append style={solid, fill=gray}, mark=*\\%
dotted, every mark/.append style={solid, fill=gray}, mark=square*\\%
densely dotted, every mark/.append style={solid, fill=gray}, mark=otimes*\\%
loosely dotted, every mark/.append style={solid, fill=gray}, mark=triangle*\\%
dashed, every mark/.append style={solid, fill=gray},mark=diamond*\\%
loosely dashed, every mark/.append style={solid, fill=gray},mark=*\\%
densely dashed, every mark/.append style={solid, fill=gray},mark=square*\\%
dashdotted, every mark/.append style={solid, fill=gray},mark=otimes*\\%
dasdotdotted, every mark/.append style={solid},mark=star\\%
densely dashdotted,every mark/.append style={solid, fill=gray},mark=diamond*\\%
}
% Style to select only points from #1 to #2 (inclusive)
\pgfplotsset{select coords between index/.style 2 args={
x filter/.code={
\ifnum\coordindex<#1\def\pgfmathresult{}\fi
\ifnum\coordindex>#2\def\pgfmathresult{}\fi
}
}}
% same reference for footnotes in table
% http://tex.stackexchange.com/questions/35043/reference-different-places-to-the-same-footnote
\makeatletter
\newcommand\footnoteref[1]{\protected@xdef\@thefnmark{\ref{#1}}\@footnotemark}
\makeatother
% ultime cheat pour avoir des méga matrices
\setcounter{MaxMatrixCols}{20}
% curious (et flemmard ...)
\usepackage{totcount}
\usepackage{lipsum}
\usepackage[
backend=biber,
style=alphabetic,
maxnames=2,
maxbibnames=99,
language=french,
babel=other,
backref=true,
%style=trad-plain
]{biblatex}
\addbibresource{these.bib}
\usepackage[bookmarks,%
colorlinks,%
urlcolor=blue,%
citecolor=blue,%
linkcolor=blue,%
hyperfigures,%
%pagebackref,%
pdfcreator=LaTeX,%
breaklinks=true,%
pdfpagelayout=SinglePage,%
bookmarksopen=true,%
bookmarksopenlevel=2]{hyperref}
\hypersetup{
colorlinks,
linkcolor={red!50!black},
citecolor={blue!50!black},
urlcolor={blue!80!black}
}
%%% RELATIF À HYPERREF %%%
%http://tex.stackexchange.com/questions/15951/hyperlink-name-with-biblatex-authoryear-biblatex-1-4b
%\DeclareFieldFormat{citehyperref}{%
% \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links
% \bibhyperref{#1}}
%
%\DeclareFieldFormat{textcitehyperref}{%
% \DeclareFieldAlias{bibhyperref}{noformat}% Avoid nested links
% \bibhyperref{%
% #1%
% \ifbool{cbx:parens}
% {\bibcloseparen\global\boolfalse{cbx:parens}}
% {}}}
%
%\savebibmacro{cite}
%\savebibmacro{textcite}
%
%\renewbibmacro*{cite}{%
% \printtext[citehyperref]{%
% \restorebibmacro{cite}%
% \usebibmacro{cite}}}
%
%\renewbibmacro*{textcite}{%
% \ifboolexpr{
% ( not test {\iffieldundef{prenote}} and
% test {\ifnumequal{\value{citecount}}{1}} )
% or
% ( not test {\iffieldundef{postnote}} and
% test {\ifnumequal{\value{citecount}}{\value{citetotal}}} )
% }
% {\DeclareFieldAlias{textcitehyperref}{noformat}}
% {}%
% \printtext[textcitehyperref]{%
% \restorebibmacro{textcite}%
% \usebibmacro{textcite}}
%}
%%% RELATIF À BIBLATEX %%%
% déclaration de la catégorie mine pour biblatex
\DeclareBibliographyCategory{mine}
% Ce qui suit ne fonctionne plus depuis biblatex 3.3
% http://tex.stackexchange.com/questions/299036/biblatex-3-3-name-formatting
%\DeclareIndexNameFormat{mine}{%
% \ifboolexpr{ test {\ifdefstring{\nom}{#1}}
% and ( test {\ifdefstring{\prenom}{#3}}
% or test {\ifdefstring{\firstinit}{#4}} ) }
% {\addtocategory{mine}{\thefield{entrykey}}}
% {}}
\DeclareIndexNameFormat{mine}{
\ifboolexpr{ test {\ifstrequal{Dimitri Pertin}{#1}}}
{\addtocategory{mine}{\thefield{entrykey}}}
{}}
\AtDataInput{%
\indexnames[mine]{author}}
\defbibfilter{publications}{
type=article or
type=inproceedings or
type=unpublished
}
% environnement pour bibliographie sans labels
\defbibenvironment{midbib}
{\list
{}
{\setlength{\leftmargin}{\bibhang}%
\setlength{\itemindent}{-\leftmargin}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}}
{\endlist}
{\item}
% Clear the url field if doi is defined
\AtEveryBibitem{\iffieldundef{doi}{}{\clearfield{url}}}
% %
% Emphasize a particular author
% adapted from: file:///usr/local/texlive/2010/texmf-dist/doc/latex/biblatex/biblatex.pdf
%\DeclareNameFormat{author}{%
% \ifthenelse{\equal{#1}{\nom}}
% {{\bf\ifblank{#3}{}{#3\space}%
% #1}}%
% {\ifblank{#3}{}{#3\space}%
% #1}%
% \ifthenelse{\value{listcount}<\value{liststop}}
% {\addcomma\space}
% {}
%}
% http://tex.stackexchange.com/questions/299036/biblatex-3-3-name-formatting
% don't know why but it works:
\DeclareNameFormat{author}{%
\nameparts{#1}%
\ifthenelse{\equal{\namepartfamily}{\nom}}
{{\bf\ifblank{\namepartgiven}{}{\namepartgiven\space}%
\namepartfamily}}%
{\ifblank{\namepartgiven}{}{\namepartgiven\space}%
\namepartfamily}%
\ifthenelse{\value{listcount}<\value{liststop}}
{\addcomma\space}
{}
}
% http://tex.stackexchange.com/questions/74364/biber-biblatex-printbibliography-spits-out-section-heading-despite-filters-che
% filtrer par date
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map[overwrite=true]{
\step[fieldsource=year,
match=\regexp{^20(0[8-9]|[1-9][0-9])$},
final]
\step[fieldsource=keywords, match=\regexp{^}, replace=\regexp{recent,}]
}
}
}
\newtotcounter{citenum}
\AtEveryBibitem{\stepcounter{citenum}}
% http://texdoc.net/texmf-dist/doc/latex/cleveref/cleveref.pdf
% Cleveref can’t cope with active characters being present in cross-reference
% label names. For example, if French babel support is loaded, the commonly
% used “:”
\usepackage[french,nameinlink]{cleveref}
\crefname{lstlisting}{Listing}{listings}
\Crefname{lstlisting}{Listing}{Listings}
\usepackage{subcaption}