Génération de 89 sujets dans la boîte !

pull/1/head
Jean-Christophe Jameux 4 years ago
parent fff20406d7
commit d0387aa5cb
  1. 87
      Questions/BTS 1 - DST 1 - Sujet A.log
  2. BIN
      Questions/BTS 1 - DST 1 - Sujet A.pdf
  3. 87
      Questions/BTS 1 - DST 1 - Sujet A.tex
  4. 87
      Questions/BTS 1 - DST 1 - Sujet B.log
  5. BIN
      Questions/BTS 1 - DST 1 - Sujet B.pdf
  6. 18
      Questions/BTS 1 - DST 1 - Sujet B.tex
  7. 83
      Questions/BTS 1 - DST 1 - Sujet C.log
  8. BIN
      Questions/BTS 1 - DST 1 - Sujet C.pdf
  9. 22
      Questions/BTS 1 - DST 1 - Sujet C.tex
  10. 2
      Questions/TSP - DST 1 - Sujet A.aux
  11. 367
      Questions/TSP - DST 1 - Sujet A.log
  12. BIN
      Questions/TSP - DST 1 - Sujet A.pdf
  13. 22
      Questions/TSP - DST 1 - Sujet A.tex
  14. 2
      Questions/TSP - DST 1 - Sujet B.aux
  15. 368
      Questions/TSP - DST 1 - Sujet B.log
  16. BIN
      Questions/TSP - DST 1 - Sujet B.pdf
  17. 20
      Questions/TSP - DST 1 - Sujet B.tex
  18. 2
      Questions/TSP - DST 1 - Sujet C.aux
  19. 367
      Questions/TSP - DST 1 - Sujet C.log
  20. BIN
      Questions/TSP - DST 1 - Sujet C.pdf
  21. 24
      Questions/TSP - DST 1 - Sujet C.tex
  22. BIN
      elm-stuff/0.19.1/ParserTest.elmi
  23. BIN
      elm-stuff/0.19.1/ParserTest.elmo
  24. BIN
      elm-stuff/0.19.1/QCM.elmi
  25. BIN
      elm-stuff/0.19.1/QCM.elmo
  26. BIN
      elm-stuff/0.19.1/d.dat
  27. BIN
      elm-stuff/0.19.1/i.dat
  28. BIN
      elm-stuff/0.19.1/o.dat
  29. 2
      elm.json
  30. 164
      src/ParserArbre.elm
  31. 109
      src/ParserTest.elm
  32. 579
      src/QCM.elm

@ -1,4 +1,4 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.11) (preloaded format=pdflatex 2020.11.23) 27 OCT 2021 13:20 This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.11) (preloaded format=pdflatex 2020.11.23) 5 NOV 2021 16:31
entering extended mode entering extended mode
**"./BTS 1 - DST 1 - Sujet A.tex" **"./BTS 1 - DST 1 - Sujet A.tex"
("BTS 1 - DST 1 - Sujet A.tex" ("BTS 1 - DST 1 - Sujet A.tex"
@ -130,6 +130,27 @@ LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
Package: bbold 1994/04/06 Bbold symbol package Package: bbold 1994/04/06 Bbold symbol package
LaTeX Font Info: Redeclaring math alphabet \mathbb on input line 42. LaTeX Font Info: Redeclaring math alphabet \mathbb on input line 42.
) )
("C:\Program Files\MiKTeX\tex/latex/xcolor\xcolor.sty"
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
("C:\Program Files\MiKTeX\tex/latex/graphics-cfg\color.cfg"
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
("C:\Program Files\MiKTeX\tex/latex/graphics-def\pdftex.def"
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
("C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def" ("C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def"
File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX) File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
\l__kernel_color_stack_int=\count199 \l__kernel_color_stack_int=\count199
@ -138,20 +159,20 @@ File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
("BTS 1 - DST 1 - Sujet A.aux") ("BTS 1 - DST 1 - Sujet A.aux")
\openout1 = `"BTS 1 - DST 1 - Sujet A.aux"'. \openout1 = `"BTS 1 - DST 1 - Sujet A.aux"'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 13. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 14.
LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: ... okay on input line 14.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 13. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 14.
LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: ... okay on input line 14.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 13. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 14.
LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: ... okay on input line 14.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 13. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 14.
LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: ... okay on input line 14.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 13. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 14.
LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: ... okay on input line 14.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 13. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 14.
LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: ... okay on input line 14.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 13. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 14.
LaTeX Font Info: ... okay on input line 13. LaTeX Font Info: ... okay on input line 14.
*geometry* driver: auto-detecting *geometry* driver: auto-detecting
*geometry* detected driver: pdftex *geometry* detected driver: pdftex
@ -187,19 +208,33 @@ LaTeX Font Info: ... okay on input line 13.
* \@reversemarginfalse * \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt) * (1in=72.27pt=25.4mm, 1cm=28.453pt)
LaTeX Font Info: Trying to load font information for U+msa on input line 33. ("C:\Program Files\MiKTeX\tex/context/base/mkii\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count266
\scratchdimen=\dimen156
\scratchbox=\box50
\nofMPsegments=\count267
\nofMParguments=\count268
\everyMPshowfont=\toks24
\MPscratchCnt=\count269
\MPscratchDim=\dimen157
\MPnumerator=\count270
\makeMPintoPDFobject=\count271
\everyMPtoPDFconversion=\toks25
)
LaTeX Font Info: Trying to load font information for U+msa on input line 37.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd" ("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd"
File: umsa.fd 2013/01/14 v3.01 AMS symbols A File: umsa.fd 2013/01/14 v3.01 AMS symbols A
) )
LaTeX Font Info: Trying to load font information for U+msb on input line 33. LaTeX Font Info: Trying to load font information for U+msb on input line 37.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsb.fd" ("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsb.fd"
File: umsb.fd 2013/01/14 v3.01 AMS symbols B File: umsb.fd 2013/01/14 v3.01 AMS symbols B
) )
LaTeX Font Info: Trying to load font information for U+bbold on input line 3 LaTeX Font Info: Trying to load font information for U+bbold on input line 4
6. 3.
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/jknappen\ubbold.fd (C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/jknappen\ubbold.fd
File: ubbold.fd 1996/01/01 Blackboard Bold Font Definition File (jk) File: ubbold.fd 1996/01/01 Blackboard Bold Font Definition File (jk)
@ -209,13 +244,13 @@ File: ubbold.fd 1996/01/01 Blackboard Bold Font Definition File (jk)
{C:/Users/Echophile/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] [2] {C:/Users/Echophile/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] [2]
("BTS 1 - DST 1 - Sujet A.aux") ) ("BTS 1 - DST 1 - Sujet A.aux") )
Here is how much of TeX's memory you used: Here is how much of TeX's memory you used:
2354 strings out of 479799 3294 strings out of 479799
30735 string characters out of 2879534 42168 string characters out of 2879534
312099 words of memory out of 3000000 328501 words of memory out of 3000000
19354 multiletter control sequences out of 15000+200000 20278 multiletter control sequences out of 15000+200000
540430 words of font info for 44 fonts, out of 3000000 for 9000 540430 words of font info for 44 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191 1141 hyphenation exceptions out of 8191
66i,8n,72p,259b,222s stack positions out of 5000i,500n,10000p,200000b,50000s 66i,8n,72p,259b,243s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:\Users\Echophile\AppData\Local\MiKTeX\font <C:\Users\Echophile\AppData\Local\MiKTeX\font
s/pk/ljfour/public/bbold/dpi600\bbold10.pk> <C:\Users\Echophile\AppData\Local\M s/pk/ljfour/public/bbold/dpi600\bbold10.pk> <C:\Users\Echophile\AppData\Local\M
iKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1000.pk> <C:\Users\Echophile\AppDa iKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1000.pk> <C:\Users\Echophile\AppDa
@ -229,7 +264,7 @@ cmr5.pfb><C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmr7.pfb><C:/P
rogram Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy10.pfb><C:/Program Files rogram Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy10.pfb><C:/Program Files
/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy7.pfb><C:/Program Files/MiKTeX/fonts /MiKTeX/fonts/type1/public/amsfonts/cm/cmsy7.pfb><C:/Program Files/MiKTeX/fonts
/type1/public/amsfonts/symbols/msam10.pfb> /type1/public/amsfonts/symbols/msam10.pfb>
Output written on "BTS 1 - DST 1 - Sujet A.pdf" (2 pages, 114683 bytes). Output written on "BTS 1 - DST 1 - Sujet A.pdf" (2 pages, 114834 bytes).
PDF statistics: PDF statistics:
148 PDF objects out of 1000 (max. 8388607) 148 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000) 0 named destinations out of 1000 (max. 500000)

@ -9,13 +9,16 @@
\usepackage{amssymb} \usepackage{amssymb}
\usepackage{amsfonts} \usepackage{amsfonts}
\usepackage{bbold} \usepackage{bbold}
\usepackage{xcolor}
\pagestyle{empty} \pagestyle{empty}
\begin{document} \begin{document}
\section*{Contrôle de Mathématiques} \section*{Contrôle de Mathématiques}
\let\MauvaiseReponse\null %\let\MauvaiseReponse\null
\let\BonneReponse\null %\let\BonneReponse\null
\def\MauvaiseReponse#1\par{\textcolor{red}{#1}}
\def\BonneReponse#1\par{\textcolor{green}{#1}}
{\bf Merci de répondre sur la grille fournie et de ne pas oublier de traiter les deux questions au verso en évitant de sortir des cadres. Vous prendrez soin de rendre le sujet avec cette grille.} {\bf Merci de répondre sur la grille fournie et de ne pas oublier de traiter les deux questions au verso en évitant de sortir des cadres. Vous prendrez soin de rendre le sujet avec cette grille.}
\vspace{2em} \vspace{2em}
@ -30,82 +33,113 @@
\item L'ensemble des solutions de l'inéquation $-2 x+2<1$ est : \item L'ensemble des solutions de l'inéquation $-2 x+2<1$ est :
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $]\frac{1}{2},+\infty[$ \item\BonneReponse $]\frac{1}{2},+\infty[$
\item\MauvaiseReponse $\mathbb{R}$ \item\MauvaiseReponse $\mathbb{R}$
\item\MauvaiseReponse $]-\infty, -\frac{1}{2}]$ \item\MauvaiseReponse $]-\infty, -\frac{1}{2}]$
\end{enumerate} \end{enumerate}
\item L'ensemble des solutions de l'inéquation $-2x+8 \geqslant 9$ \item L'ensemble des solutions de l'inéquation $-2x+8 \geqslant 9$
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse $\mathbb{R}$ \item\MauvaiseReponse $\mathbb{R}$
\item\BonneReponse $]-\infty,-\frac{1}{2}]$ \item\BonneReponse $]-\infty,-\frac{1}{2}]$
\item\MauvaiseReponse $[-\frac{1}{2},+\infty[$ \item\MauvaiseReponse $[-\frac{1}{2},+\infty[$
\end{enumerate} \end{enumerate}
\item Le nombre $\frac{1}{2}$ \item Le nombre $\frac{1}{2}$
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse est solution de l'équation $x+2=0$ \item\MauvaiseReponse est solution de l'équation $x+2=0$
\item\MauvaiseReponse est solution de l'équation $2x+1=0$ \item\MauvaiseReponse est solution de l'équation $2x+1=0$
\item\BonneReponse est solution de l'inéquation $3x+7>0$ \item\BonneReponse est solution de l'inéquation $3x+7>0$
\end{enumerate} \end{enumerate}
\item Le nombre $\sqrt{5}$ \item Le nombre $\sqrt{5}$
\begin{enumerate} \begin{enumerate}
\item\BonneReponse est solution de l'équation $x^{3}-5x=0$ \item\BonneReponse est solution de l'équation $x^{3}-5x=0$
\item\MauvaiseReponse est solution de l'inéquation $-5x+2>0$ \item\MauvaiseReponse est solution de l'inéquation $-5x+2>0$
\item\MauvaiseReponse est solution de l'équation $x^{2}+5=0$ \item\MauvaiseReponse est solution de l'équation $x^{2}+5=0$
\end{enumerate} \end{enumerate}
\newpage \newpage
\item Le nombre $\frac{1}{8}$ \item Le nombre $\frac{1}{8}$
\begin{enumerate} \begin{enumerate}
\item\BonneReponse est solution de l'équation $8x-1=0$ \item\BonneReponse est solution de l'équation $8x-1=0$
\item\MauvaiseReponse est solution de l'équation $7x+1=0$ \item\MauvaiseReponse est solution de l'équation $7x+1=0$
\item\MauvaiseReponse est solution de l'inéquation $2x+7<0$ \item\MauvaiseReponse est solution de l'inéquation $2x+7<0$
\end{enumerate} \end{enumerate}
\item Le couple solution du système $\left\{\begin{array}{c}5x+5y=10 \\ x-8y=-34\end{array}\right.$ est
\item Le couple solution du système $\left\{\begin{array}{c}5x+5y=10 \\ x-8y=-34
\end{array}\right.$ est
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse $(4;4)$ \item\MauvaiseReponse $(4;4)$
\item\BonneReponse $(-2 ;4)$ \item\BonneReponse $(-2 ;4)$
\item\MauvaiseReponse $(2 ; -2)$ \item\MauvaiseReponse $(2 ; -2)$
\end{enumerate} \end{enumerate}
@ -113,45 +147,60 @@
\item $u$ est la suite définie pour tout entier $n \geqslant 1$ par $u_{n}=\frac{3n^{2}-2}{n^{2}}$. \item $u$ est la suite définie pour tout entier $n \geqslant 1$ par $u_{n}=\frac{3n^{2}-2}{n^{2}}$.
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse $u_{3}=3$ \item\MauvaiseReponse $u_{3}=3$
\item\BonneReponse $u_{3}=\frac{25}{9}$ \item\BonneReponse $u_{3}=\frac{25}{9}$
\item\MauvaiseReponse $u_{3} =\frac{79}{9}$ \item\MauvaiseReponse $u_{3} =\frac{79}{9}$
\end{enumerate} \end{enumerate}
\item Soit $\left(u_{n}\right)$ la suite définie par: $u_{0}=4$ et, pour tout entier naturel $n$, $u_{n+1}=3 u_{n}-1$, alors : \item Soit $\left(u_{n}\right)$ la suite définie par: $u_{0}=4$ et, pour tout entier naturel $n$, $u_{n+1}=3 u_{n}-1$, alors :
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse $u_{3}=4$ \item\MauvaiseReponse $u_{3}=4$
\item\MauvaiseReponse $u_{3}=32$ \item\MauvaiseReponse $u_{3}=32$
\item\BonneReponse $u_{3}=95$ \item\BonneReponse $u_{3}=95$
\end{enumerate} \end{enumerate}
\newpage \newpage
\item $v$ est la suite définie par $v_{0}=-2$ et la relation de récurrence\\ $v_{n+1}=5n-v_{n}$, alors : \item $v$ est la suite définie par $v_{0}=-2$ et la relation de récurrence\\ $v_{n+1}=5n-v_{n}$, alors :
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $v_{2}=3$ \item\BonneReponse $v_{2}=3$
\item\MauvaiseReponse $v_{2}=-5$ \item\MauvaiseReponse $v_{2}=-5$
\item\MauvaiseReponse $v_{2}=6$ \item\MauvaiseReponse $v_{2}=6$
\end{enumerate} \end{enumerate}
@ -160,92 +209,124 @@
\item On considère la suite arithmétique $\left(u_{n}\right)$ de premier terme $u_{0}=-4$\\ et de raison $r=-\frac{3}{4}$. \item On considère la suite arithmétique $\left(u_{n}\right)$ de premier terme $u_{0}=-4$\\ et de raison $r=-\frac{3}{4}$.
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse $u_{3}=-4$ \item\MauvaiseReponse $u_{3}=-4$
\item\MauvaiseReponse $u_{3}=-\frac{11}{2}$ \item\MauvaiseReponse $u_{3}=-\frac{11}{2}$
\item\BonneReponse $u_{3}=-\frac{25}{4}$ \item\BonneReponse $u_{3}=-\frac{25}{4}$
\end{enumerate} \end{enumerate}
\item Soit $\left(u_{n}\right)$ une suite géométrique de raison $q=\frac{2}{3}$. Sachant que $u_{3}=\frac{5}{8}$,\\ le premier terme $\mathrm{u}_ {0}$ est : \item Soit $\left(u_{n}\right)$ une suite géométrique de raison $q=\frac{2}{3}$. Sachant que $u_{3}=\frac{5}{8}$,\\ le premier terme $\mathrm{u}_ {0}$ est :
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $\frac{135}{64}$ \item\BonneReponse $\frac{135}{64}$
\item\MauvaiseReponse $\frac{5}{27}$ \item\MauvaiseReponse $\frac{5}{27}$
\item\MauvaiseReponse $\frac{1024}{375}$ \item\MauvaiseReponse $\frac{1024}{375}$
\end{enumerate} \end{enumerate}
\item Soit la suite $\left(u_{n}\right)$ définie par $u_{n+1}=\frac{2}{15}u_n$. Cette suite est : \item Soit la suite $\left(u_{n}\right)$ définie par $u_{n+1}=\frac{2}{15}u_n$. Cette suite est :
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse croissante \item\MauvaiseReponse croissante
\item\BonneReponse décroissante \item\BonneReponse décroissante
\item\MauvaiseReponse constante \item\MauvaiseReponse constante
\end{enumerate} \end{enumerate}
\newpage \newpage
\item On considère l'équation $4x^{2}-3 x-9=0$ alors le discriminant $\Delta$ est égal à : \item On considère l'équation $4x^{2}-3 x-9=0$ alors le discriminant $\Delta$ est égal à :
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $153$ \item\BonneReponse $153$
\item\MauvaiseReponse $-135$ \item\MauvaiseReponse $-135$
\item\MauvaiseReponse $27$ \item\MauvaiseReponse $27$
\end{enumerate} \end{enumerate}
\item Le nombre de solutions de l'équation $3x^{2}-12 x+12=0$ est \item Le nombre de solutions de l'équation $3x^{2}-12 x+12=0$ est
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse $0$ \item\MauvaiseReponse $0$
\item\BonneReponse $1$ \item\BonneReponse $1$
\item\MauvaiseReponse $2$ \item\MauvaiseReponse $2$
\end{enumerate} \end{enumerate}
\item L'ensemble des solutions de l'équation $x^{2}+4 x-45=0$ est : \item L'ensemble des solutions de l'équation $x^{2}+4 x-45=0$ est :
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse $\emptyset$ \item\MauvaiseReponse $\emptyset$
\item\BonneReponse $\{5 ;-9\}$ \item\BonneReponse $\{5 ;-9\}$
\item\MauvaiseReponse $\{5 ; 9\}$ \item\MauvaiseReponse $\{5 ; 9\}$
\end{enumerate} \end{enumerate}
\end{enumerate} \end{enumerate}
\end{document} \end{document}

@ -1,4 +1,4 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.11) (preloaded format=pdflatex 2020.11.23) 27 OCT 2021 13:20 This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.11) (preloaded format=pdflatex 2020.11.23) 5 NOV 2021 16:43
entering extended mode entering extended mode
**"./BTS 1 - DST 1 - Sujet B.tex" **"./BTS 1 - DST 1 - Sujet B.tex"
("BTS 1 - DST 1 - Sujet B.tex" ("BTS 1 - DST 1 - Sujet B.tex"
@ -130,6 +130,27 @@ LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
Package: bbold 1994/04/06 Bbold symbol package Package: bbold 1994/04/06 Bbold symbol package
LaTeX Font Info: Redeclaring math alphabet \mathbb on input line 42. LaTeX Font Info: Redeclaring math alphabet \mathbb on input line 42.
) )
("C:\Program Files\MiKTeX\tex/latex/xcolor\xcolor.sty"
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
("C:\Program Files\MiKTeX\tex/latex/graphics-cfg\color.cfg"
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
("C:\Program Files\MiKTeX\tex/latex/graphics-def\pdftex.def"
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
("C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def" ("C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def"
File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX) File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
\l__kernel_color_stack_int=\count199 \l__kernel_color_stack_int=\count199
@ -138,20 +159,20 @@ File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
("BTS 1 - DST 1 - Sujet B.aux") ("BTS 1 - DST 1 - Sujet B.aux")
\openout1 = `"BTS 1 - DST 1 - Sujet B.aux"'. \openout1 = `"BTS 1 - DST 1 - Sujet B.aux"'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 14. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 15.
LaTeX Font Info: ... okay on input line 14. LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 14. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 15.
LaTeX Font Info: ... okay on input line 14. LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 14. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 15.
LaTeX Font Info: ... okay on input line 14. LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 14. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 15.
LaTeX Font Info: ... okay on input line 14. LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 14. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 15.
LaTeX Font Info: ... okay on input line 14. LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 14. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 15.
LaTeX Font Info: ... okay on input line 14. LaTeX Font Info: ... okay on input line 15.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 14. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 15.
LaTeX Font Info: ... okay on input line 14. LaTeX Font Info: ... okay on input line 15.
*geometry* driver: auto-detecting *geometry* driver: auto-detecting
*geometry* detected driver: pdftex *geometry* detected driver: pdftex
@ -187,19 +208,33 @@ LaTeX Font Info: ... okay on input line 14.
* \@reversemarginfalse * \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt) * (1in=72.27pt=25.4mm, 1cm=28.453pt)
LaTeX Font Info: Trying to load font information for U+msa on input line 35. ("C:\Program Files\MiKTeX\tex/context/base/mkii\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count266
\scratchdimen=\dimen156
\scratchbox=\box50
\nofMPsegments=\count267
\nofMParguments=\count268
\everyMPshowfont=\toks24
\MPscratchCnt=\count269
\MPscratchDim=\dimen157
\MPnumerator=\count270
\makeMPintoPDFobject=\count271
\everyMPtoPDFconversion=\toks25
)
LaTeX Font Info: Trying to load font information for U+msa on input line 38.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd" ("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd"
File: umsa.fd 2013/01/14 v3.01 AMS symbols A File: umsa.fd 2013/01/14 v3.01 AMS symbols A
) )
LaTeX Font Info: Trying to load font information for U+msb on input line 35. LaTeX Font Info: Trying to load font information for U+msb on input line 38.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsb.fd" ("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsb.fd"
File: umsb.fd 2013/01/14 v3.01 AMS symbols B File: umsb.fd 2013/01/14 v3.01 AMS symbols B
) )
LaTeX Font Info: Trying to load font information for U+bbold on input line 3 LaTeX Font Info: Trying to load font information for U+bbold on input line 4
9. 3.
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/jknappen\ubbold.fd (C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/jknappen\ubbold.fd
File: ubbold.fd 1996/01/01 Blackboard Bold Font Definition File (jk) File: ubbold.fd 1996/01/01 Blackboard Bold Font Definition File (jk)
@ -209,13 +244,13 @@ File: ubbold.fd 1996/01/01 Blackboard Bold Font Definition File (jk)
{C:/Users/Echophile/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] [2] {C:/Users/Echophile/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] [2]
("BTS 1 - DST 1 - Sujet B.aux") ) ("BTS 1 - DST 1 - Sujet B.aux") )
Here is how much of TeX's memory you used: Here is how much of TeX's memory you used:
2354 strings out of 479799 3294 strings out of 479799
30735 string characters out of 2879534 42168 string characters out of 2879534
312099 words of memory out of 3000000 328501 words of memory out of 3000000
19354 multiletter control sequences out of 15000+200000 20278 multiletter control sequences out of 15000+200000
540430 words of font info for 44 fonts, out of 3000000 for 9000 540430 words of font info for 44 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191 1141 hyphenation exceptions out of 8191
66i,8n,72p,259b,222s stack positions out of 5000i,500n,10000p,200000b,50000s 66i,8n,72p,259b,243s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:\Users\Echophile\AppData\Local\MiKTeX\font <C:\Users\Echophile\AppData\Local\MiKTeX\font
s/pk/ljfour/public/bbold/dpi600\bbold10.pk> <C:\Users\Echophile\AppData\Local\M s/pk/ljfour/public/bbold/dpi600\bbold10.pk> <C:\Users\Echophile\AppData\Local\M
iKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1000.pk> <C:\Users\Echophile\AppDa iKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1000.pk> <C:\Users\Echophile\AppDa
@ -229,7 +264,7 @@ cmr5.pfb><C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmr7.pfb><C:/P
rogram Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy10.pfb><C:/Program Files rogram Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy10.pfb><C:/Program Files
/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy7.pfb><C:/Program Files/MiKTeX/fonts /MiKTeX/fonts/type1/public/amsfonts/cm/cmsy7.pfb><C:/Program Files/MiKTeX/fonts
/type1/public/amsfonts/symbols/msam10.pfb> /type1/public/amsfonts/symbols/msam10.pfb>
Output written on "BTS 1 - DST 1 - Sujet B.pdf" (2 pages, 114370 bytes). Output written on "BTS 1 - DST 1 - Sujet B.pdf" (2 pages, 114509 bytes).
PDF statistics: PDF statistics:
148 PDF objects out of 1000 (max. 8388607) 148 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000) 0 named destinations out of 1000 (max. 500000)

@ -9,14 +9,17 @@
\usepackage{amssymb} \usepackage{amssymb}
\usepackage{amsfonts} \usepackage{amsfonts}
\usepackage{bbold} \usepackage{bbold}
\usepackage{xcolor}
\pagestyle{empty} \pagestyle{empty}
\begin{document} \begin{document}
\section*{Contrôle de Mathématiques} \section*{Contrôle de Mathématiques}
\let\MauvaiseReponse\null %\let\MauvaiseReponse\null
\let\BonneReponse\null %\let\BonneReponse\null
\def\MauvaiseReponse#1\par{\textcolor{red}{#1}}
\def\BonneReponse#1\par{\textcolor{green}{#1}}
{\bf Merci de répondre sur la grille fournie et de ne pas oublier de traiter les deux questions au verso en évitant de sortir des cadres. Vous prendrez soin de rendre le sujet avec cette grille.} {\bf Merci de répondre sur la grille fournie et de ne pas oublier de traiter les deux questions au verso en évitant de sortir des cadres. Vous prendrez soin de rendre le sujet avec cette grille.}
\vspace{2em} \vspace{2em}
@ -93,6 +96,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse est solution de l'équation $8x-1=0$ \item\BonneReponse est solution de l'équation $8x-1=0$
\item\MauvaiseReponse est solution de l'équation $7x+1=0$ \item\MauvaiseReponse est solution de l'équation $7x+1=0$
@ -109,6 +113,7 @@
\item\MauvaiseReponse $(6;4)$ \item\MauvaiseReponse $(6;4)$
\item\BonneReponse $(-3 ;4)$ \item\BonneReponse $(-3 ;4)$
\item\MauvaiseReponse $(2 ; -3)$ \item\MauvaiseReponse $(2 ; -3)$
@ -127,6 +132,7 @@
\item\MauvaiseReponse $u_{3} =\frac{32}{9}$ \item\MauvaiseReponse $u_{3} =\frac{32}{9}$
\item\BonneReponse $u_{3}=-\frac{22}{9}$ \item\BonneReponse $u_{3}=-\frac{22}{9}$
\end{enumerate} \end{enumerate}
@ -140,6 +146,7 @@
\item\MauvaiseReponse $u_{3}=2$ \item\MauvaiseReponse $u_{3}=2$
\item\BonneReponse $u_{3}=15$ \item\BonneReponse $u_{3}=15$
\item\MauvaiseReponse $u_{3}=6$ \item\MauvaiseReponse $u_{3}=6$
@ -155,6 +162,7 @@
\item\MauvaiseReponse $v_{2}=-5$ \item\MauvaiseReponse $v_{2}=-5$
\item\BonneReponse $v_{2}=2$ \item\BonneReponse $v_{2}=2$
\item\MauvaiseReponse $v_{2}=5$ \item\MauvaiseReponse $v_{2}=5$
@ -170,6 +178,7 @@
\item\MauvaiseReponse $u_{3}=-3$ \item\MauvaiseReponse $u_{3}=-3$
\item\BonneReponse $u_{3}=-\frac{9}{2}$ \item\BonneReponse $u_{3}=-\frac{9}{2}$
\item\MauvaiseReponse $u_{3}=-4$ \item\MauvaiseReponse $u_{3}=-4$
@ -183,6 +192,7 @@
\item\MauvaiseReponse $\frac{5}{512}$ \item\MauvaiseReponse $\frac{5}{512}$
\item\BonneReponse $40$ \item\BonneReponse $40$
\item\MauvaiseReponse $\frac{128}{125}$ \item\MauvaiseReponse $\frac{128}{125}$
@ -196,6 +206,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse décroissante \item\BonneReponse décroissante
\item\MauvaiseReponse croissante \item\MauvaiseReponse croissante
@ -212,6 +223,7 @@
\item\MauvaiseReponse $-47$ \item\MauvaiseReponse $-47$
\item\BonneReponse $97$ \item\BonneReponse $97$
\item\MauvaiseReponse $11$ \item\MauvaiseReponse $11$
@ -227,6 +239,7 @@
\item\MauvaiseReponse $2$ \item\MauvaiseReponse $2$
\item\BonneReponse $1$ \item\BonneReponse $1$
\end{enumerate} \end{enumerate}
@ -238,6 +251,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $\{4 ;-7\}$ \item\BonneReponse $\{4 ;-7\}$
\item\MauvaiseReponse $\emptyset$ \item\MauvaiseReponse $\emptyset$

@ -1,4 +1,4 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.11) (preloaded format=pdflatex 2020.11.23) 27 OCT 2021 13:20 This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.11) (preloaded format=pdflatex 2020.11.23) 5 NOV 2021 16:45
entering extended mode entering extended mode
**"./BTS 1 - DST 1 - Sujet C.tex" **"./BTS 1 - DST 1 - Sujet C.tex"
("BTS 1 - DST 1 - Sujet C.tex" ("BTS 1 - DST 1 - Sujet C.tex"
@ -126,6 +126,27 @@ LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold' LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106. (Font) U/euf/m/n --> U/euf/b/n on input line 106.
)) ))
("C:\Program Files\MiKTeX\tex/latex/xcolor\xcolor.sty"
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
("C:\Program Files\MiKTeX\tex/latex/graphics-cfg\color.cfg"
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
("C:\Program Files\MiKTeX\tex/latex/graphics-def\pdftex.def"
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
)
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
("C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def" ("C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def"
File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX) File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
\l__kernel_color_stack_int=\count199 \l__kernel_color_stack_int=\count199
@ -134,20 +155,20 @@ File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
("BTS 1 - DST 1 - Sujet C.aux") ("BTS 1 - DST 1 - Sujet C.aux")
\openout1 = `"BTS 1 - DST 1 - Sujet C.aux"'. \openout1 = `"BTS 1 - DST 1 - Sujet C.aux"'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 15. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 16.
LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 15. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 16.
LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 15. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 16.
LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 15. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 16.
LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 15. LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 16.
LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 15. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 16.
LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: ... okay on input line 16.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 15. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 16.
LaTeX Font Info: ... okay on input line 15. LaTeX Font Info: ... okay on input line 16.
*geometry* driver: auto-detecting *geometry* driver: auto-detecting
*geometry* detected driver: pdftex *geometry* detected driver: pdftex
@ -183,12 +204,26 @@ LaTeX Font Info: ... okay on input line 15.
* \@reversemarginfalse * \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt) * (1in=72.27pt=25.4mm, 1cm=28.453pt)
LaTeX Font Info: Trying to load font information for U+msa on input line 32. ("C:\Program Files\MiKTeX\tex/context/base/mkii\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count266
\scratchdimen=\dimen156
\scratchbox=\box50
\nofMPsegments=\count267
\nofMParguments=\count268
\everyMPshowfont=\toks24
\MPscratchCnt=\count269
\MPscratchDim=\dimen157
\MPnumerator=\count270
\makeMPintoPDFobject=\count271
\everyMPtoPDFconversion=\toks25
)
LaTeX Font Info: Trying to load font information for U+msa on input line 35.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd" ("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd"
File: umsa.fd 2013/01/14 v3.01 AMS symbols A File: umsa.fd 2013/01/14 v3.01 AMS symbols A
) )
LaTeX Font Info: Trying to load font information for U+msb on input line 32. LaTeX Font Info: Trying to load font information for U+msb on input line 35.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsb.fd" ("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsb.fd"
@ -198,13 +233,13 @@ File: umsb.fd 2013/01/14 v3.01 AMS symbols B
{C:/Users/Echophile/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] [2] ("BTS 1 {C:/Users/Echophile/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] [2] ("BTS 1
- DST 1 - Sujet C.aux") ) - DST 1 - Sujet C.aux") )
Here is how much of TeX's memory you used: Here is how much of TeX's memory you used:
2327 strings out of 479799 3267 strings out of 479799
30044 string characters out of 2879534 41477 string characters out of 2879534
312987 words of memory out of 3000000 329419 words of memory out of 3000000
19338 multiletter control sequences out of 15000+200000 20262 multiletter control sequences out of 15000+200000
539869 words of font info for 41 fonts, out of 3000000 for 9000 539869 words of font info for 41 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191 1141 hyphenation exceptions out of 8191
66i,8n,72p,259b,174s stack positions out of 5000i,500n,10000p,200000b,50000s 66i,8n,72p,259b,182s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:\Users\Echophile\AppData\Local\MiKTeX\fonts/pk/lj <C:\Users\Echophile\AppData\Local\MiKTeX\fonts/pk/lj
four/jknappen/ec/dpi600\ecrm1000.pk> <C:\Users\Echophile\AppData\Local\MiKTeX\f four/jknappen/ec/dpi600\ecrm1000.pk> <C:\Users\Echophile\AppData\Local\MiKTeX\f
onts/pk/ljfour/jknappen/ec/dpi600\ecbx1000.pk> <C:\Users\Echophile\AppData\Loca onts/pk/ljfour/jknappen/ec/dpi600\ecbx1000.pk> <C:\Users\Echophile\AppData\Loca
@ -218,7 +253,7 @@ eX/fonts/type1/public/amsfonts/cm/cmsy10.pfb><C:/Program Files/MiKTeX/fonts/typ
e1/public/amsfonts/cm/cmsy7.pfb><C:/Program Files/MiKTeX/fonts/type1/public/ams e1/public/amsfonts/cm/cmsy7.pfb><C:/Program Files/MiKTeX/fonts/type1/public/ams
fonts/symbols/msam10.pfb><C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/s fonts/symbols/msam10.pfb><C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/s
ymbols/msbm10.pfb> ymbols/msbm10.pfb>
Output written on "BTS 1 - DST 1 - Sujet C.pdf" (2 pages, 116481 bytes). Output written on "BTS 1 - DST 1 - Sujet C.pdf" (2 pages, 116623 bytes).
PDF statistics: PDF statistics:
147 PDF objects out of 1000 (max. 8388607) 147 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000) 0 named destinations out of 1000 (max. 500000)

@ -8,6 +8,7 @@
\usepackage{amsmath} \usepackage{amsmath}
\usepackage{amssymb} \usepackage{amssymb}
\usepackage{amsfonts} \usepackage{amsfonts}
\usepackage{xcolor}
\pagestyle{empty} \pagestyle{empty}
@ -16,8 +17,10 @@
\section*{Contrôle de Mathématiques} \section*{Contrôle de Mathématiques}
\let\MauvaiseReponse\null %\let\MauvaiseReponse\null
\let\BonneReponse\null %\let\BonneReponse\null
\def\MauvaiseReponse#1\par{\textcolor{red}{#1}}
\def\BonneReponse#1\par{\textcolor{green}{#1}}
@ -37,6 +40,7 @@
\item\MauvaiseReponse $]-\infty, \frac{1}{4}]$ \item\MauvaiseReponse $]-\infty, \frac{1}{4}]$
\item\BonneReponse $]-\frac{1}{4},+\infty[$ \item\BonneReponse $]-\frac{1}{4},+\infty[$
\end{enumerate} \end{enumerate}
@ -53,6 +57,7 @@
\item\MauvaiseReponse $\mathbb{R}$ \item\MauvaiseReponse $\mathbb{R}$
\item\BonneReponse $]-\infty,\frac{1}{5}]$ \item\BonneReponse $]-\infty,\frac{1}{5}]$
\item\MauvaiseReponse $[\frac{1}{5},+\infty[$ \item\MauvaiseReponse $[\frac{1}{5},+\infty[$
@ -67,6 +72,7 @@
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse est solution de l'équation $4x+1=0$ \item\MauvaiseReponse est solution de l'équation $4x+1=0$
\item\BonneReponse est solution de l'inéquation $4x+5>0$ \item\BonneReponse est solution de l'inéquation $4x+5>0$
\item\MauvaiseReponse est solution de l'équation $x+4=0$ \item\MauvaiseReponse est solution de l'équation $x+4=0$
@ -81,6 +87,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse est solution de l'équation $x^{3}-7x=0$ \item\BonneReponse est solution de l'équation $x^{3}-7x=0$
\item\MauvaiseReponse est solution de l'équation $x^{2}+7=0$ \item\MauvaiseReponse est solution de l'équation $x^{2}+7=0$
@ -98,6 +105,7 @@
\item\MauvaiseReponse est solution de l'inéquation $2x+3<0$ \item\MauvaiseReponse est solution de l'inéquation $2x+3<0$
\item\BonneReponse est solution de l'équation $10x-1=0$ \item\BonneReponse est solution de l'équation $10x-1=0$
\end{enumerate} \end{enumerate}
@ -110,6 +118,7 @@
\item\MauvaiseReponse $(6;-3)$ \item\MauvaiseReponse $(6;-3)$
\item\BonneReponse $(-3 ;-3)$ \item\BonneReponse $(-3 ;-3)$
\item\MauvaiseReponse $(-\frac{3}{2} ; -3)$ \item\MauvaiseReponse $(-\frac{3}{2} ; -3)$
@ -130,6 +139,7 @@
\item\MauvaiseReponse $u_{3} =\frac{77}{9}$ \item\MauvaiseReponse $u_{3} =\frac{77}{9}$
\item\BonneReponse $u_{3}=-\frac{31}{9}$ \item\BonneReponse $u_{3}=-\frac{31}{9}$
\end{enumerate} \end{enumerate}
@ -140,6 +150,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $u_{3}=313$ \item\BonneReponse $u_{3}=313$
\item\MauvaiseReponse $u_{3}=3$ \item\MauvaiseReponse $u_{3}=3$
\item\MauvaiseReponse $u_{3}=63$ \item\MauvaiseReponse $u_{3}=63$
@ -157,6 +168,7 @@
\item\MauvaiseReponse $v_{2}=-6$ \item\MauvaiseReponse $v_{2}=-6$
\item\MauvaiseReponse $v_{2}=5$ \item\MauvaiseReponse $v_{2}=5$
\item\BonneReponse $v_{2}=1$ \item\BonneReponse $v_{2}=1$
\end{enumerate} \end{enumerate}
@ -168,6 +180,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $u_{3}=-7$ \item\BonneReponse $u_{3}=-7$
\item\MauvaiseReponse $u_{3}=-5$ \item\MauvaiseReponse $u_{3}=-5$
\item\MauvaiseReponse $u_{3}=-\frac{19}{3}$ \item\MauvaiseReponse $u_{3}=-\frac{19}{3}$
@ -185,6 +198,7 @@
\item\MauvaiseReponse $\frac{4}{243}$ \item\MauvaiseReponse $\frac{4}{243}$
\item\MauvaiseReponse $\frac{243}{64}$ \item\MauvaiseReponse $\frac{243}{64}$
\item\BonneReponse $12$ \item\BonneReponse $12$
\end{enumerate} \end{enumerate}
@ -201,6 +215,7 @@
\item\MauvaiseReponse constante \item\MauvaiseReponse constante
\item\BonneReponse décroissante \item\BonneReponse décroissante
\end{enumerate} \end{enumerate}
@ -216,6 +231,7 @@
\item\MauvaiseReponse $-80$ \item\MauvaiseReponse $-80$
\item\MauvaiseReponse $-28$ \item\MauvaiseReponse $-28$
\item\BonneReponse $208$ \item\BonneReponse $208$
\end{enumerate} \end{enumerate}
@ -227,6 +243,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $1$ \item\BonneReponse $1$
\item\MauvaiseReponse $0$ \item\MauvaiseReponse $0$
@ -244,6 +261,7 @@
\item\MauvaiseReponse $\{2 ; 9\}$ \item\MauvaiseReponse $\{2 ; 9\}$
\item\BonneReponse $\{2 ;-9\}$ \item\BonneReponse $\{2 ;-9\}$
\end{enumerate} \end{enumerate}

@ -0,0 +1,2 @@
\relax
\gdef \@abspage@last{3}

@ -0,0 +1,367 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.11) (preloaded format=pdflatex 2020.11.23) 5 NOV 2021 16:54
entering extended mode
**"./TSP - DST 1 - Sujet A.tex"
("TSP - DST 1 - Sujet A.tex"
LaTeX2e <2020-10-01> patch level 2
L3 programming layer <2020-10-27> xparse <2020-03-03>
("C:\Program Files\MiKTeX\tex/latex/base\book.cls"
Document Class: book 2020/04/10 v1.4m Standard LaTeX document class
("C:\Program Files\MiKTeX\tex/latex/base\bk10.clo"
File: bk10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
)
\c@part=\count175
\c@chapter=\count176
\c@section=\count177
\c@subsection=\count178
\c@subsubsection=\count179
\c@paragraph=\count180
\c@subparagraph=\count181
\c@figure=\count182
\c@table=\count183
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)
("C:\Program Files\MiKTeX\tex/latex/base\fontenc.sty"
Package: fontenc 2020/08/10 v2.0s Standard LaTeX package
)
("C:\Program Files\MiKTeX\tex/latex/base\inputenc.sty"
Package: inputenc 2020/08/01 v1.3d Input encoding file
\inpenc@prehook=\toks15
\inpenc@posthook=\toks16
)
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/geometry\geometry.sty
Package: geometry 2020/01/02 v5.9 Page Geometry
("C:\Program Files\MiKTeX\tex/latex/graphics\keyval.sty"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks17
)
("C:\Program Files\MiKTeX\tex/generic/iftex\ifvtex.sty"
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
("C:\Program Files\MiKTeX\tex/generic/iftex\iftex.sty"
Package: iftex 2020/03/06 v1.0d TeX engine tests
))
\Gm@cnth=\count184
\Gm@cntv=\count185
\c@Gm@tempcnt=\count186
\Gm@bindingoffset=\dimen139
\Gm@wd@mp=\dimen140
\Gm@odd@mp=\dimen141
\Gm@even@mp=\dimen142
\Gm@layoutwidth=\dimen143
\Gm@layoutheight=\dimen144
\Gm@layouthoffset=\dimen145
\Gm@layoutvoffset=\dimen146
\Gm@dimlist=\toks18
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/geometry\geometry.cfg))
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsmath.sty"
Package: amsmath 2020/09/23 v2.17i AMS math features
\@mathmargin=\skip49
For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX\tex/latex/amsmath\amstext.sty"
Package: amstext 2000/06/29 v2.01 AMS text
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks19
\ex@=\dimen147
))
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen148
)
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsopn.sty"
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count187
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count188
\leftroot@=\count189
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count190
\DOTSCASE@=\count191
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box47
\strutbox@=\box48
\big@size=\dimen149
LaTeX Font Info: Redeclaring font encoding OML on input line 743.
LaTeX Font Info: Redeclaring font encoding OMS on input line 744.
\macc@depth=\count192
\c@MaxMatrixCols=\count193
\dotsspace@=\muskip16
\c@parentequation=\count194
\dspbrk@lvl=\count195
\tag@help=\toks20
\row@=\count196
\column@=\count197
\maxfields@=\count198
\andhelp@=\toks21
\eqnshift@=\dimen150
\alignsep@=\dimen151
\tagshift@=\dimen152
\tagwidth@=\dimen153
\totwidth@=\dimen154
\lineht@=\dimen155
\@envbody=\toks22
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay@stack=\toks23
LaTeX Info: Redefining \[ on input line 2923.
LaTeX Info: Redefining \] on input line 2924.
)
("C:\Program Files\MiKTeX\tex/latex/amsfonts\amssymb.sty"
Package: amssymb 2013/01/14 v3.01 AMS font symbols
("C:\Program Files\MiKTeX\tex/latex/amsfonts\amsfonts.sty"
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
))
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/stmaryrd\stmaryrd.sty
Package: stmaryrd 1994/03/03 St Mary's Road symbol package
\symstmry=\mathgroup6
LaTeX Font Info: Overwriting symbol font `stmry' in version `bold'
(Font) U/stmry/m/n --> U/stmry/b/n on input line 89.
)
("C:\Program Files\MiKTeX\tex/latex/mhchem\mhchem.sty"
Package: mhchem 2018/06/22 v4.08 for typesetting chemical formulae
("C:\Program Files\MiKTeX\tex/latex/l3kernel\expl3.sty"
Package: expl3 2020-10-27 L3 programming layer (loader)
("C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def"
File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
\l__kernel_color_stack_int=\count199
\l__pdf_internal_box=\box49
))
("C:\Program Files\MiKTeX\tex/latex/l3packages/l3keys2e\l3keys2e.sty"
Package: l3keys2e 2020-10-27 LaTeX2e option processing using LaTeX3 keys
)
("C:\Program Files\MiKTeX\tex/latex/tools\calc.sty"
Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count266
\calc@Bcount=\count267
\calc@Adimen=\dimen156
\calc@Bdimen=\dimen157
\calc@Askip=\skip52
\calc@Bskip=\skip53
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc@Ccount=\count268
\calc@Cskip=\skip54
)
("C:\Program Files\MiKTeX\tex/latex/chemgreek\chemgreek.sty"
("C:\Program Files\MiKTeX\tex/latex/l3packages/xparse\xparse.sty"
Package: xparse 2020-10-27 L3 Experimental document command parser
("C:\Program Files\MiKTeX\tex/latex/l3packages/xparse\xparse-generic.tex"))
Package: chemgreek 2020/01/16 v1.1a interface for upright Greek letters for use
in chemistry (CN)
\l__chemgreek_tmpa_int=\count269
\g__chemgreek_tmpa_int=\count270
)
("C:\Program Files\MiKTeX\tex/latex/graphics\graphics.sty"
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
("C:\Program Files\MiKTeX\tex/latex/graphics\trig.sty"
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX\tex/latex/graphics-cfg\graphics.cfg"
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 105.
("C:\Program Files\MiKTeX\tex/latex/graphics-def\pdftex.def"
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
))
\l__mhchem_ce_distanceFromLastComma_int=\count271
\__mhchem_arrow_extPgfLength_skip=\skip55
\mhchem@minispace@tmp=\skip56
\mhchem@minibackspace@tmp=\skip57
\mhchem@bondwidth=\skip58
\mhchem@bondheight=\skip59
\mhchem@smallbondwidth@tmpA=\skip60
\mhchem@smallbondwidth@tmpB=\skip61
\mhchem@smallbondwidth=\skip62
\mhchem@bondtmp@minussidebearingleft=\skip63
\mhchem@bondtmp@minussidebearingright=\skip64
\l__mhchem_option_version_int=\count272
\mhchem@option@minusmathsidebearingleft=\dimen158
\mhchem@option@minusmathsidebearingright=\dimen159
\mhchem@option@minustextsidebearingleft=\dimen160
\mhchem@option@minustextsidebearingright=\dimen161
)
("C:\Program Files\MiKTeX\tex/latex/xcolor\xcolor.sty"
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
("C:\Program Files\MiKTeX\tex/latex/graphics-cfg\color.cfg"
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
("C:\Program Files\MiKTeX\tex/latex/bbold\bbold.sty"
Package: bbold 1994/04/06 Bbold symbol package
LaTeX Font Info: Redeclaring math alphabet \mathbb on input line 42.
)
("TSP - DST 1 - Sujet A.aux")
\openout1 = `"TSP - DST 1 - Sujet A.aux"'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 30.
LaTeX Font Info: ... okay on input line 30.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 30.
LaTeX Font Info: ... okay on input line 30.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 30.
LaTeX Font Info: ... okay on input line 30.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 30.
LaTeX Font Info: ... okay on input line 30.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 30.
LaTeX Font Info: ... okay on input line 30.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 30.
LaTeX Font Info: ... okay on input line 30.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 30.
LaTeX Font Info: ... okay on input line 30.
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
Package geometry Warning: The marginal notes overrun the paper.
Add 75.0945pt and more to the right margin.
*geometry* verbose mode - [ preamble ] result:
* driver: pdftex
* paper: <default>
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* modes: twoside
* h-part:(L,W,R)=(56.9055pt, 500.484pt, 56.9055pt)
* v-part:(T,H,B)=(56.9055pt, 681.15898pt, 56.9055pt)
* \paperwidth=614.295pt
* \paperheight=794.96999pt
* \textwidth=500.484pt
* \textheight=681.15898pt
* \oddsidemargin=-15.36449pt
* \evensidemargin=-15.36449pt
* \topmargin=-45.43198pt
* \headheight=12.0pt
* \headsep=18.06749pt
* \topskip=10.0pt
* \footskip=25.29494pt
* \marginparwidth=125.0pt
* \marginparsep=7.0pt
* \columnsep=10.0pt
* \skip\footins=9.0pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidetrue
* \@mparswitchtrue
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)
Package chemgreek Info: Activating mapping `default' on line 30.
("C:\Program Files\MiKTeX\tex/context/base/mkii\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count273
\scratchdimen=\dimen162
\scratchbox=\box50
\nofMPsegments=\count274
\nofMParguments=\count275
\everyMPshowfont=\toks24
\MPscratchCnt=\count276
\MPscratchDim=\dimen163
\MPnumerator=\count277
\makeMPintoPDFobject=\count278
\everyMPtoPDFconversion=\toks25
) ("C:\Program Files\MiKTeX\tex/latex/epstopdf-pkg\epstopdf-base.sty"
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
85.
)
LaTeX Font Info: Trying to load font information for U+msa on input line 49.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd"
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
)
LaTeX Font Info: Trying to load font information for U+msb on input line 49.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsb.fd"
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
)
LaTeX Font Info: Trying to load font information for U+stmry on input line 4
9.
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/stmaryrd\ustmry.fd)
LaTeX Font Info: Trying to load font information for U+bbold on input line 5
5.
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/jknappen\ubbold.fd
File: ubbold.fd 1996/01/01 Blackboard Bold Font Definition File (jk)
)
[1
{C:/Users/Echophile/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] [2]
Overfull \hbox (5.8505pt too wide) in paragraph at lines 308--309
[]\T1/cmr/m/n/10 On con-sid-ère deux tri-an-gles non plat $\OML/cmm/m/it/10 ABC
$ \T1/cmr/m/n/10 et $\OML/cmm/m/it/10 A[]B[]C[]$ \T1/cmr/m/n/10 tels que $[] \O
ML/cmm/m/it/10 == []$\T1/cmr/m/n/10 , $[] \OML/cmm/m/it/10 == []$ \T1/cmr/m/n/1
0 et $[] \OML/cmm/m/it/10 == []$\T1/cmr/m/n/10 .
[]
Overfull \hbox (5.8505pt too wide) in paragraph at lines 323--324
[]\T1/cmr/m/n/10 On con-sid-ère deux tri-an-gles non plat $\OML/cmm/m/it/10 ABC
$ \T1/cmr/m/n/10 et $\OML/cmm/m/it/10 A[]B[]C[]$ \T1/cmr/m/n/10 tels que $[] \O
ML/cmm/m/it/10 == []$\T1/cmr/m/n/10 , $[] \OML/cmm/m/it/10 == []$ \T1/cmr/m/n/1
0 et $[] \OML/cmm/m/it/10 == []$\T1/cmr/m/n/10 .
[]
[3] ("TSP - DST 1 - Sujet A.aux") )
Here is how much of TeX's memory you used:
4771 strings out of 479799
70734 string characters out of 2879534
376878 words of memory out of 3000000
21708 multiletter control sequences out of 15000+200000
541864 words of font info for 48 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
66i,8n,73p,411b,307s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:\Users\Echophile\AppData\Local\MiKTeX\fo
nts/pk/ljfour/public/bbold/dpi600\bbold10.pk> <C:\Users\Echophile\AppData\Local
\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1000.pk> <C:\Users\Echophile\App
Data\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1000.pk> <C:\Users\Ech
ophile\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx2488.pk><C:/
Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmex10.pfb><C:/Program File
s/MiKTeX/fonts/type1/public/amsfonts/cm/cmmi10.pfb><C:/Program Files/MiKTeX/fon
ts/type1/public/amsfonts/cm/cmr10.pfb><C:/Program Files/MiKTeX/fonts/type1/publ
ic/amsfonts/cm/cmr7.pfb><C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm
/cmsy10.pfb><C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy7.pfb><
C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/symbols/msam10.pfb>
Output written on "TSP - DST 1 - Sujet A.pdf" (3 pages, 105136 bytes).
PDF statistics:
138 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

@ -10,7 +10,7 @@
\usepackage{stmaryrd} \usepackage{stmaryrd}
\PassOptionsToPackage{version=3}{mhchem} \PassOptionsToPackage{version=3}{mhchem}
\usepackage{mhchem} \usepackage{mhchem}
\usepackage{xcolor}
\makeatletter \makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{amsfonts} \usepackage{amsfonts}
@ -31,8 +31,11 @@
\chapter*{Contrôle de Mathématiques} \chapter*{Contrôle de Mathématiques}
\let\MauvaiseReponse\null %\let\MauvaiseReponse\null
\let\BonneReponse\null %\let\BonneReponse\null
\def\MauvaiseReponse#1\par{\textcolor{red}{#1}}
\def\BonneReponse#1\par{\textcolor{green}{#1}}
{\bf Merci de répondre sur la grille fournie et de rendre le sujet avec la grille.} {\bf Merci de répondre sur la grille fournie et de rendre le sujet avec la grille.}
\vspace{2em} \vspace{2em}
@ -45,9 +48,13 @@
\item L'ensemble des solutions de l'inéquation $-2 x+2<1$ est : \item L'ensemble des solutions de l'inéquation $-2 x+2<1$ est :
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $]\frac{1}{2},+\infty[$ \item\BonneReponse $]\frac{1}{2},+\infty[$
\item\MauvaiseReponse $\mathbb{R}$ \item\MauvaiseReponse $\mathbb{R}$
\item\MauvaiseReponse $]-\infty, -\frac{1}{2}]$ \item\MauvaiseReponse $]-\infty, -\frac{1}{2}]$
\end{enumerate} \end{enumerate}
@ -59,6 +66,7 @@
\item\BonneReponse $]-\infty,-\frac{1}{2}]$ \item\BonneReponse $]-\infty,-\frac{1}{2}]$
\item\MauvaiseReponse $[-\frac{1}{2},+\infty[$ \item\MauvaiseReponse $[-\frac{1}{2},+\infty[$
\end{enumerate} \end{enumerate}
@ -72,6 +80,7 @@
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse est solution de l'équation $x+2=0$ \item\MauvaiseReponse est solution de l'équation $x+2=0$
\item\MauvaiseReponse est solution de l'équation $2x+1=0$ \item\MauvaiseReponse est solution de l'équation $2x+1=0$
@ -89,6 +98,7 @@
\item\BonneReponse est solution de l'équation $x^{3}-5x=0$ \item\BonneReponse est solution de l'équation $x^{3}-5x=0$
\item\MauvaiseReponse est solution de l'inéquation $-5x+2>0$ \item\MauvaiseReponse est solution de l'inéquation $-5x+2>0$
\item\MauvaiseReponse est solution de l'équation $x^{2}+5=0$ \item\MauvaiseReponse est solution de l'équation $x^{2}+5=0$
\end{enumerate} \end{enumerate}
@ -101,6 +111,7 @@
\item\BonneReponse est solution de l'équation $8x-1=0$ \item\BonneReponse est solution de l'équation $8x-1=0$
\item\MauvaiseReponse est solution de l'équation $7x+1=0$ \item\MauvaiseReponse est solution de l'équation $7x+1=0$
\item\MauvaiseReponse est solution de l'inéquation $2x+7<0$ \item\MauvaiseReponse est solution de l'inéquation $2x+7<0$
@ -117,6 +128,7 @@
\item\MauvaiseReponse $(4;4)$ \item\MauvaiseReponse $(4;4)$
\item\BonneReponse $(-2 ;4)$ \item\BonneReponse $(-2 ;4)$
\item\MauvaiseReponse $(2 ; -2)$ \item\MauvaiseReponse $(2 ; -2)$
@ -269,6 +281,7 @@
\item\MauvaiseReponse $23\mathrm{cm}$ \item\MauvaiseReponse $23\mathrm{cm}$
\item\BonneReponse $40\mathrm{cm}$ \item\BonneReponse $40\mathrm{cm}$
\item\MauvaiseReponse $50\mathrm{cm}$ \item\MauvaiseReponse $50\mathrm{cm}$
@ -285,6 +298,7 @@
\item\MauvaiseReponse $AB=24\mathrm{cm}$, $AC=34\mathrm{cm}$ et $BC=10\mathrm{cm}$ \item\MauvaiseReponse $AB=24\mathrm{cm}$, $AC=34\mathrm{cm}$ et $BC=10\mathrm{cm}$
\item\MauvaiseReponse $AB=24\mathrm{cm}$, $AC=14\mathrm{cm}$ et $BC=10\mathrm{cm}$ \item\MauvaiseReponse $AB=24\mathrm{cm}$, $AC=14\mathrm{cm}$ et $BC=10\mathrm{cm}$
\item\BonneReponse $AB=24\mathrm{cm}$, $AC=26\mathrm{cm}$ et $BC=10\mathrm{cm}$ \item\BonneReponse $AB=24\mathrm{cm}$, $AC=26\mathrm{cm}$ et $BC=10\mathrm{cm}$
\end{enumerate} \end{enumerate}
@ -299,6 +313,7 @@
\item\MauvaiseReponse $9\mathrm{cm}$ \item\MauvaiseReponse $9\mathrm{cm}$
\item\BonneReponse $16\mathrm{mm}$ \item\BonneReponse $16\mathrm{mm}$
\item\MauvaiseReponse $36\mathrm{cm}$ \item\MauvaiseReponse $36\mathrm{cm}$
\end{enumerate} \end{enumerate}
@ -311,6 +326,7 @@
\item\MauvaiseReponse $50\mathrm{mm}$ \item\MauvaiseReponse $50\mathrm{mm}$
\item\BonneReponse $80\mathrm{mm}$ \item\BonneReponse $80\mathrm{mm}$
\item\MauvaiseReponse $50\mathrm{cm}$ \item\MauvaiseReponse $50\mathrm{cm}$

@ -0,0 +1,2 @@
\relax
\gdef \@abspage@last{4}

@ -0,0 +1,368 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.11) (preloaded format=pdflatex 2020.11.23) 5 NOV 2021 16:54
entering extended mode
**"./TSP - DST 1 - Sujet B.tex"
("TSP - DST 1 - Sujet B.tex"
LaTeX2e <2020-10-01> patch level 2
L3 programming layer <2020-10-27> xparse <2020-03-03>
("C:\Program Files\MiKTeX\tex/latex/base\book.cls"
Document Class: book 2020/04/10 v1.4m Standard LaTeX document class
("C:\Program Files\MiKTeX\tex/latex/base\bk10.clo"
File: bk10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
)
\c@part=\count175
\c@chapter=\count176
\c@section=\count177
\c@subsection=\count178
\c@subsubsection=\count179
\c@paragraph=\count180
\c@subparagraph=\count181
\c@figure=\count182
\c@table=\count183
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)
("C:\Program Files\MiKTeX\tex/latex/base\fontenc.sty"
Package: fontenc 2020/08/10 v2.0s Standard LaTeX package
)
("C:\Program Files\MiKTeX\tex/latex/base\inputenc.sty"
Package: inputenc 2020/08/01 v1.3d Input encoding file
\inpenc@prehook=\toks15
\inpenc@posthook=\toks16
)
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/geometry\geometry.sty
Package: geometry 2020/01/02 v5.9 Page Geometry
("C:\Program Files\MiKTeX\tex/latex/graphics\keyval.sty"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks17
)
("C:\Program Files\MiKTeX\tex/generic/iftex\ifvtex.sty"
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
("C:\Program Files\MiKTeX\tex/generic/iftex\iftex.sty"
Package: iftex 2020/03/06 v1.0d TeX engine tests
))
\Gm@cnth=\count184
\Gm@cntv=\count185
\c@Gm@tempcnt=\count186
\Gm@bindingoffset=\dimen139
\Gm@wd@mp=\dimen140
\Gm@odd@mp=\dimen141
\Gm@even@mp=\dimen142
\Gm@layoutwidth=\dimen143
\Gm@layoutheight=\dimen144
\Gm@layouthoffset=\dimen145
\Gm@layoutvoffset=\dimen146
\Gm@dimlist=\toks18
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/geometry\geometry.cfg))
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsmath.sty"
Package: amsmath 2020/09/23 v2.17i AMS math features
\@mathmargin=\skip49
For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX\tex/latex/amsmath\amstext.sty"
Package: amstext 2000/06/29 v2.01 AMS text
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks19
\ex@=\dimen147
))
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen148
)
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsopn.sty"
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count187
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count188
\leftroot@=\count189
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count190
\DOTSCASE@=\count191
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box47
\strutbox@=\box48
\big@size=\dimen149
LaTeX Font Info: Redeclaring font encoding OML on input line 743.
LaTeX Font Info: Redeclaring font encoding OMS on input line 744.
\macc@depth=\count192
\c@MaxMatrixCols=\count193
\dotsspace@=\muskip16
\c@parentequation=\count194
\dspbrk@lvl=\count195
\tag@help=\toks20
\row@=\count196
\column@=\count197
\maxfields@=\count198
\andhelp@=\toks21
\eqnshift@=\dimen150
\alignsep@=\dimen151
\tagshift@=\dimen152
\tagwidth@=\dimen153
\totwidth@=\dimen154
\lineht@=\dimen155
\@envbody=\toks22
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay@stack=\toks23
LaTeX Info: Redefining \[ on input line 2923.
LaTeX Info: Redefining \] on input line 2924.
)
("C:\Program Files\MiKTeX\tex/latex/amsfonts\amssymb.sty"
Package: amssymb 2013/01/14 v3.01 AMS font symbols
("C:\Program Files\MiKTeX\tex/latex/amsfonts\amsfonts.sty"
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
))
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/stmaryrd\stmaryrd.sty
Package: stmaryrd 1994/03/03 St Mary's Road symbol package
\symstmry=\mathgroup6
LaTeX Font Info: Overwriting symbol font `stmry' in version `bold'
(Font) U/stmry/m/n --> U/stmry/b/n on input line 89.
)
("C:\Program Files\MiKTeX\tex/latex/mhchem\mhchem.sty"
Package: mhchem 2018/06/22 v4.08 for typesetting chemical formulae
("C:\Program Files\MiKTeX\tex/latex/l3kernel\expl3.sty"
Package: expl3 2020-10-27 L3 programming layer (loader)
("C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def"
File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
\l__kernel_color_stack_int=\count199
\l__pdf_internal_box=\box49
))
("C:\Program Files\MiKTeX\tex/latex/l3packages/l3keys2e\l3keys2e.sty"
Package: l3keys2e 2020-10-27 LaTeX2e option processing using LaTeX3 keys
)
("C:\Program Files\MiKTeX\tex/latex/tools\calc.sty"
Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count266
\calc@Bcount=\count267
\calc@Adimen=\dimen156
\calc@Bdimen=\dimen157
\calc@Askip=\skip52
\calc@Bskip=\skip53
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc@Ccount=\count268
\calc@Cskip=\skip54
)
("C:\Program Files\MiKTeX\tex/latex/chemgreek\chemgreek.sty"
("C:\Program Files\MiKTeX\tex/latex/l3packages/xparse\xparse.sty"
Package: xparse 2020-10-27 L3 Experimental document command parser
("C:\Program Files\MiKTeX\tex/latex/l3packages/xparse\xparse-generic.tex"))
Package: chemgreek 2020/01/16 v1.1a interface for upright Greek letters for use
in chemistry (CN)
\l__chemgreek_tmpa_int=\count269
\g__chemgreek_tmpa_int=\count270
)
("C:\Program Files\MiKTeX\tex/latex/graphics\graphics.sty"
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
("C:\Program Files\MiKTeX\tex/latex/graphics\trig.sty"
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX\tex/latex/graphics-cfg\graphics.cfg"
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 105.
("C:\Program Files\MiKTeX\tex/latex/graphics-def\pdftex.def"
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
))
\l__mhchem_ce_distanceFromLastComma_int=\count271
\__mhchem_arrow_extPgfLength_skip=\skip55
\mhchem@minispace@tmp=\skip56
\mhchem@minibackspace@tmp=\skip57
\mhchem@bondwidth=\skip58
\mhchem@bondheight=\skip59
\mhchem@smallbondwidth@tmpA=\skip60
\mhchem@smallbondwidth@tmpB=\skip61
\mhchem@smallbondwidth=\skip62
\mhchem@bondtmp@minussidebearingleft=\skip63
\mhchem@bondtmp@minussidebearingright=\skip64
\l__mhchem_option_version_int=\count272
\mhchem@option@minusmathsidebearingleft=\dimen158
\mhchem@option@minusmathsidebearingright=\dimen159
\mhchem@option@minustextsidebearingleft=\dimen160
\mhchem@option@minustextsidebearingright=\dimen161
)
("C:\Program Files\MiKTeX\tex/latex/xcolor\xcolor.sty"
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
("C:\Program Files\MiKTeX\tex/latex/graphics-cfg\color.cfg"
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
("C:\Program Files\MiKTeX\tex/latex/bbold\bbold.sty"
Package: bbold 1994/04/06 Bbold symbol package
LaTeX Font Info: Redeclaring math alphabet \mathbb on input line 42.
)
No file "TSP - DST 1 - Sujet B".aux.
\openout1 = `"TSP - DST 1 - Sujet B.aux"'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
Package geometry Warning: The marginal notes overrun the paper.
Add 75.0945pt and more to the right margin.
*geometry* verbose mode - [ preamble ] result:
* driver: pdftex
* paper: <default>
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* modes: twoside
* h-part:(L,W,R)=(56.9055pt, 500.484pt, 56.9055pt)
* v-part:(T,H,B)=(56.9055pt, 681.15898pt, 56.9055pt)
* \paperwidth=614.295pt
* \paperheight=794.96999pt
* \textwidth=500.484pt
* \textheight=681.15898pt
* \oddsidemargin=-15.36449pt
* \evensidemargin=-15.36449pt
* \topmargin=-45.43198pt
* \headheight=12.0pt
* \headsep=18.06749pt
* \topskip=10.0pt
* \footskip=25.29494pt
* \marginparwidth=125.0pt
* \marginparsep=7.0pt
* \columnsep=10.0pt
* \skip\footins=9.0pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidetrue
* \@mparswitchtrue
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)
Package chemgreek Info: Activating mapping `default' on line 31.
("C:\Program Files\MiKTeX\tex/context/base/mkii\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count273
\scratchdimen=\dimen162
\scratchbox=\box50
\nofMPsegments=\count274
\nofMParguments=\count275
\everyMPshowfont=\toks24
\MPscratchCnt=\count276
\MPscratchDim=\dimen163
\MPnumerator=\count277
\makeMPintoPDFobject=\count278
\everyMPtoPDFconversion=\toks25
) ("C:\Program Files\MiKTeX\tex/latex/epstopdf-pkg\epstopdf-base.sty"
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
85.
)
LaTeX Font Info: Trying to load font information for U+msa on input line 47.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd"
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
)
LaTeX Font Info: Trying to load font information for U+msb on input line 47.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsb.fd"
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
)
LaTeX Font Info: Trying to load font information for U+stmry on input line 4
7.
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/stmaryrd\ustmry.fd)
LaTeX Font Info: Trying to load font information for U+bbold on input line 5
2.
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/jknappen\ubbold.fd
File: ubbold.fd 1996/01/01 Blackboard Bold Font Definition File (jk)
)
[1
{C:/Users/Echophile/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] [2]
[3]
Overfull \hbox (5.8505pt too wide) in paragraph at lines 296--297
[]\T1/cmr/m/n/10 On con-sid-ère deux tri-an-gles non plat $\OML/cmm/m/it/10 ABC
$ \T1/cmr/m/n/10 et $\OML/cmm/m/it/10 A[]B[]C[]$ \T1/cmr/m/n/10 tels que $[] \O
ML/cmm/m/it/10 == []$\T1/cmr/m/n/10 , $[] \OML/cmm/m/it/10 == []$ \T1/cmr/m/n/1
0 et $[] \OML/cmm/m/it/10 == []$\T1/cmr/m/n/10 .
[]
Overfull \hbox (5.8505pt too wide) in paragraph at lines 310--311
[]\T1/cmr/m/n/10 On con-sid-ère deux tri-an-gles non plat $\OML/cmm/m/it/10 ABC
$ \T1/cmr/m/n/10 et $\OML/cmm/m/it/10 A[]B[]C[]$ \T1/cmr/m/n/10 tels que $[] \O
ML/cmm/m/it/10 == []$\T1/cmr/m/n/10 , $[] \OML/cmm/m/it/10 == []$ \T1/cmr/m/n/1
0 et $[] \OML/cmm/m/it/10 == []$\T1/cmr/m/n/10 .
[]
[4] ("TSP - DST 1 - Sujet B.aux") )
Here is how much of TeX's memory you used:
4769 strings out of 479799
70613 string characters out of 2879534
376878 words of memory out of 3000000
21708 multiletter control sequences out of 15000+200000
541864 words of font info for 48 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
66i,8n,73p,422b,307s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:\Users\Echophile\AppData\Local\MiKTeX\fo
nts/pk/ljfour/public/bbold/dpi600\bbold10.pk> <C:\Users\Echophile\AppData\Local
\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1000.pk> <C:\Users\Echophile\App
Data\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1000.pk> <C:\Users\Ech
ophile\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx2488.pk><C:/
Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmex10.pfb><C:/Program File
s/MiKTeX/fonts/type1/public/amsfonts/cm/cmmi10.pfb><C:/Program Files/MiKTeX/fon
ts/type1/public/amsfonts/cm/cmr10.pfb><C:/Program Files/MiKTeX/fonts/type1/publ
ic/amsfonts/cm/cmr5.pfb><C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm
/cmr7.pfb><C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy10.pfb><C
:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy7.pfb><C:/Program Fil
es/MiKTeX/fonts/type1/public/amsfonts/symbols/msam10.pfb>
Output written on "TSP - DST 1 - Sujet B.pdf" (4 pages, 113276 bytes).
PDF statistics:
145 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

@ -10,6 +10,7 @@
\usepackage{stmaryrd} \usepackage{stmaryrd}
\PassOptionsToPackage{version=3}{mhchem} \PassOptionsToPackage{version=3}{mhchem}
\usepackage{mhchem} \usepackage{mhchem}
\usepackage{xcolor}
\makeatletter \makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
@ -31,8 +32,10 @@
\chapter*{Contrôle de Mathématiques} \chapter*{Contrôle de Mathématiques}
\let\MauvaiseReponse\null %\let\MauvaiseReponse\null
\let\BonneReponse\null %\let\BonneReponse\null
\def\MauvaiseReponse#1\par{\textcolor{red}{#1}}
\def\BonneReponse#1\par{\textcolor{green}{#1}}
{\bf Merci de répondre sur la grille fournie et de rendre le sujet avec la grille.} {\bf Merci de répondre sur la grille fournie et de rendre le sujet avec la grille.}
\vspace{2em} \vspace{2em}
@ -102,6 +105,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse est solution de l'équation $8x-1=0$ \item\BonneReponse est solution de l'équation $8x-1=0$
\item\MauvaiseReponse est solution de l'équation $7x+1=0$ \item\MauvaiseReponse est solution de l'équation $7x+1=0$
@ -118,6 +122,7 @@
\item\MauvaiseReponse $(6;4)$ \item\MauvaiseReponse $(6;4)$
\item\BonneReponse $(-3 ;4)$ \item\BonneReponse $(-3 ;4)$
\item\MauvaiseReponse $(2 ; -3)$ \item\MauvaiseReponse $(2 ; -3)$
@ -130,6 +135,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $\{4 ;-6\}$ \item\BonneReponse $\{4 ;-6\}$
\item\MauvaiseReponse $\emptyset$ \item\MauvaiseReponse $\emptyset$
@ -144,6 +150,7 @@
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse $\frac{23}{10}$ \item\MauvaiseReponse $\frac{23}{10}$
\item\BonneReponse $-\frac{1}{10}$ \item\BonneReponse $-\frac{1}{10}$
\item\MauvaiseReponse $\frac{23}{20}$ \item\MauvaiseReponse $\frac{23}{20}$
@ -159,6 +166,7 @@
\item\MauvaiseReponse $\frac{72}{5}$ \item\MauvaiseReponse $\frac{72}{5}$
\item\BonneReponse $\frac{32}{45}$ \item\BonneReponse $\frac{32}{45}$
\item\MauvaiseReponse $\frac{9}{10}$ \item\MauvaiseReponse $\frac{9}{10}$
@ -175,6 +183,7 @@
\item\MauvaiseReponse $\cos (\hat{C})=\frac{2}{5}$ \item\MauvaiseReponse $\cos (\hat{C})=\frac{2}{5}$
\item\BonneReponse $AC=\sqrt{84}$ \item\BonneReponse $AC=\sqrt{84}$
\end{enumerate} \end{enumerate}
@ -188,6 +197,7 @@
\item\MauvaiseReponse $\tan (\hat{C})=\frac{2}{7}$ \item\MauvaiseReponse $\tan (\hat{C})=\frac{2}{7}$
\item\BonneReponse $\cos (\hat{B})=\frac{2}{7}$ \item\BonneReponse $\cos (\hat{B})=\frac{2}{7}$
\item\MauvaiseReponse $AC=\sqrt{212}$ \item\MauvaiseReponse $AC=\sqrt{212}$
@ -200,6 +210,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $\arctan\left(\frac{35}{20}\right)$ \item\BonneReponse $\arctan\left(\frac{35}{20}\right)$
\item\MauvaiseReponse $20\times\arctan\left(35\right)$ \item\MauvaiseReponse $20\times\arctan\left(35\right)$
@ -230,6 +241,7 @@
\item\MauvaiseReponse $\widehat{C}=40^{\circ}$ \item\MauvaiseReponse $\widehat{C}=40^{\circ}$
\item\BonneReponse $\widehat{C}=30^{\circ}$ \item\BonneReponse $\widehat{C}=30^{\circ}$
\item\MauvaiseReponse $\widehat{C}=15^{\circ}$ \item\MauvaiseReponse $\widehat{C}=15^{\circ}$
@ -245,6 +257,7 @@
\item\MauvaiseReponse $47\mathrm{cm}$ \item\MauvaiseReponse $47\mathrm{cm}$
\item\BonneReponse $37\mathrm{cm}$ \item\BonneReponse $37\mathrm{cm}$
\item\MauvaiseReponse $23\mathrm{cm}$ \item\MauvaiseReponse $23\mathrm{cm}$
\end{enumerate} \end{enumerate}
@ -259,6 +272,7 @@
\item\MauvaiseReponse $47\mathrm{cm}$ \item\MauvaiseReponse $47\mathrm{cm}$
\item\MauvaiseReponse $98\mathrm{cm}$ \item\MauvaiseReponse $98\mathrm{cm}$
\item\BonneReponse $84\mathrm{cm}$ \item\BonneReponse $84\mathrm{cm}$
\end{enumerate} \end{enumerate}
@ -299,6 +313,7 @@
\item\MauvaiseReponse $12\mathrm{mm}$ \item\MauvaiseReponse $12\mathrm{mm}$
\item\BonneReponse $750\mathrm{mm}$ \item\BonneReponse $750\mathrm{mm}$
\item\MauvaiseReponse $12\mathrm{cm}$ \item\MauvaiseReponse $12\mathrm{cm}$
@ -315,6 +330,7 @@
\item\MauvaiseReponse $AB=21\mathrm{m}$, $AC=84\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=36\mathrm{cm}$ \item\MauvaiseReponse $AB=21\mathrm{m}$, $AC=84\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=36\mathrm{cm}$
\item\BonneReponse $AB=21\mathrm{m}$, $AC=84\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=196\mathrm{cm}$ \item\BonneReponse $AB=21\mathrm{m}$, $AC=84\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=196\mathrm{cm}$
\item\MauvaiseReponse $AB=21\mathrm{m}$, $AC=84\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=9\mathrm{cm}$ \item\MauvaiseReponse $AB=21\mathrm{m}$, $AC=84\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=9\mathrm{cm}$

@ -0,0 +1,2 @@
\relax
\gdef \@abspage@last{3}

@ -0,0 +1,367 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.11) (preloaded format=pdflatex 2020.11.23) 5 NOV 2021 16:54
entering extended mode
**"./TSP - DST 1 - Sujet C.tex"
("TSP - DST 1 - Sujet C.tex"
LaTeX2e <2020-10-01> patch level 2
L3 programming layer <2020-10-27> xparse <2020-03-03>
("C:\Program Files\MiKTeX\tex/latex/base\book.cls"
Document Class: book 2020/04/10 v1.4m Standard LaTeX document class
("C:\Program Files\MiKTeX\tex/latex/base\bk10.clo"
File: bk10.clo 2020/04/10 v1.4m Standard LaTeX file (size option)
)
\c@part=\count175
\c@chapter=\count176
\c@section=\count177
\c@subsection=\count178
\c@subsubsection=\count179
\c@paragraph=\count180
\c@subparagraph=\count181
\c@figure=\count182
\c@table=\count183
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)
("C:\Program Files\MiKTeX\tex/latex/base\fontenc.sty"
Package: fontenc 2020/08/10 v2.0s Standard LaTeX package
)
("C:\Program Files\MiKTeX\tex/latex/base\inputenc.sty"
Package: inputenc 2020/08/01 v1.3d Input encoding file
\inpenc@prehook=\toks15
\inpenc@posthook=\toks16
)
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/geometry\geometry.sty
Package: geometry 2020/01/02 v5.9 Page Geometry
("C:\Program Files\MiKTeX\tex/latex/graphics\keyval.sty"
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks17
)
("C:\Program Files\MiKTeX\tex/generic/iftex\ifvtex.sty"
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.
("C:\Program Files\MiKTeX\tex/generic/iftex\iftex.sty"
Package: iftex 2020/03/06 v1.0d TeX engine tests
))
\Gm@cnth=\count184
\Gm@cntv=\count185
\c@Gm@tempcnt=\count186
\Gm@bindingoffset=\dimen139
\Gm@wd@mp=\dimen140
\Gm@odd@mp=\dimen141
\Gm@even@mp=\dimen142
\Gm@layoutwidth=\dimen143
\Gm@layoutheight=\dimen144
\Gm@layouthoffset=\dimen145
\Gm@layoutvoffset=\dimen146
\Gm@dimlist=\toks18
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/geometry\geometry.cfg))
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsmath.sty"
Package: amsmath 2020/09/23 v2.17i AMS math features
\@mathmargin=\skip49
For additional information on amsmath, use the `?' option.
("C:\Program Files\MiKTeX\tex/latex/amsmath\amstext.sty"
Package: amstext 2000/06/29 v2.01 AMS text
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsgen.sty"
File: amsgen.sty 1999/11/30 v2.0 generic functions
\@emptytoks=\toks19
\ex@=\dimen147
))
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsbsy.sty"
Package: amsbsy 1999/11/29 v1.2d Bold Symbols
\pmbraise@=\dimen148
)
("C:\Program Files\MiKTeX\tex/latex/amsmath\amsopn.sty"
Package: amsopn 2016/03/08 v2.02 operator names
)
\inf@bad=\count187
LaTeX Info: Redefining \frac on input line 234.
\uproot@=\count188
\leftroot@=\count189
LaTeX Info: Redefining \overline on input line 399.
\classnum@=\count190
\DOTSCASE@=\count191
LaTeX Info: Redefining \ldots on input line 496.
LaTeX Info: Redefining \dots on input line 499.
LaTeX Info: Redefining \cdots on input line 620.
\Mathstrutbox@=\box47
\strutbox@=\box48
\big@size=\dimen149
LaTeX Font Info: Redeclaring font encoding OML on input line 743.
LaTeX Font Info: Redeclaring font encoding OMS on input line 744.
\macc@depth=\count192
\c@MaxMatrixCols=\count193
\dotsspace@=\muskip16
\c@parentequation=\count194
\dspbrk@lvl=\count195
\tag@help=\toks20
\row@=\count196
\column@=\count197
\maxfields@=\count198
\andhelp@=\toks21
\eqnshift@=\dimen150
\alignsep@=\dimen151
\tagshift@=\dimen152
\tagwidth@=\dimen153
\totwidth@=\dimen154
\lineht@=\dimen155
\@envbody=\toks22
\multlinegap=\skip50
\multlinetaggap=\skip51
\mathdisplay@stack=\toks23
LaTeX Info: Redefining \[ on input line 2923.
LaTeX Info: Redefining \] on input line 2924.
)
("C:\Program Files\MiKTeX\tex/latex/amsfonts\amssymb.sty"
Package: amssymb 2013/01/14 v3.01 AMS font symbols
("C:\Program Files\MiKTeX\tex/latex/amsfonts\amsfonts.sty"
Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support
\symAMSa=\mathgroup4
\symAMSb=\mathgroup5
LaTeX Font Info: Redeclaring math symbol \hbar on input line 98.
LaTeX Font Info: Overwriting math alphabet `\mathfrak' in version `bold'
(Font) U/euf/m/n --> U/euf/b/n on input line 106.
))
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/stmaryrd\stmaryrd.sty
Package: stmaryrd 1994/03/03 St Mary's Road symbol package
\symstmry=\mathgroup6
LaTeX Font Info: Overwriting symbol font `stmry' in version `bold'
(Font) U/stmry/m/n --> U/stmry/b/n on input line 89.
)
("C:\Program Files\MiKTeX\tex/latex/mhchem\mhchem.sty"
Package: mhchem 2018/06/22 v4.08 for typesetting chemical formulae
("C:\Program Files\MiKTeX\tex/latex/l3kernel\expl3.sty"
Package: expl3 2020-10-27 L3 programming layer (loader)
("C:\Program Files\MiKTeX\tex/latex/l3backend\l3backend-pdftex.def"
File: l3backend-pdftex.def 2020-09-24 L3 backend support: PDF output (pdfTeX)
\l__kernel_color_stack_int=\count199
\l__pdf_internal_box=\box49
))
("C:\Program Files\MiKTeX\tex/latex/l3packages/l3keys2e\l3keys2e.sty"
Package: l3keys2e 2020-10-27 LaTeX2e option processing using LaTeX3 keys
)
("C:\Program Files\MiKTeX\tex/latex/tools\calc.sty"
Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ)
\calc@Acount=\count266
\calc@Bcount=\count267
\calc@Adimen=\dimen156
\calc@Bdimen=\dimen157
\calc@Askip=\skip52
\calc@Bskip=\skip53
LaTeX Info: Redefining \setlength on input line 80.
LaTeX Info: Redefining \addtolength on input line 81.
\calc@Ccount=\count268
\calc@Cskip=\skip54
)
("C:\Program Files\MiKTeX\tex/latex/chemgreek\chemgreek.sty"
("C:\Program Files\MiKTeX\tex/latex/l3packages/xparse\xparse.sty"
Package: xparse 2020-10-27 L3 Experimental document command parser
("C:\Program Files\MiKTeX\tex/latex/l3packages/xparse\xparse-generic.tex"))
Package: chemgreek 2020/01/16 v1.1a interface for upright Greek letters for use
in chemistry (CN)
\l__chemgreek_tmpa_int=\count269
\g__chemgreek_tmpa_int=\count270
)
("C:\Program Files\MiKTeX\tex/latex/graphics\graphics.sty"
Package: graphics 2020/08/30 v1.4c Standard LaTeX Graphics (DPC,SPQR)
("C:\Program Files\MiKTeX\tex/latex/graphics\trig.sty"
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
("C:\Program Files\MiKTeX\tex/latex/graphics-cfg\graphics.cfg"
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 105.
("C:\Program Files\MiKTeX\tex/latex/graphics-def\pdftex.def"
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
))
\l__mhchem_ce_distanceFromLastComma_int=\count271
\__mhchem_arrow_extPgfLength_skip=\skip55
\mhchem@minispace@tmp=\skip56
\mhchem@minibackspace@tmp=\skip57
\mhchem@bondwidth=\skip58
\mhchem@bondheight=\skip59
\mhchem@smallbondwidth@tmpA=\skip60
\mhchem@smallbondwidth@tmpB=\skip61
\mhchem@smallbondwidth=\skip62
\mhchem@bondtmp@minussidebearingleft=\skip63
\mhchem@bondtmp@minussidebearingright=\skip64
\l__mhchem_option_version_int=\count272
\mhchem@option@minusmathsidebearingleft=\dimen158
\mhchem@option@minusmathsidebearingright=\dimen159
\mhchem@option@minustextsidebearingleft=\dimen160
\mhchem@option@minustextsidebearingright=\dimen161
)
("C:\Program Files\MiKTeX\tex/latex/xcolor\xcolor.sty"
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
("C:\Program Files\MiKTeX\tex/latex/graphics-cfg\color.cfg"
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
("C:\Program Files\MiKTeX\tex/latex/bbold\bbold.sty"
Package: bbold 1994/04/06 Bbold symbol package
LaTeX Font Info: Redeclaring math alphabet \mathbb on input line 42.
)
No file "TSP - DST 1 - Sujet C".aux.
\openout1 = `"TSP - DST 1 - Sujet C.aux"'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 31.
LaTeX Font Info: ... okay on input line 31.
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
Package geometry Warning: The marginal notes overrun the paper.
Add 75.0945pt and more to the right margin.
*geometry* verbose mode - [ preamble ] result:
* driver: pdftex
* paper: <default>
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* modes: twoside
* h-part:(L,W,R)=(56.9055pt, 500.484pt, 56.9055pt)
* v-part:(T,H,B)=(56.9055pt, 681.15898pt, 56.9055pt)
* \paperwidth=614.295pt
* \paperheight=794.96999pt
* \textwidth=500.484pt
* \textheight=681.15898pt
* \oddsidemargin=-15.36449pt
* \evensidemargin=-15.36449pt
* \topmargin=-45.43198pt
* \headheight=12.0pt
* \headsep=18.06749pt
* \topskip=10.0pt
* \footskip=25.29494pt
* \marginparwidth=125.0pt
* \marginparsep=7.0pt
* \columnsep=10.0pt
* \skip\footins=9.0pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidetrue
* \@mparswitchtrue
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)
Package chemgreek Info: Activating mapping `default' on line 31.
("C:\Program Files\MiKTeX\tex/context/base/mkii\supp-pdf.mkii"
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count273
\scratchdimen=\dimen162
\scratchbox=\box50
\nofMPsegments=\count274
\nofMParguments=\count275
\everyMPshowfont=\toks24
\MPscratchCnt=\count276
\MPscratchDim=\dimen163
\MPnumerator=\count277
\makeMPintoPDFobject=\count278
\everyMPtoPDFconversion=\toks25
) ("C:\Program Files\MiKTeX\tex/latex/epstopdf-pkg\epstopdf-base.sty"
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
85.
)
LaTeX Font Info: Trying to load font information for U+msa on input line 48.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsa.fd"
File: umsa.fd 2013/01/14 v3.01 AMS symbols A
)
LaTeX Font Info: Trying to load font information for U+msb on input line 48.
("C:\Program Files\MiKTeX\tex/latex/amsfonts\umsb.fd"
File: umsb.fd 2013/01/14 v3.01 AMS symbols B
)
LaTeX Font Info: Trying to load font information for U+stmry on input line 4
8.
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/stmaryrd\ustmry.fd)
LaTeX Font Info: Trying to load font information for U+bbold on input line 5
3.
(C:\Users\Echophile\AppData\Roaming\MiKTeX\tex/latex/jknappen\ubbold.fd
File: ubbold.fd 1996/01/01 Blackboard Bold Font Definition File (jk)
)
[1
{C:/Users/Echophile/AppData/Local/MiKTeX/pdftex/config/pdftex.map}] [2]
Overfull \hbox (5.8505pt too wide) in paragraph at lines 308--309
[]\T1/cmr/m/n/10 On con-sid-ère deux tri-an-gles non plat $\OML/cmm/m/it/10 ABC
$ \T1/cmr/m/n/10 et $\OML/cmm/m/it/10 A[]B[]C[]$ \T1/cmr/m/n/10 tels que $[] \O
ML/cmm/m/it/10 == []$\T1/cmr/m/n/10 , $[] \OML/cmm/m/it/10 == []$ \T1/cmr/m/n/1
0 et $[] \OML/cmm/m/it/10 == []$\T1/cmr/m/n/10 .
[]
Overfull \hbox (5.8505pt too wide) in paragraph at lines 324--325
[]\T1/cmr/m/n/10 On con-sid-ère deux tri-an-gles non plat $\OML/cmm/m/it/10 ABC
$ \T1/cmr/m/n/10 et $\OML/cmm/m/it/10 A[]B[]C[]$ \T1/cmr/m/n/10 tels que $[] \O
ML/cmm/m/it/10 == []$\T1/cmr/m/n/10 , $[] \OML/cmm/m/it/10 == []$ \T1/cmr/m/n/1
0 et $[] \OML/cmm/m/it/10 == []$\T1/cmr/m/n/10 .
[]
[3] ("TSP - DST 1 - Sujet C.aux") )
Here is how much of TeX's memory you used:
4769 strings out of 479799
70613 string characters out of 2879534
376878 words of memory out of 3000000
21708 multiletter control sequences out of 15000+200000
541864 words of font info for 48 fonts, out of 3000000 for 9000
1141 hyphenation exceptions out of 8191
66i,8n,73p,413b,307s stack positions out of 5000i,500n,10000p,200000b,50000s
<C:\Users\Echophile\AppData\Local\MiKTeX\fo
nts/pk/ljfour/public/bbold/dpi600\bbold10.pk> <C:\Users\Echophile\AppData\Local
\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecrm1000.pk> <C:\Users\Echophile\App
Data\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx1000.pk> <C:\Users\Ech
ophile\AppData\Local\MiKTeX\fonts/pk/ljfour/jknappen/ec/dpi600\ecbx2488.pk><C:/
Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmex10.pfb><C:/Program File
s/MiKTeX/fonts/type1/public/amsfonts/cm/cmmi10.pfb><C:/Program Files/MiKTeX/fon
ts/type1/public/amsfonts/cm/cmr10.pfb><C:/Program Files/MiKTeX/fonts/type1/publ
ic/amsfonts/cm/cmr5.pfb><C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm
/cmr7.pfb><C:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy10.pfb><C
:/Program Files/MiKTeX/fonts/type1/public/amsfonts/cm/cmsy7.pfb><C:/Program Fil
es/MiKTeX/fonts/type1/public/amsfonts/symbols/msam10.pfb>
Output written on "TSP - DST 1 - Sujet C.pdf" (3 pages, 112598 bytes).
PDF statistics:
142 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

@ -10,6 +10,7 @@
\usepackage{stmaryrd} \usepackage{stmaryrd}
\PassOptionsToPackage{version=3}{mhchem} \PassOptionsToPackage{version=3}{mhchem}
\usepackage{mhchem} \usepackage{mhchem}
\usepackage{xcolor}
\makeatletter \makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
@ -31,8 +32,10 @@
\chapter*{Contrôle de Mathématiques} \chapter*{Contrôle de Mathématiques}
\let\MauvaiseReponse\null %\let\MauvaiseReponse\null
\let\BonneReponse\null %\let\BonneReponse\null
\def\MauvaiseReponse#1\par{\textcolor{red}{#1}}
\def\BonneReponse#1\par{\textcolor{green}{#1}}
{\bf Merci de répondre sur la grille fournie et de rendre le sujet avec la grille.} {\bf Merci de répondre sur la grille fournie et de rendre le sujet avec la grille.}
@ -50,6 +53,7 @@
\item\MauvaiseReponse $]-\infty, \frac{1}{4}]$ \item\MauvaiseReponse $]-\infty, \frac{1}{4}]$
\item\BonneReponse $]-\frac{1}{4},+\infty[$ \item\BonneReponse $]-\frac{1}{4},+\infty[$
\end{enumerate} \end{enumerate}
@ -66,6 +70,7 @@
\item\MauvaiseReponse $\mathbb{R}$ \item\MauvaiseReponse $\mathbb{R}$
\item\BonneReponse $]-\infty,\frac{1}{5}]$ \item\BonneReponse $]-\infty,\frac{1}{5}]$
\item\MauvaiseReponse $[\frac{1}{5},+\infty[$ \item\MauvaiseReponse $[\frac{1}{5},+\infty[$
@ -80,6 +85,7 @@
\begin{enumerate} \begin{enumerate}
\item\MauvaiseReponse est solution de l'équation $4x+1=0$ \item\MauvaiseReponse est solution de l'équation $4x+1=0$
\item\BonneReponse est solution de l'inéquation $4x+5>0$ \item\BonneReponse est solution de l'inéquation $4x+5>0$
\item\MauvaiseReponse est solution de l'équation $x+4=0$ \item\MauvaiseReponse est solution de l'équation $x+4=0$
@ -94,6 +100,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse est solution de l'équation $x^{3}-7x=0$ \item\BonneReponse est solution de l'équation $x^{3}-7x=0$
\item\MauvaiseReponse est solution de l'équation $x^{2}+7=0$ \item\MauvaiseReponse est solution de l'équation $x^{2}+7=0$
@ -111,6 +118,7 @@
\item\MauvaiseReponse est solution de l'inéquation $2x+3<0$ \item\MauvaiseReponse est solution de l'inéquation $2x+3<0$
\item\BonneReponse est solution de l'équation $10x-1=0$ \item\BonneReponse est solution de l'équation $10x-1=0$
\end{enumerate} \end{enumerate}
@ -124,6 +132,7 @@
\item\MauvaiseReponse $(6;-3)$ \item\MauvaiseReponse $(6;-3)$
\item\BonneReponse $(-3 ;-3)$ \item\BonneReponse $(-3 ;-3)$
\item\MauvaiseReponse $(-\frac{3}{2} ; -3)$ \item\MauvaiseReponse $(-\frac{3}{2} ; -3)$
@ -151,6 +160,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $-\frac{23}{14}$ \item\BonneReponse $-\frac{23}{14}$
\item\MauvaiseReponse $-\frac{11}{14}$ \item\MauvaiseReponse $-\frac{11}{14}$
\item\MauvaiseReponse $-\frac{11}{28}$ \item\MauvaiseReponse $-\frac{11}{28}$
@ -168,6 +178,7 @@
\item\MauvaiseReponse $52$ \item\MauvaiseReponse $52$
\item\BonneReponse $\frac{44}{9}$ \item\BonneReponse $\frac{44}{9}$
\item\MauvaiseReponse $\frac{99}{16}$ \item\MauvaiseReponse $\frac{99}{16}$
\end{enumerate} \end{enumerate}
@ -183,6 +194,7 @@
\item\MauvaiseReponse $\cos (\hat{C})=\frac{1}{5}$ \item\MauvaiseReponse $\cos (\hat{C})=\frac{1}{5}$
\item\BonneReponse $AC=\sqrt{384}$ \item\BonneReponse $AC=\sqrt{384}$
\end{enumerate} \end{enumerate}
@ -194,6 +206,7 @@
\begin{enumerate} \begin{enumerate}
\item\BonneReponse $\cos (\hat{B})=\frac{3}{5}$ \item\BonneReponse $\cos (\hat{B})=\frac{3}{5}$
\item\MauvaiseReponse $\tan (\hat{C})=\frac{3}{5}$ \item\MauvaiseReponse $\tan (\hat{C})=\frac{3}{5}$
\item\MauvaiseReponse $AC=\sqrt{136}$ \item\MauvaiseReponse $AC=\sqrt{136}$
@ -211,6 +224,7 @@
\item\MauvaiseReponse $\frac{\arctan\left(\frac{7}{2}\right)}{4}$ \item\MauvaiseReponse $\frac{\arctan\left(\frac{7}{2}\right)}{4}$
\item\BonneReponse $\arctan\left(\frac{35}{40}\right)$ \item\BonneReponse $\arctan\left(\frac{35}{40}\right)$
\end{enumerate} \end{enumerate}
@ -224,6 +238,7 @@
\item\MauvaiseReponse $\widehat{C}=70^{\circ}$ \item\MauvaiseReponse $\widehat{C}=70^{\circ}$
\item\BonneReponse $\widehat{C}=60^{\circ}$ \item\BonneReponse $\widehat{C}=60^{\circ}$
\item\MauvaiseReponse $\widehat{C}=75^{\circ}$ \item\MauvaiseReponse $\widehat{C}=75^{\circ}$
@ -268,6 +283,7 @@
\item\MauvaiseReponse $98\mathrm{cm}$ \item\MauvaiseReponse $98\mathrm{cm}$
\item\MauvaiseReponse $200\mathrm{cm}$ \item\MauvaiseReponse $200\mathrm{cm}$
\item\BonneReponse $180\mathrm{cm}$ \item\BonneReponse $180\mathrm{cm}$
\end{enumerate} \end{enumerate}
@ -280,6 +296,7 @@
\item\MauvaiseReponse $AB=99\mathrm{cm}$, $AC=119\mathrm{cm}$ et $BC=20\mathrm{cm}$ \item\MauvaiseReponse $AB=99\mathrm{cm}$, $AC=119\mathrm{cm}$ et $BC=20\mathrm{cm}$
\item\BonneReponse $AB=99\mathrm{cm}$, $AC=101\mathrm{cm}$ et $BC=20\mathrm{cm}$ \item\BonneReponse $AB=99\mathrm{cm}$, $AC=101\mathrm{cm}$ et $BC=20\mathrm{cm}$
\item\MauvaiseReponse $AB=99\mathrm{cm}$, $AC=79\mathrm{cm}$ et $BC=20\mathrm{cm}$ \item\MauvaiseReponse $AB=99\mathrm{cm}$, $AC=79\mathrm{cm}$ et $BC=20\mathrm{cm}$
@ -296,6 +313,7 @@
\item\MauvaiseReponse $20\mathrm{cm}$ \item\MauvaiseReponse $20\mathrm{cm}$
\item\MauvaiseReponse $8\mathrm{cm}$ \item\MauvaiseReponse $8\mathrm{cm}$
\item\BonneReponse $18\mathrm{mm}$ \item\BonneReponse $18\mathrm{mm}$
\end{enumerate} \end{enumerate}
@ -311,6 +329,7 @@
\item\MauvaiseReponse $50\mathrm{mm}$ \item\MauvaiseReponse $50\mathrm{mm}$
\item\BonneReponse $80\mathrm{mm}$ \item\BonneReponse $80\mathrm{mm}$
\item\MauvaiseReponse $50\mathrm{cm}$ \item\MauvaiseReponse $50\mathrm{cm}$
\end{enumerate} \end{enumerate}
@ -327,6 +346,7 @@
\item\MauvaiseReponse $AB=21\mathrm{m}$, $AC=42\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=18\mathrm{cm}$ \item\MauvaiseReponse $AB=21\mathrm{m}$, $AC=42\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=18\mathrm{cm}$
\item\MauvaiseReponse $AB=21\mathrm{m}$, $AC=42\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=9\mathrm{cm}$ \item\MauvaiseReponse $AB=21\mathrm{m}$, $AC=42\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=9\mathrm{cm}$
\item\BonneReponse $AB=21\mathrm{m}$, $AC=42\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=98\mathrm{cm}$ \item\BonneReponse $AB=21\mathrm{m}$, $AC=42\mathrm{m}$, $A^{\prime}B^{\prime}=49\mathrm{cm}$ et $A^{\prime}C^{\prime}=98\mathrm{cm}$
\end{enumerate} \end{enumerate}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -10,6 +10,8 @@
"elm/core": "1.0.5", "elm/core": "1.0.5",
"elm/html": "1.0.0", "elm/html": "1.0.0",
"elm/parser": "1.1.0", "elm/parser": "1.1.0",
"elm/random": "1.0.0",
"elm-community/random-extra": "3.2.0",
"lynn/elm-arithmetic": "3.0.0" "lynn/elm-arithmetic": "3.0.0"
}, },
"indirect": { "indirect": {

@ -0,0 +1,164 @@
module ParserArbre exposing (..)
import Parser exposing (..)
import Browser
import Html exposing (Html, button, div, text)
import Html.Events exposing (onClick)
import Maybe exposing (Maybe)
import Result exposing (Result)
-- MAIN
main =
Browser.sandbox { init = init, update = update, view = view }
-- MODEL
type alias Model = Int
init : Model
init =
0
-- UPDATE
type Msg
= Increment
| Decrement
update : Msg -> Model -> Model
update msg model =
case msg of
Increment ->
model + 1
Decrement ->
model - 1
-- VIEW
view : Model -> Html Msg
view model =
div [] [ text texte ]
{-
Sans le withIndent -1, les arbres sous-indentés sautes
-}
texte = voirArbresParses <| run (withIndent -1 arbres)
"""
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
"""
unArbre =
Arbre
[ Arbre []
, Arbre
[ Arbre []
]
]
voirArbresParses arbresParsesPotentiels =
case arbresParsesPotentiels of
Err erreurs -> deadEndsToStringBis erreurs
Ok arbresParses -> voirArbres arbresParses
deadEndsToStringBis errs =
errs
|> List.map voirErreur
|> String.concat
|> (++) "Il y a des problèmes aux endroits suivants :\n"
voirErreur err =
"Ligne : " ++ String.fromInt err.row
++ " | Colonne : " ++ String.fromInt err.col
type Arbre = Arbre (List Arbre)
voirArbre arbr =
case arbr of
Arbre [] -> "[]"
Arbre arbrs -> "[" ++ String.concat (List.map voirArbre arbrs) ++ "]"
voirArbres =
List.map voirArbre >> String.concat
{-| Ce parser change l'indentation courante, cré un arbre puis
y intègre ses branches grâce à une boucle
-}
arbre : Parser Arbre
arbre =
let
suite =
Debug.log "? :" <|
flip withIndent
<| succeed Arbre
|. symbol "*"
|= arbres
in
getCol
|> andThen suite
|> Debug.log "Arbre : "
flip f a b = f b a
arbres =
let
sousArbres arbrs =
let
boucle =
succeed ( \arbr -> Loop (arbr :: arbrs) )
|= arbre -- lazy (\_ -> arbre) semble inutile malgrè l'appel récursif...
fin =
map (\_ -> Done (List.reverse arbrs))
suite col_ind =
oneOf
[ succeed ()
|. end
|> fin
, if Tuple.first col_ind > Tuple.second col_ind then -- if col > ind
boucle
else
succeed ()
|> fin
]
in
succeed Tuple.pair
|. spaces
|= getCol
|= getIndent
|> andThen suite
in
loop [] sousArbres
|> Debug.log "Début de la boucle arbres : "

@ -1,11 +1,15 @@
module ParserTest exposing (..) module ParserTest exposing (..)
import Parser exposing (..) import Parser as P exposing (..)
import Browser import Browser
import Html exposing (Html, button, div, text) import Html exposing (Html, button, div, text)
import Html.Events exposing (onClick) import Html.Events exposing (onClick)
import Maybe exposing (Maybe) import Maybe exposing (Maybe)
import Result exposing (Result) import Result exposing (Result)
import String as S
import List as L
import ParserMaths as PM
import Fractions as F exposing (Frac)
@ -53,14 +57,25 @@ update msg model =
view : Model -> Html Msg view : Model -> Html Msg
view model = view model =
div [] [ text texte ] div [] [ text unTexte ]
{-
texte = voirArbresParses <| run (withIndent -1 arbres) -- permet d'avoir... Sans le withIndent -1, les arbres sous-indentés sautes
-}
unTexte = voirArbresParses <| run (withIndent -1 arbres)
{--}
"""
macro
hh
jj
"""
--}
{--
""" """
* *
* *
* #1+3#
* *
* *
* *
@ -69,19 +84,15 @@ texte = voirArbresParses <| run (withIndent -1 arbres) -- permet d'avoir...
* *
* *
* *
* <- cet arbre *
* *
* *
* *
""" *
*
unArbre = *
Arbre """
[ Arbre [] --}
, Arbre
[ Arbre []
]
]
voirArbresParses arbresParsesPotentiels = voirArbresParses arbresParsesPotentiels =
case arbresParsesPotentiels of case arbresParsesPotentiels of
@ -98,12 +109,12 @@ voirErreur err =
"Ligne : " ++ String.fromInt err.row "Ligne : " ++ String.fromInt err.row
++ " | Colonne : " ++ String.fromInt err.col ++ " | Colonne : " ++ String.fromInt err.col
type Arbre = Arbre (List Arbre) type Arbre = Arbre String (List Arbre)
voirArbre arbr = voirArbre arbr =
Debug.log "voirArbre " <|
case arbr of case arbr of
Arbre [] -> "[]" Arbre chn arbrs -> chn ++ "\n [" ++ String.concat (List.map voirArbre arbrs) ++ "]"
Arbre arbrs -> "[" ++ String.concat (List.map voirArbre arbrs) ++ "]"
voirArbres = voirArbres =
List.map voirArbre >> String.concat List.map voirArbre >> String.concat
@ -115,13 +126,15 @@ arbre : Parser Arbre
arbre = arbre =
let let
suite = suite =
Debug.log "? :" <|
flip withIndent flip withIndent
<| succeed Arbre <| succeed Arbre
|. symbol "*" |= chaine
|= arbres |= arbres
in in
getCol getCol
|> andThen suite |> andThen suite
|> Debug.log "Arbre : "
flip f a b = f b a flip f a b = f b a
@ -131,7 +144,7 @@ arbres =
let let
boucle = boucle =
succeed ( \arbr -> Loop (arbr :: arbrs) ) succeed ( \arbr -> Loop (arbr :: arbrs) )
|= lazy (\_ -> arbre) |= arbre -- lazy (\_ -> arbre) semble inutile malgrè l'appel récursif...
fin = fin =
map (\_ -> Done (List.reverse arbrs)) map (\_ -> Done (List.reverse arbrs))
suite col_ind = suite col_ind =
@ -152,4 +165,58 @@ arbres =
|= getIndent |= getIndent
|> andThen suite |> andThen suite
in in
loop [] sousArbres loop [] sousArbres
|> Debug.log "Début de la boucle arbres "
{-
-}
chaine : Parser String
chaine =
let
suite txt =
P.oneOf
[ succeed (\x -> P.Loop (txt ++ x))
|= texte
{--
|= P.oneOf
[ texte
, retourAlaLigne
]
--}
, succeed ()
--|. token "\n"
|> P.map (\_ -> P.Done [txt])
]
tete ls =
case ls of
[] -> ""
l :: lss -> l
in
succeed tete
|= P.loop "" suite
|> Debug.log "macro "
texte : Parser String
texte =
P.getChompedString
<| succeed ()
|. P.chompIf ( (/=) '\n' )
|. P.chompWhile ( (/=) '\n' )
retourAlaLigne : Parser String
retourAlaLigne =
let
suite ind =
succeed "\n"
|. token "\n"
|. token (S.repeat ind " ")
in
getIndent
|> andThen suite

@ -1,15 +1,49 @@
module QCM exposing (..) module QCM exposing (..)
import Browser import Browser
import Parser as P exposing (Parser, (|.), (|=), succeed, symbol, float, spaces) import Parser as P exposing (..)
{--
( Parser
, (|.)
, (|=)
, succeed
, symbol
, float
, spaces
, token
, loop
, getIndent
, andThen
, oneOf
, Step
)
--}
import List as L import List as L
import Set import Set
import ParserMaths as PM import ParserMaths as PM
import String as S import String as S
import Fractions as F exposing (Frac) import Fractions as F exposing (Frac)
import Html exposing (Html, Attribute, button, div, textarea, input, p, iframe, section) import Html exposing (Html, Attribute, button, div, textarea, input, p, iframe, section)
import Html.Attributes exposing (..) import Html.Attributes as A -- exposing (..)
import Html.Events exposing (onInput, onClick) import Html.Events exposing (onInput, onClick)
import Random
import Random.Extra
sujetTest =
"""a : 2,4
b : 3,5,8
c : 6,7,9
On considère l'équation $#a#x^{2}-#b# x-#c#=0$ alors
le discriminant $\\Delta$ est égal à :
vrfx
+$#b^2+4*a*c#$
-$#b^2-4*a*c#$
"""
{- {-
@ -20,7 +54,12 @@ import Html.Events exposing (onInput, onClick)
-} -}
main = main =
Browser.sandbox { init = init, update = update, view = view } Browser.element
{ init = init
, update = update
, subscriptions = subscriptions
, view = view
}
{- {-
@ -32,19 +71,22 @@ main =
-} -}
type alias Model = type alias Model =
{ variables : String { -- variables : String
, question : String structureDuSujet : String
, questions : List String -- , questions : List String
, sujetGenere : String
} }
init : Model init : () -> (Model, Cmd Msg)
init = init _ =
{ variables = "" ( { -- variables = ""
, question = "" structureDuSujet = ""
, questions = [ "" ] -- , questions = []
} , sujetGenere = ""
}
, Cmd.none
)
{- {-
@ -55,19 +97,47 @@ init =
-} -}
type Msg type Msg
= Question String = StructureDuSujet String
| Variables String -- | Variables String
| GenererQuestion | GenererSujet
| SujetGenere String
update : Msg -> Model -> Model update : Msg -> Model -> ( Model, Cmd Msg )
update msg model = update msg model =
case msg of case msg of
Question nouvelleQuestion -> StructureDuSujet nouvelleStructure ->
{ model | question = nouvelleQuestion } ( { model | structureDuSujet = nouvelleStructure }
, Cmd.none
)
{--
Variables nouvellesVariables -> Variables nouvellesVariables ->
{ model | variables = nouvellesVariables } ( { model | variables = nouvellesVariables }
GenererQuestion -> , Cmd.none
{ model | questions = remplacer model.variables model.question } )
--}
SujetGenere nouveauSujetGenere ->
( { model | sujetGenere = nouveauSujetGenere }
, Cmd.none
)
GenererSujet ->
let
f strSuj =
case P.run (withIndent -1 sujet) strSuj of
Ok sjt -> Random.map quizScanVoirSujet <| sujetsAleatoires sjt
Err erreurs -> Random.constant <| deadEndsToStringBis erreurs
in
( model
, Random.generate SujetGenere (f model.structureDuSujet)
)
-- SUBSCRIPTIONS
subscriptions : Model -> Sub Msg
subscriptions model =
Sub.none
{- {-
@ -81,10 +151,12 @@ update msg model =
view : Model -> Html Msg view : Model -> Html Msg
view model = view model =
div [] div []
<| textarea [ placeholder "Liste des variables", value model.variables, onInput Variables ] [] <| -- textarea [ A.placeholder "Liste des variables", A.value model.variables, onInput Variables ] []
:: textarea [ placeholder "Format de la question", value model.question, onInput Question ] [] textarea [ A.placeholder "Structure du sujet", A.value model.structureDuSujet, onInput StructureDuSujet ] []
:: button [ onClick GenererQuestion ] [ text "Générer les questions" ] -- :: button [ onClick GenererQuestion ] [ text "Générer les questions" ]
:: ( section [] <| L.map (\q -> p [] [text q]) model.questions ) :: button [ onClick GenererSujet ] [ text "Générer un sujet au hasard" ]
-- :: ( section [] <| L.map (\q -> p [] [ text q ]) model.questions )
:: [ ( section [] [ p [] [ text model.sujetGenere ] ] ) ]
{-- {--
:: text :: text
( (
@ -132,9 +204,7 @@ view model =
, List.map dl03 ( mix [ [0], [-9,-8,-7,-6,-5,-4,-3,-2,-1,1,2,3,4,5,6,7,8,9], [0], [1,2,3,4,5,6,7,8,9] ] ) -- 162 possibilités OK , List.map dl03 ( mix [ [0], [-9,-8,-7,-6,-5,-4,-3,-2,-1,1,2,3,4,5,6,7,8,9], [0], [1,2,3,4,5,6,7,8,9] ] ) -- 162 possibilités OK
, List.map dl04 ( mix [ [-5,-3,-1,1,3,5], [-6,-4,-2,2,4,6], [0], [-9,-8,-7,-6,-5,-4,-3,-2,-1] ] ) --324 possibilités Ok , List.map dl04 ( mix [ [-5,-3,-1,1,3,5], [-6,-4,-2,2,4,6], [0], [-9,-8,-7,-6,-5,-4,-3,-2,-1] ] ) --324 possibilités Ok
, List.concat <| List.map ( mapTwist [3,5,9] ) ( List.map dl05 ( mix [ [0], [2,4,7,8,11,13,16,17], [2,4,7,8,11,13,16,17] ] ) ) -- 192 possibilités OK , List.concat <| List.map ( mapTwist [3,5,9] ) ( List.map dl05 ( mix [ [0], [2,4,7,8,11,13,16,17], [2,4,7,8,11,13,16,17] ] ) ) -- 192 possibilités OK
--}
:: d3 -- 512 possibilités OK :: d3 -- 512 possibilités OK
{--
:: ( List.map primitPoly01 <| mix [ List.range -3 -2 ++ List.range 2 3, List.range -3 -2 ++ List.range 2 3, List.range -3 -2 ++ List.range 2 3, List.range -3 -2 ++ List.range 2 3 ] ) -- 256 possibilités OK :: ( List.map primitPoly01 <| mix [ List.range -3 -2 ++ List.range 2 3, List.range -3 -2 ++ List.range 2 3, List.range -3 -2 ++ List.range 2 3, List.range -3 -2 ++ List.range 2 3 ] ) -- 256 possibilités OK
-- mix [ [1,2] , [3,4] , [5,6] ] == [ [1,3,5] , [1,3,6] , [1,4,5] , [1,4,6] , [2,3,5] , ... ] -- mix [ [1,2] , [3,4] , [5,6] ] == [ [1,3,5] , [1,3,6] , [1,4,5] , [1,4,6] , [2,3,5] , ... ]
mix lls = mix lls =
@ -152,11 +222,200 @@ text chaine =
{- {-
-}
type alias Sujet = List Probleme
type Probleme =
VariableAremplacer Aremplacer Sujet
| Entete Macro Sujet
-- | ProblemeOuvert NombreDeLigne TexteVariable
-- | QCM Propositions
| VraiFaux Propositions
type alias Propositions = List Proposition
type Proposition =
Vrai Macro
| Faux Macro
type alias NombreDeLigne = Int
type alias Alternative =
{ vraies : List Macro
, fausses : List Macro
}
{--
voirSujetParse sujetPotentiel =
case P.run (withIndent -1 sujet) sujetPotentiel of
Ok sjt -> voirSujet sjt
Err erreurs -> deadEndsToStringBis erreurs
--}
voirSujetParseAleatoire sujetPotentiel =
case P.run (withIndent -1 sujet) sujetPotentiel of
Ok sjt -> Random.map quizScanVoirSujet <| sujetAleatoire sjt
Err erreurs -> Random.constant <| deadEndsToStringBis erreurs
deadEndsToStringBis errs =
errs
|> List.map voirErreur
|> String.concat
|> (++) "Il y a des problèmes aux endroits suivants :\n"
voirErreur err =
"Ligne : " ++ String.fromInt err.row
++ " | Colonne : " ++ String.fromInt err.col
{--
voirSujet = S.join "\n" << L.map voirProbleme
voirProbleme prblm =
-- Debug.log "voirProbleme " <|
case prblm of
Entete mcr sjt ->
voirMacro mcr
++ "\n"
++ voirSujet sjt
VraiFaux prps ->
let
f prp =
case prp of
Vrai mcr -> voirMacro mcr
Faux mcr -> voirMacro mcr
in
S.join "\n" <| L.map f prps
VariableAremplacer ar sjt -> "" ++ voirSujet sjt
--}
sujet : Parser Sujet
sujet =
let
problemes prblms =
let
boucle =
-- Debug.log "Boucle sur un probleme (bis) " <|
succeed ( \prblm -> Loop (prblm :: prblms) )
|= probleme
fin =
map (\_ -> Done (List.reverse prblms))
suite col_ind =
oneOf
[ succeed ()
|. end
|> fin
, if Tuple.first col_ind > Tuple.second col_ind then -- if col > ind
boucle -- |> Debug.log "Boucle sur un probleme "
else
succeed ()
|> fin
]
-- |> Debug.log ( "Choix de l'embrachement dans la boucle (position " ++ S.fromInt (Tuple.first col_ind) ++ "x" ++ S.fromInt (Tuple.second col_ind) ++ ")" )
in
succeed Tuple.pair
|. spaces
|= getCol
|= getIndent
|> andThen suite
in
loop [] problemes
probleme : Parser Probleme
probleme =
let
suite =
flip withIndent
<| oneOf
[ vraiFaux
, backtrackable variableAremplacer
, entete ]
in
getCol
|> andThen suite
flip f a b = f b a
reserve = Set.fromList
[ "qcm"
, "vrfx"
, "var"
]
sousSujet =
let
suite col_ind =
if Tuple.first col_ind > Tuple.second col_ind then -- if col > ind
withIndent (Tuple.first col_ind) ( lazy (\_ -> sujet) ) -- Aucune idée de l'effet du lazy, ça marche sans...
else
succeed []
in
succeed Tuple.pair
|. spaces
|= getCol
|= getIndent
|> andThen suite
entete : Parser Probleme
entete =
-- Debug.log "entete " <|
succeed Entete
|= macro
|= sujet -- sousSujet
vraiFaux =
-- Debug.log "vraiFaux " <|
succeed VraiFaux
|. keyword "vrfx"
|= propositions
propositions =
let
suiteBis prps =
let
boucle =
oneOf
[ succeed ( \mcr -> Loop ( Vrai mcr :: prps ) )
|. symbol "+"
|= macro
, succeed ( \mcr -> Loop ( Faux mcr :: prps ) )
|. symbol "-"
|= macro
]
fin =
map (\_ -> Done prps)
suite col_ind =
oneOf
[ succeed ()
|. end
|> fin
, if Tuple.first col_ind > Tuple.second col_ind then -- if col > ind
boucle
else
succeed ()
|> fin
]
in
succeed Tuple.pair
|. spaces
|= getCol
|= getIndent
|> andThen suite
in
loop [] suiteBis
{-
-} -}
type TexteVariable type TexteVariable
@ -166,14 +425,14 @@ type TexteVariable
type alias Macro type alias Macro
= List TexteVariable = List TexteVariable
voirMacro macro voirMacro = S.concat << L.map voirTexteVariable
= S.concat <| L.map voirTexteVariable macro
voirTexteVariable txtvar voirTexteVariable txtvar =
= case txtvar of case txtvar of
Texte txt -> txt Texte txt -> txt
Variable var -> Variable var ->
let expressionParseePotentielle = PM.parseMaths var let
expressionParseePotentielle = PM.parseMaths var
in in
case expressionParseePotentielle of case expressionParseePotentielle of
Err erreur -> "L'expression est mal formée." Err erreur -> "L'expression est mal formée."
@ -183,12 +442,16 @@ voirTexteVariable txtvar
Nothing -> "Les puissances non-entières ne sont pas acceptées." Nothing -> "Les puissances non-entières ne sont pas acceptées."
texteSansVariables : Parser TexteVariable texteSansVariables : Parser TexteVariable
texteSansVariables texteSansVariables =
= succeed Texte let
condition caractere = caractere /= '#' && caractere /= '\n'
in
succeed Texte
|= P.getChompedString ( |= P.getChompedString (
succeed () succeed ()
|. P.chompIf ( (/=) '#' ) |. P.chompIf condition
|. P.chompWhile ( (/=) '#' ) |. P.chompWhile condition
) )
expressionVariable : Parser TexteVariable expressionVariable : Parser TexteVariable
@ -198,23 +461,32 @@ expressionVariable
|= P.getChompedString ( P.chompUntil "#" ) |= P.getChompedString ( P.chompUntil "#" )
|. symbol "#" |. symbol "#"
parserQuestion question = macro : Parser Macro
case P.run questions question of macro =
Ok macro -> macro let
Err _ -> [] suite ls =
P.oneOf
questions : Parser Macro [ succeed (\l -> P.Loop (l :: ls))
questions = |= P.oneOf
P.loop [] questionsBis [ expressionVariable
, texteSansVariables
questionsBis : Macro -> Parser (P.Step Macro Macro) , backtrackable retourAlaLigne
questionsBis ls = ]
P.oneOf , succeed ()
[ succeed (\l -> P.Loop (l :: ls)) |> P.map (\_ -> P.Done (List.reverse ls))
|= P.oneOf [ expressionVariable , texteSansVariables ] ]
, succeed () in
|> P.map (\_ -> P.Done (List.reverse ls)) P.loop [] suite
]
retourAlaLigne =
let
suite ind =
succeed (Texte "\n")
|. token "\n"
|. token (S.repeat (ind - 1) " ")
in
getIndent
|> andThen suite
{- {-
@ -225,6 +497,8 @@ questionsBis ls =
-} -}
type alias Variables = List Aremplacer
type alias Aremplacer = type alias Aremplacer =
{ var : String { var : String
, vals : List String , vals : List String
@ -235,33 +509,156 @@ parserAremplacer variables =
Ok ars -> ars Ok ars -> ars
Err _ -> Aremplacer "" [] Err _ -> Aremplacer "" []
espaces =
chompWhile <| (==) ' '
variableAremplacer : Parser Probleme
variableAremplacer =
-- Debug.log "variableAremplacer " <|
succeed VariableAremplacer
|= aRemplacer
|= sujet -- sousSujet
aRemplacer : Parser Aremplacer aRemplacer : Parser Aremplacer
aRemplacer = aRemplacer =
succeed ( \x y -> Aremplacer x (L.map (F.raw << PM.evaluerBis) y) ) succeed ( \x y -> Aremplacer x (L.map (F.raw << PM.evaluerBis) y) )
|. P.spaces |. espaces
|= P.variable |= variable
{ start = \_ -> True { start = Char.isAlpha
, inner = Char.isAlpha , inner = Char.isAlpha
, reserved = Set.fromList [] , reserved = reserve
} }
|. P.spaces |. espaces
|. P.symbol ":" |. symbol ":"
|= P.sequence |= sequence
{ start = "" { start = ""
, separator = "," , separator = ","
, end = "" , end = ""
, spaces = spaces , spaces = espaces
, item = PM.expr , item = PM.expr
{-- , trailing = P.Optional
, item = P.variable
{ start = (/=) ','
, inner = (/=) ','
, reserved = Set.fromList []
} }
--}
, trailing = P.Optional
}
{-
-}
sujetsAleatoires : Sujet -> Random.Generator Sujet
sujetsAleatoires sjt =
sujetAleatoire sjt
|> Random.list 89
|> Random.map L.concat
sujetAleatoire : Sujet -> Random.Generator Sujet
sujetAleatoire sjt =
Random.map L.concat
<| Random.Extra.sequence
<| L.map problemeAleatoire sjt
problemeAleatoire : Probleme -> Random.Generator Sujet
problemeAleatoire prblm =
case prblm of
VariableAremplacer ar sjt ->
let
vrbl = ar.var
vlr = valeurAleatoire "" ar.vals
f sj vl = remplacerLaVariableDansLeSujetAleatoire vrbl vl sj
in
{--
Debug.log
( "problemeAleatoire, branche VariableAremplacer, variable : "
++ vrbl ++ " "
) <|
--}
Random.andThen (f sjt) vlr
Entete mcr sjt ->
Random.map (L.singleton << Entete mcr) (sujetAleatoire sjt)
VraiFaux prps -> propositionAleatoire prps
propositionAleatoire prps =
Random.map
(L.singleton << VraiFaux << L.singleton)
( valeurAleatoire ( Vrai [ Texte "Le prof de maths est le meilleur." ] ) prps )
{-| Permet de prendre un élément aléatoire dans une liste
avec une valeur par défaut si la liste est vide.
-}
valeurAleatoire : a -> List a -> Random.Generator a
valeurAleatoire f fs =
case fs of
[] ->
Random.constant f
ff :: fss ->
Random.uniform ff fss
remplacerLaVariableDansLeProblemeAleatoire :
String -> String -> Probleme -> Random.Generator Sujet
remplacerLaVariableDansLeProblemeAleatoire vrbl vlr prblm =
case prblm of
VariableAremplacer ar sjt ->
problemeAleatoire (VariableAremplacer ar sjt)
|> Random.andThen (remplacerLaVariableDansLeSujetAleatoire vrbl vlr)
Entete mcr sjt ->
Random.map L.singleton
<| Random.map2 Entete
( Random.constant <| remplacerLaVariableParLaValeurDansLaMacro vrbl vlr mcr )
( remplacerLaVariableDansLeSujetAleatoire vrbl vlr sjt )
VraiFaux prps ->
Random.map
( L.singleton
<< VraiFaux
<< L.singleton
<< remplacerLaVariableParLaValeurDansLaProposition vrbl vlr
)
<| valeurAleatoire ( Vrai [ Texte "Le prof de maths est le meilleur." ] ) prps
remplacerLaVariableDansLeSujetAleatoire :
String -> String -> Sujet -> Random.Generator Sujet
remplacerLaVariableDansLeSujetAleatoire vrbl vlr sjt =
Random.map L.concat
<| Random.Extra.sequence
<| L.map (remplacerLaVariableDansLeProblemeAleatoire vrbl vlr) sjt
remplacerLaVariableParLaValeurDansLaProposition vrbl vlr prp =
case prp of
Vrai mcr -> Vrai <| remplacerLaVariableParLaValeurDansLaMacro vrbl vlr mcr
Faux mcr -> Faux <| remplacerLaVariableParLaValeurDansLaMacro vrbl vlr mcr
{-
-}
quizScanVoirSujet : Sujet -> String
quizScanVoirSujet sjt =
S.join "\n" <| L.map quizScanVoirProbleme sjt
quizScanVoirProbleme prblm =
case prblm of
Entete mcr sjt ->
voirMacro mcr
++ "\n"
++ quizScanVoirSujet sjt
VraiFaux prps ->
let
f prp =
case prp of
Vrai mcr ->
" \\item\\Vrai{" ++ voirMacro mcr ++ "}\n"
Faux mcr ->
" \\item\\Faux{" ++ voirMacro mcr ++ "}\n"
in
S.join "\n" <| L.map f prps
VariableAremplacer ar sjt -> "" ++ quizScanVoirSujet sjt
{- {-
@ -270,20 +667,21 @@ aRemplacer =
-} -}
{--
remplacer : String -> String -> List String remplacer : String -> String -> List String
remplacer variables question = remplacer variables question =
let let
ars = ars =
S.lines variables S.lines variables
|> L.map parserAremplacer |> L.map parserAremplacer
macro = mcr =
parserQuestion question parserQuestion question
in in
remplacerLesVariablesDansLaMacro ars macro remplacerLesVariablesDansLaMacro ars mcr
remplacerLesVariablesDansLaMacro : List Aremplacer -> Macro -> List String remplacerLesVariablesDansLaMacro : List Aremplacer -> Macro -> List String
remplacerLesVariablesDansLaMacro ars macro = remplacerLesVariablesDansLaMacro ars mcr =
remplacerLesVariablesDansLaMacroBis ars [macro] remplacerLesVariablesDansLaMacroBis ars [mcr]
|> L.map voirMacro |> L.map voirMacro
remplacerLesVariablesDansLaMacroBis : List Aremplacer -> List Macro -> List Macro remplacerLesVariablesDansLaMacroBis : List Aremplacer -> List Macro -> List Macro
@ -296,20 +694,23 @@ remplacerLesVariablesDansLaMacroBis ars macros =
|> remplacerLesVariablesDansLaMacroBis arss |> remplacerLesVariablesDansLaMacroBis arss
remplacerLaVariableDansLaMacro : Aremplacer -> Macro -> List Macro remplacerLaVariableDansLaMacro : Aremplacer -> Macro -> List Macro
remplacerLaVariableDansLaMacro ar macro = remplacerLaVariableDansLaMacro ar mcr =
let let
f val = remplacerLaVariableParLaValeurDansLaMacro ar.var val macro f val = remplacerLaVariableParLaValeurDansLaMacro ar.var val mcr
in in
L.map f ar.vals L.map f ar.vals
--}
remplacerLaVariableParLaValeurDansLaMacro : String -> String -> Macro -> Macro remplacerLaVariableParLaValeurDansLaMacro : String -> String -> Macro -> Macro
remplacerLaVariableParLaValeurDansLaMacro var val macro = remplacerLaVariableParLaValeurDansLaMacro var val mcr =
L.map (remplacerLaVariableParLaValeurDansLeTexteVariable var val) macro L.map (remplacerLaVariableParLaValeurDansLeTexteVariable var val) mcr
remplacerLaVariableParLaValeurDansLeTexteVariable var val tv = remplacerLaVariableParLaValeurDansLeTexteVariable var val tv =
case tv of case tv of
Texte chaine -> Texte chaine Texte chaine -> Texte chaine
Variable chaine -> Variable <| S.replace var val chaine Variable chaine -> Variable <| S.replace var val chaine
--}
{- {-

Loading…
Cancel
Save