-
Notifications
You must be signed in to change notification settings - Fork 0
/
formatAndDefs.tex
288 lines (234 loc) · 8.04 KB
/
formatAndDefs.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
%!TEX root = Manuscrit.tex
\usepackage{amsmath,amssymb}
%\usepackage{forum,euler}
%\usepackage{palatino,eulervm}
\usepackage[tracking]{microtype}
\usepackage[sc,osf]{mathpazo}
\linespread{1.025}
\usepackage[euler-digits,small]{eulervm}
%\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[square,sort,comma]{natbib}
\bibliographystyle{abbrvnat}
\setcitestyle{authoryear,open={[},close={]}}
\usepackage[french]{babel}
\usepackage{cancel}
\usepackage{multirow}
\usepackage{supertabular}
\usepackage{algorithmic}
\usepackage{algorithm}
\usepackage{amsthm}
\usepackage{float}
\usepackage{tabularx}
\usepackage[justification=centering]{caption}
\usepackage{longtable}
\usepackage{titlesec}
\usepackage{setspace}
\usepackage{booktabs}
\usepackage{pdfpages}
\usepackage{titlesec}
\titlespacing\section{15pt}{12pt plus 4pt minus 2pt}{7pt plus 2pt minus 2pt}
\titlespacing\subsection{15pt}{12pt plus 4pt minus 2pt}{7pt plus 2pt minus 2pt}
\titlespacing\subsubsection{20pt}{12pt plus 4pt minus 2pt}{7pt plus 2pt minus 2pt}
\spacing{1.25}
%\usepackage[left=2cm,right=2cm,top=1.25cm,bottom=1.25cm,includefoot,includehead,headheight=13.6pt]{geometry}
%\usepackage{geometry}
\setlength{\parindent}{20pt}
\usepackage{geometry}
\geometry{hmargin=2.5cm,vmargin=2.5cm}
%\renewcommand{\baselinestretch}{1.05}
\usepackage{silence}
\WarningFilter{minitoc(hints)}{W0023}
\WarningFilter{minitoc(hints)}{W0024}
\WarningFilter{minitoc(hints)}{W0028}
\WarningFilter{minitoc(hints)}{W0030}
\usepackage{aecompl}
\usepackage{url}
% List of abbreviations
% Do not try putting acronyms in section titles, that would cause infinite loop of pdftex compilation
%\usepackage[printonlyused,withpage]{acronym}
\usepackage[withpage]{acronym}
% My pdf code
%\usepackage{ifpdf}
%%
%\ifpdf
%\usepackage[pdftex]{graphicx}
%\else
\usepackage{graphicx}
%\fi
\graphicspath{{images/}}
% Links in pdf
\usepackage{color}
\definecolor{linkcol}{rgb}{0,0,0}
\definecolor{citecol}{rgb}{0.5,0,0}
% Table of contents for each chapter
\usepackage[nottoc, notlof, notlot]{tocbibind}
\usepackage{minitoc}
\setcounter{minitocdepth}{2}
\mtcindent=15pt
\mtcselectlanguage{french}
\setcounter{mtc}{9}
% Use \minitoc where to put a table of contents
% definitions.
% -------------------
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{2}
% Some useful commands and shortcut for maths: partial derivative and stuff
\newcommand{\pd}[2]{\frac{\partial #1}{\partial #2}}
\def\abs{\operatorname{abs}}
\def\argmax{\operatornamewithlimits{arg\,max}}
\def\argmin{\operatornamewithlimits{arg\,min}}
\def\diag{\operatorname{Diag}}
\newcommand{\eqRef}[1]{(\ref{#1})}
\usepackage{rotating} % Sideways of figures & tables
%\usepackage{bibunits}
%\usepackage[sectionbib]{chapterbib} % Cross-reference package (Natural BiB) % Put References at the end of each chapter
% Do not put 'sectionbib' option here.
% Sectionbib option in 'natbib' will do.
\usepackage{fancyhdr} % Fancy Header and Footer
% \usepackage{txfonts} % Public Times New Roman text & math font
%%% Fancy Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fancy Header Style Options
\pagestyle{fancy} % Sets fancy header and footer
\fancyfoot{} % Delete current footer settings
%\renewcommand{\chaptermark}[1]{ % Lower Case Chapter marker style
% \markboth{\chaptername\ \thechapter.\ #1}}{}} %
%\renewcommand{\sectionmark}[1]{ % Lower case Section marker style
% \markright{\thesection.\ #1}} %
\fancyhead[LE,RO]{\bfseries\thepage} % Page number (boldface) in left on even
% pages and right on odd pages
\fancyhead[RE]{\bfseries\nouppercase{\leftmark}} % Chapter in the right on even pages
\fancyhead[LO]{\bfseries\nouppercase{\rightmark}} % Section in the left on odd pages
\let\headruleORIG\headrule
\renewcommand{\headrule}{\color{black} \headruleORIG}
\renewcommand{\headrulewidth}{1.0pt}
\usepackage{colortbl}
\arrayrulecolor{black}
\fancypagestyle{plain}{
\fancyhead{}
\fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
}
%\usepackage{FrAlgorithm}
%\usepackage[noend]{FrAlgorithmic}
%\usepackage{scrextend}
%%% Clear Header %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Clear Header Style on the Last Empty Odd pages
\makeatletter
\def\cleardoublepage{\clearpage\if@twoside \ifodd\c@page\else%
\hbox{}%
\thispagestyle{empty}% % Empty header styles
\newpage%
\if@twocolumn\hbox{}\newpage\fi\fi\fi}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Prints your review date and 'Draft Version' (From Josullvn, CS, CMU)
\newcommand{\reviewtimetoday}[2]{\special{!userdict begin
/bop-hook{gsave 20 710 translate 45 rotate 0.8 setgray
/Times-Roman findfont 12 scalefont setfont 0 0 moveto (#1) show
0 -12 moveto (#2) show grestore}def end}}
% You can turn on or off this option.
% \reviewtimetoday{\today}{Draft Version}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{maxime}[1]
{
\vspace*{0cm}
\hfill
\begin{minipage}{0.5\textwidth}%
%\rule[0.5ex]{\textwidth}{0.1mm}\\%
\hrulefill $\:$ {\bf #1}\\
%\vspace*{-0.25cm}
\it
}%
{%
\hrulefill
\vspace*{0.5cm}%
\end{minipage}
}
\let\minitocORIG\minitoc
\renewcommand{\minitoc}{\minitocORIG \vspace{1.5em}}
\usepackage{subfig}
\usepackage{multirow}
% \usepackage{slashbox}
\newenvironment{bulletList}%
{ \begin{list}%
{$\bullet$}%
{\setlength{\labelwidth}{25pt}%
\setlength{\leftmargin}{30pt}%
\setlength{\itemsep}{\parsep}}}%
{ \end{list} }
\newtheorem{definition}{Définition}
\renewcommand{\epsilon}{\varepsilon}
% centered page environment
\newenvironment{vcenterpage}
{\newpage\vspace*{\fill}\thispagestyle{empty}\renewcommand{\headrulewidth}{0pt}}
{\vspace*{\fill}}
% Hyperref code
\ifpdf
\usepackage[pagebackref,hyperindex=true]{hyperref}
\else
\usepackage[dvipdfm,pagebackref,hyperindex=true]{hyperref}
\fi
% nicer backref links
\renewcommand*{\backref}[1]{}
\renewcommand*{\backrefalt}[4]{%
\ifcase #1 %
(Non cité.)%
\or
(Cité en page~#2.)%
\else
(Cité en pages~#2.)%
\fi}
\renewcommand*{\backrefsep}{, }
\renewcommand*{\backreftwosep}{ et~}
\renewcommand*{\backreflastsep}{ et~}
% Change this to change the informations included in the pdf file
% See hyperref documentation for information on those parameters
\hypersetup
{
bookmarksopen=true,
pdftitle="Titre du manuscript",
pdfauthor="Votre nom", %auteur du document
pdfsubject="Description rapide du sujet du manuscrit", %sujet du document
%pdftoolbar=false, %barre d'outils non visible
pdfmenubar=true, %barre de menu visible
pdfhighlight=/O, %effet d'un clic sur un lien hypertexte
colorlinks=true, %couleurs sur les liens hypertextes
pdfpagemode=UseNone, %aucun mode de page
pdfpagelayout=SinglePage, %ouverture en simple page
pdffitwindow=true, %pages ouvertes entierement dans toute la fenetre
linkcolor=linkcol, %couleur des liens hypertextes internes
citecolor=citecol, %couleur des liens pour les citations
urlcolor=linkcol %couleur des liens pour les url
}
%epigraph style
%\usepackage{ebgaramond}
%\usepackage{epigraph}
%\setlength{\epigraphrule}{0pt}
%\setlength{\epigraphwidth}{0.6\textwidth}
% \renewcommand\textflush{flushepinormal}
% \renewenvironment{flushepinormal}{}{\vspace*{-\baselineskip}}
%\usepackage{pxfonts}
\usepackage{epigraph}
\renewcommand\textflush{flushright}
\usepackage{etoolbox}
\makeatletter
\newlength\epitextskip
\pretocmd{\@epitext}{\em}{}{}
\apptocmd{\@epitext}{\em}{}{}
\patchcmd{\epigraph}{\@epitext{#1}\\}{\@epitext{#1}\\[\epitextskip]}{}{}
\makeatother
\setlength\epigraphrule{0pt}
\setlength\epitextskip{2ex}
\setlength\epigraphwidth{.8\textwidth}
%Caption fontsize reduced
\captionsetup{font=small}
%footnote
%\makealetter
%\def\@makefnmark{\hbox{(\@textsuperscript{\normalfont\@thefnmark})}}
%\makeatother
%table en tableau
\addto\captionsfrench{\def\tablename{Tableau}}
%Footnote brackets
\renewcommand*{\thefootnote}{(\arabic{footnote})}