-
Notifications
You must be signed in to change notification settings - Fork 0
/
local_notations.tex
120 lines (99 loc) · 3.3 KB
/
local_notations.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
% Pour les matrices par blocs
\newcommand{\rvline}{\hspace*{-\arraycolsep}\vline\hspace*{-\arraycolsep}}
\DeclareMathOperator{\sinc}{\mathrm{sinc}}
\newcommand{\todoinline}[1]{\todo[color=green!40, bordercolor=red, inline]{#1}}
\newcommand{\entiers}[2]{\llbracket#1,#2\rrbracket}
\newcommand{\todoarmand}[1]{\todo[color=blue!20, bordercolor=red, inline]{#1}}
\newcommand\coauteur{%
\raisebox{-0.25ex}{$\quad \scalebox{1.2}{$\cdot$} \quad$~}%
}
% Pour automatiser l'espace après les quantificateurs
\let\oldforall\forall
\renewcommand{\forall}{\oldforall \, }
\let\oldexist\exists
\renewcommand{\exists}{\oldexist \: }
\newcommand\pageblanche{
\null
\thispagestyle{empty}
\addtocounter{page}{-1}
\newpage
}
% Pour pouvoir enlever l'indentation dans un itemize
% https://tex.stackexchange.com/questions/131637/no-indentation-for-non-item-within-itemize
\newcommand\NoIndent[1]{%
\par\vbox{\parbox[t]{\linewidth}{#1}}%
}
\newcommand{\nompropre}[1]{\textsc{#1}}
% \newcommand{\nom}[1]{\textsc{#1}\index[mathematiciens]{\textsc{#1}}}
\newcommand{\nom}[1]{\gls{#1}}
%%%%%%%%%%%%%%% Théorèmes utilisés %%%%%%%%%%%%%%%%%
\newcommand{\etoile}[1]{
\ifthenelse{\isodd{\thepage}}
{#1 $\bigstar$}
{$\bigstar$ #1}
}
\newcommand{\theoremeutilise}[3][-7pt]{#2\marginnote[#1]{\etoile{\hyperref[#3]{\expandafter\MakeUppercase#2}}\index[theoremesutilises]{#2@\expandafter\MakeUppercase#2}}}
% \theoremeutilise[arg. optionel : décalage vertical de la marginnote]{nom du théorème}{label}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Groupes pour l'index des notations
% https://cs.overleaf.com/learn/latex/Nomenclatures
% -----------------------------------------
\renewcommand\nomgroup[1]{%
\item[\bfseries
\ifstrequal{#1}{A}{Analyse}{%
\ifstrequal{#1}{B}{Algèbre}{%
\ifstrequal{#1}{C}{Probabilités}{}}}%
]}
% -----------------------------------------
%%%%%% Flowcharts %%%%%%
\newcounter{boxlblcounter}
\newcommand{\makeboxlabel}[1]{\fbox{#1}\hfill}% \hfill fills the label box
\newenvironment{boxlabel}
{\begin{list}
{\arabic{boxlblcounter}}
{\usecounter{boxlblcounter}
\setlength{\labelwidth}{3em}
\setlength{\labelsep}{0em}
\setlength{\itemsep}{2pt}
\setlength{\leftmargin}{1.5cm}
\setlength{\rightmargin}{2cm}
\setlength{\itemindent}{0em}
\let\makelabel=\makeboxlabel
}
}
{\end{list}}
%== Blocs
\tikzstyle{decision} = [
rectangle, rounded corners, dashed,
inner sep = 10pt,
draw=colordef, very thick,
minimum height=5ex,
align=center,
node distance=2.5cm,
]
\tikzstyle{block} =
[rectangle,
draw=colorexample, very thick,
node distance=2.5cm,
align=center,
inner sep = 20pt,
rounded corners,
minimum height=4ex]
\tikzstyle{line} = [draw, very thick, color=black, -latex']
\tikzstyle{cloud} =
[ellipse, draw=colortheorem,
very thick,
align=center, node distance=2.5cm,
minimum height=2em, inner sep=1pt]
\definecolor{colordef}{RGB}{0,153,153}
% DarkSlateGray
\definecolor{colortitle}{RGB}{51,102,102}
%
\definecolor{colorproposition}{RGB}{255,51,0}
\definecolor{colortheorem}{RGB}{255,0,0}
\definecolor{colorexample}{RGB}{51,153,102}
\definecolor{colorinterpretation}{RGB}{204,255,51}
\definecolor{colorstrategie}{RGB}{204,153,0}
% \usepgfplotslibrary{external}
% \tikzexternalize
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%