-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.tex
154 lines (136 loc) · 4.18 KB
/
env.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
\usepackage[framemethod=TikZ]{mdframed}
\usetikzlibrary{shadows}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage{xcolor}
\newcommand{\declaretheoremstylewithcolor}[3]{
\declaretheoremstyle[
numberwithin=section,
headfont=\bfseries\color{#2},
postheadhook=\leavevmode,
notefont=\normalfont\bfseries,
headformat=\NAME~\newstylenums{\NUMBER}\NOTE,
bodyfont=#3,
mdframed={%
backgroundcolor=#2!5!white,
linecolor=#2,
linewidth=1pt,
topline=false,
bottomline=false,
roundcorner=3pt,
skipabove=5pt,
innertopmargin=3pt,
innerbottommargin=5pt
}
]{#1}
}
\declaretheoremstylewithcolor{styleMahogany}{Mahogany}{\normalfont}
\declaretheoremstylewithcolor{stylePeriwinkle}{Periwinkle}{\itshape}
\declaretheoremstylewithcolor{styleMulberry}{Mulberry}{\normalfont}
\declaretheoremstylewithcolor{styleJungleGreen}{JungleGreen}{\normalfont}
\declaretheoremstylewithcolor{styledarkgray}{darkgray}{\normalfont}
\declaretheorem[style=styleMahogany, name=Définition]{defi}
\declaretheorem[style=styleMahogany, name=Définitions]{defns}
\declaretheorem[style=stylePeriwinkle, name=Théorème]{theo}
\declaretheorem[style=stylePeriwinkle, name=Lemme]{lemme}
\declaretheorem[style=stylePeriwinkle, name=Corollaire]{corol}
\declaretheorem[style=stylePeriwinkle, name=Proposition]{prop}
\declaretheorem[style=styleMulberry, name=Exercice]{exercice}
\declaretheorem[style=styleJungleGreen, name=Remarque]{remarque}
\declaretheorem[style=styleJungleGreen, name=Remarques]{remarques}
\declaretheorem[style=styledarkgray, name=Méthode]{methode}
\declaretheoremstyle[
numberwithin=section,
headfont=\bfseries,%\scshape,
notefont=\normalfont\bfseries,%\itshape,
headformat=\NAME~\newstylenums{\NUMBER}\NOTE,
postheadhook=\leavevmode,
mdframed={%
topline=false,
linewidth=1pt,
%leftline=false,
rightline=false,
bottomline=false,
% roundcorner=2pt,
% splittopskip=20pt,
skipabove = 5pt, % to adjust the above skip
innertopmargin=0pt,
innerbottommargin=0pt
}
]{styledefault}
\declaretheoremstyle[
% spaceabove=6pt, spacebelow=6pt,
headfont=\normalfont\bfseries,%\scshape,
notefont=\normalfont\bfseries,%\itshape,
notebraces={(}{)},
bodyfont=\normalfont,
postheadhook=\leavevmode
% postheadspace=1em
]{styledemosoluex}
\declaretheoremstyle[
headformat=\!\!\NOTE,
notefont=\normalfont\bfseries,%\scshape,
notebraces={}{},
bodyfont=\normalfont,
postheadhook=\leavevmode
% postheadspace=1em
]{styleenvide}
\declaretheorem[
style=styledemosoluex,
qed=\qedsymbol,
name=$\blacksquare$\ Démonstration,
numbered=no
]{demo}
\declaretheorem[
style=styledemosoluex,
qed=\qedsymbol,
name=$\blacksquare$\ Éléments de démonstration,
numbered=no
]{elemdemo}
\declaretheorem[
style=styledemosoluex,
qed=$\lhd$,
name=$\blacktriangleright$\ Solution,
numbered=no
]{solution}
\declaretheorem[
style=styledemosoluex,
qed=$\lhd$,
name=$\blacktriangleright$\ Éléments de solution,
numbered=no
]{elemsolution}
\declaretheorem[
style=styledemosoluex,
qed=$\Diamond$,
name=$\blacklozenge$\ Exemple,
numbered=no
]{exemple}
\declaretheorem[
style=styledemosoluex,
qed=$\Diamond$,
name=$\blacklozenge$\ Exemples,
numbered=no
]{exemples}
\declaretheorem[
style=styledemosoluex,
qed=$\Diamond$,
name=$\blacklozenge$\ Contre-exemple,
numbered=no
]{contreexemple}
\declaretheorem[
style=styledemosoluex,
qed=$\Diamond$,
name=$\blacklozenge$\ Contre-exemples,
numbered=no
]{contreexemples}
\declaretheorem[
style=styleenvide,
numbered=no,
]{envide}
% Pour les questions et les réponses
\newlist{questions}{enumerate}{2}
\setlist[questions,1]{label=\textcolor{Mulberry}{\textbf{Q\newstylenums{\arabic*})}}}
\setlist[questions,2]{label=\textcolor{Mulberry}{\textbf{\alph*)}}}
\newlist{reponses}{enumerate}{2}
\setlist[reponses,1]{label=\textcolor{black}{\textbf{Q\newstylenums{\arabic*})}}}
\setlist[reponses,2]{label=\textcolor{black}{\textbf{\alph*)}}}