-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLD@Maths@TD.tex
166 lines (154 loc) · 4.96 KB
/
LD@Maths@TD.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
\input LD@Header.tex
\input LD@Library.tex
\LD@Core@IncludeOnce{LD@Maths@TD@Once}%
\input LD@Typesetting.tex
\input LD@Exercices.tex
\catcode`@=11\relax
\tenrm
\DefineRGBcolor F0F9E3=VLGreen.
\DefineRGBcolor E5F9D1=LGreen.
\DefineRGBcolor DAF9BE=TGreen.
\DefineRGBcolor 5DA93B=Green.
\DefineRGBcolor F6DCCA=VLRed.
\DefineRGBcolor F6D4BD=LRed.
\DefineRGBcolor DAF9BE=TRed.
\DefineRGBcolor B5F9A1=TTRed.
\DefineRGBcolor F6B080=Red.
\DefineRGBcolor F9F5E3=VLOrange.
\DefineRGBcolor F9F5D0=LOrange.
\DefineRGBcolor DAF9BE=TOrange.
\DefineRGBcolor B5F9A1=TTOrange.
\DefineRGBcolor D7A93B=Orange.
\DefineRGBcolor EEEEEE=VLBlack.
\DefineRGBcolor DDDDDD=LBlack.
\DefineRGBcolor CCCCCC=TBlack.
\DefineRGBcolor B5F9A1=TTBlack.
\DefineRGBcolor 000000=Black.
\newcount\LD@Count@Temp
\newif\ifLD@Inferno@Master@\LD@Inferno@Master@false
\LD@Exo@Label@Hide
\LD@Colors@Hide
\def\LD@Exercice@Display@Code{}%%\LD@Option@@Label\qquad\eightpts}%
\gdef\LD@Exercice@Solution@List{}%
\gdef\LD@Exercice@Indication@List{}%
\gdef\LD@Exercice@Notion@List{}%
\def\LD@Exercice@Display@Code@Post{%
\ifcsname LD@Exo@@Solution\endcsname
\unless\ifx\LD@Exo@@Solution\LD@Empty
\ifLD@Inferno@Master@
\pn{\eightpts Solution : \eightpts \LD@Exo@@Solution}%
\else
\ifx\LD@Exercice@Solution@List\LD@Empty
\EA\gdef\EA\LD@Exercice@Solution@List\EA{\LD@Option@@Label}%
\else
\EA\EA\EA\gdef\EA\EA\EA\LD@Exercice@Solution@List\EA\EA\EA{\EA\LD@Exercice@Solution@List\EA ,\LD@Option@@Label}%
\fi
\fi
\fi
\fi
\ifcsname LD@Exo@@Notion\endcsname
\unless\ifx\LD@Exo@@Notion\LD@Empty
\ifLD@Inferno@Master@
\pn{\eightpts Notions intervenant dans la solution : \eightpts \LD@Exo@@Notion}%
\else
\ifx\LD@Exercice@Notion@List\LD@Empty
\EA\gdef\EA\LD@Exercice@Notion@List\EA{\LD@Option@@Label}%
\else
\EA\EA\EA\gdef\EA\EA\EA\LD@Exercice@Notion@List\EA\EA\EA{\EA\LD@Exercice@Notion@List\EA ,\LD@Option@@Label}%
\fi
\fi
\fi
\fi
\ifcsname LD@Exo@@Indication\endcsname
\unless\ifx\LD@Exo@@Indication\LD@Empty
\ifLD@Inferno@Master@
\pn{\eightpts Indication : \eightpts \LD@Exo@@Indication}%
\else
\ifx\LD@Exercice@Indication@List\LD@Empty
\EA\gdef\EA\LD@Exercice@Indication@List\EA{\LD@Option@@Label}%
\else
\EA\EA\EA\gdef\EA\EA\EA\LD@Exercice@Indication@List\EA\EA\EA{\EA\LD@Exercice@Indication@List\EA ,\LD@Option@@Label}%
\fi
\fi
\fi
\fi
\medskip\penalty-100
}%
\def\LD@Display#1{%
\LD@Count@Temp=#1\relax
\ifcase\LD@Count@Temp
\or
Math. Sup.
\or
Math. Spé
\else
\fi
}%
\def\LD@Exercice@Display@Code{}%%\LD@Option@@Label\qquad\eightpts}%
\gdef\LD@Exercice@Solution@List{}%
\gdef\LD@Exercice@Indication@List{}%
\gdef\LD@Exercice@Notion@List{}%
\def\LD@Exercice@Display@Code@Post{%
\ifcsname LD@Exo@@Solution\endcsname
\unless\ifx\LD@Exo@@Solution\LD@Empty
\ifLD@Inferno@Master@
\pn{\eightpts Solution : \eightpts \LD@Exo@@Solution}%
\else
\ifx\LD@Exercice@Solution@List\LD@Empty
\EA\gdef\EA\LD@Exercice@Solution@List\EA{\LD@Option@@Label}%
\else
\EA\EA\EA\gdef\EA\EA\EA\LD@Exercice@Solution@List\EA\EA\EA{\EA\LD@Exercice@Solution@List\EA ,\LD@Option@@Label}%
\fi
\fi
\fi
\fi
\ifcsname LD@Exo@@Notion\endcsname
\unless\ifx\LD@Exo@@Notion\LD@Empty
\ifLD@Inferno@Master@
\pn{\eightpts Notions intervenant dans la solution : \eightpts \LD@Exo@@Notion}%
\else
\ifx\LD@Exercice@Notion@List\LD@Empty
\EA\gdef\EA\LD@Exercice@Notion@List\EA{\LD@Option@@Label}%
\else
\EA\EA\EA\gdef\EA\EA\EA\LD@Exercice@Notion@List\EA\EA\EA{\EA\LD@Exercice@Notion@List\EA ,\LD@Option@@Label}%
\fi
\fi
\fi
\fi
\ifcsname LD@Exo@@Indication\endcsname
\unless\ifx\LD@Exo@@Indication\LD@Empty
\ifLD@Inferno@Master@
\pn{\eightpts Indication : \eightpts \LD@Exo@@Indication}%
\else
\ifx\LD@Exercice@Indication@List\LD@Empty
\EA\gdef\EA\LD@Exercice@Indication@List\EA{\LD@Option@@Label}%
\else
\EA\EA\EA\gdef\EA\EA\EA\LD@Exercice@Indication@List\EA\EA\EA{\EA\LD@Exercice@Indication@List\EA ,\LD@Option@@Label}%
\fi
\fi
\fi
\fi
\medskip\penalty-100
}%
\def\LD@Exo@Sol@Display{%
{\EA\LD@Loop@For\EA\LD@Exo@Label\EA=\csname LD@Exercice@Solution@List\endcsname\WithSeparator ,\Do{%
\LD@Data@Def{Sol}\LD@Exo@Label\LD@Temp
\noindent{\eightpts \ref{labelexo\LD@Exo@Label}. \LD@Temp}
\medskip
}}%
}%
\def\LD@Exo@Notion@Display{%
{\EA\LD@Loop@For\EA\LD@Exo@Label\EA=\csname LD@Exercice@Notion@List\endcsname\WithSeparator ,\Do{%
\LD@Data@Def{Notion}\LD@Exo@Label\LD@Temp
\noindent\pn{\eightpts \ref{labelexo\LD@Exo@Label} : \LD@Temp}%
\medskip
}}%
}%
\def\LD@Exo@Indication@Display{%
{\EA\LD@Loop@For\EA\LD@Exo@Label\EA=\csname LD@Exercice@Indication@List\endcsname\WithSeparator ,\Do{%
\LD@Data@Def{Ind}\LD@Exo@Label\LD@Temp
\noindent\pn{\eightpts \ref{labelexo\LD@Exo@Label}. \LD@Temp}%
\medskip
}}%
}%
\endinput