Fix: run pre-commit hooks
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-28 09:39:51 +02:00
parent d5981d25e5
commit cd2fdc162e
35 changed files with 368 additions and 363 deletions

View File

@@ -198,5 +198,3 @@ SSH_TARGET_DIR=/var/docker/opytex.org/www/opytex
rsync_upload: html
rsync -e "ssh" -P -rvzc --delete $(BUILDDIR)/html/ $(SSH_CONF):$(SSH_TARGET_DIR) --cvs-exclude

View File

@@ -37,8 +37,8 @@ Sujet numéro 01
\section{Exercice}
Dans un sac, il y a 20 bonbons à la menthe, 40 bonbons à la fraise et 2 au chocolat. On choisit un bonbon au hasard dans ce sac.
\begin{enumerate}
\item Calculer la probabilité de tirer un bonbon à la fraise.
@@ -47,7 +47,7 @@ Sujet numéro 01
\end{solution}
\item Calculer la probabilité de tirer un bonbon qui n'est pas au chocolat.
\begin{solution}
$T($ tirer un bonbon à la fraise ou à la menthe $) = \dfrac{60}{62}$
\end{solution}
\item Calculer la probabilité de tirer un bonbon au réglisse.
@@ -56,18 +56,18 @@ Sujet numéro 01
\end{solution}
\item Dans un autre sac, on place 25 bonbons à la menthe et 34 bonbons à la fraise. Lise préfère les bonbons à la menthe. Dans quel sac doit-elle tirer un bonbon pour avoir le plus de chance d'avoir un bonbon qu'elle préfère?
\begin{solution}
Elle prefera tirer dans le deuxième sac car
\begin{eqnarray*}
\frac{20}{62} & < & \frac{25}{34}
\frac{20}{62} & < & \frac{25}{34}
\end{eqnarray*}
\end{solution}
\end{enumerate}
\section{Exercice}
\begin{enumerate}
\item Compléter les pointillés pour qu'il y est bien égalité.
@@ -89,83 +89,83 @@ Sujet numéro 01
\item Faire les calculs suivants en détaillant les étapes (penser à simplifier les fractions quand c'est possible).
\begin{enumerate}
\item $A = \frac{ 10 }{ 2 } + \frac{ 8 }{ 2 }$
\begin{solution}
\begin{eqnarray*}
A & = & \frac{ 10 }{ 2 } + \frac{ 8 }{ 2 } \\
A & = & \frac{ 10 + 8 }{ 2 } \\
A & = & \frac{ 10 }{ 2 } + \frac{ 8 }{ 2 } \\
A & = & \frac{ 10 + 8 }{ 2 } \\
A & = & 9
\end{eqnarray*}
\end{solution}
\item $B = \frac{ 6 }{ 7 } + \frac{ -5 }{ 7 }$
\begin{solution}
\begin{eqnarray*}
B & = & \frac{ 6 }{ 7 } + \frac{ -5 }{ 7 } \\
B & = & \frac{ 6 - 5 }{ 7 } \\
B & = & \frac{ 6 }{ 7 } + \frac{ -5 }{ 7 } \\
B & = & \frac{ 6 - 5 }{ 7 } \\
B & = & \frac{ 1 }{ 7 }
\end{eqnarray*}
\end{solution}
\item $C = \frac{ 1 }{ 7 } + \frac{ 8 }{ 63 }$
\begin{solution}
\begin{eqnarray*}
C & = & \frac{ 1 }{ 7 } + \frac{ 8 }{ 63 } \\
C & = & \frac{ 1 \times 9 }{ 7 \times 9 } + \frac{ 8 \times 1 }{ 63 \times 1 } \\
C & = & \frac{ 9 }{ 63 } + \frac{ 8 }{ 63 } \\
C & = & \frac{ 9 + 8 }{ 63 } \\
C & = & \frac{ 1 }{ 7 } + \frac{ 8 }{ 63 } \\
C & = & \frac{ 1 \times 9 }{ 7 \times 9 } + \frac{ 8 \times 1 }{ 63 \times 1 } \\
C & = & \frac{ 9 }{ 63 } + \frac{ 8 }{ 63 } \\
C & = & \frac{ 9 + 8 }{ 63 } \\
C & = & \frac{ 17 }{ 63 }
\end{eqnarray*}
\end{solution}
\item $D = \frac{ 3 }{ 2 } + \frac{ -3 }{ 16 }$
\begin{solution}
\begin{eqnarray*}
D & = & \frac{ 3 }{ 2 } + \frac{ -3 }{ 16 } \\
D & = & \frac{ 3 \times 8 }{ 2 \times 8 } + \frac{ -3 \times 1 }{ 16 \times 1 } \\
D & = & \frac{ 24 }{ 16 } + \frac{ -3 }{ 16 } \\
D & = & \frac{ 24 - 3 }{ 16 } \\
D & = & \frac{ 3 }{ 2 } + \frac{ -3 }{ 16 } \\
D & = & \frac{ 3 \times 8 }{ 2 \times 8 } + \frac{ -3 \times 1 }{ 16 \times 1 } \\
D & = & \frac{ 24 }{ 16 } + \frac{ -3 }{ 16 } \\
D & = & \frac{ 24 - 3 }{ 16 } \\
D & = & \frac{ 21 }{ 16 }
\end{eqnarray*}
\end{solution}
\item $E = \frac{ 4 }{ 5 } \times 6$
\begin{solution}
\begin{eqnarray*}
E & = & \frac{ 4 }{ 5 } \times 6 \\
E & = & \frac{ 4 \times 6 }{ 5 } \\
E & = & \frac{ 4 }{ 5 } \times 6 \\
E & = & \frac{ 4 \times 6 }{ 5 } \\
E & = & \frac{ 24 }{ 5 }
\end{eqnarray*}
\end{solution}
\item $F = \frac{ 3 }{ 7 } \times \frac{ 9 }{ 8 }$
\begin{solution}
\begin{eqnarray*}
F & = & \frac{ 3 }{ 7 } \times \frac{ 9 }{ 8 } \\
F & = & \frac{ 9 }{ 8 } \times \frac{ 3 }{ 7 } \\
F & = & \frac{ 9 \times 3 }{ 8 \times 7 } \\
F & = & \frac{ 3 }{ 7 } \times \frac{ 9 }{ 8 } \\
F & = & \frac{ 9 }{ 8 } \times \frac{ 3 }{ 7 } \\
F & = & \frac{ 9 \times 3 }{ 8 \times 7 } \\
F & = & \frac{ 27 }{ 56 }
\end{eqnarray*}
\end{solution}
\end{enumerate}
\end{enumerate}
\section{Exercice}
\section{Exercice}
Dans la figure suivante, $(AB)$ et $(CD)$ sont parallèles, $AO = 8$, $OD = 15$, $CD = 2$ et $OB = 18$.
\includegraphics[scale=0.4]{thales1}
\includegraphics[scale=0.4]{thales1}
Calculer les longueurs $OC$ et $AB$.
\begin{solution}
On sait que
On sait que
\begin{itemize}
\item $(AB)$ et $(CD)$ sont parallèles
\item $A$,$O$ et $D$ sont alignés
@@ -182,7 +182,7 @@ Calculer les longueurs $OC$ et $AB$.
\end{tabular}
est un tableau de proportionnalité.
On en déduit que
On en déduit que
\begin{eqnarray*}
OC & = & \frac{DO \times OB}{AO} = \frac{15 \times 18}{8} = 33.75
\end{eqnarray*}
@@ -190,13 +190,13 @@ Calculer les longueurs $OC$ et $AB$.
\begin{eqnarray*}
AB & = & \frac{CD \times AO}{DO} = \frac{2 \times 8}{15} = 1.0666666666666667
\end{eqnarray*}
\end{solution}
\end{document}
%%% Local Variables:
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

View File

@@ -37,8 +37,8 @@ Sujet numéro 02
\section{Exercice}
Dans un sac, il y a 10 bonbons à la menthe, 15 bonbons à la fraise et 6 au chocolat. On choisit un bonbon au hasard dans ce sac.
\begin{enumerate}
\item Calculer la probabilité de tirer un bonbon à la fraise.
@@ -47,7 +47,7 @@ Sujet numéro 02
\end{solution}
\item Calculer la probabilité de tirer un bonbon qui n'est pas au chocolat.
\begin{solution}
$T($ tirer un bonbon à la fraise ou à la menthe $) = \dfrac{25}{31}$
\end{solution}
\item Calculer la probabilité de tirer un bonbon au réglisse.
@@ -56,18 +56,18 @@ Sujet numéro 02
\end{solution}
\item Dans un autre sac, on place 25 bonbons à la menthe et 34 bonbons à la fraise. Lise préfère les bonbons à la menthe. Dans quel sac doit-elle tirer un bonbon pour avoir le plus de chance d'avoir un bonbon qu'elle préfère?
\begin{solution}
Elle prefera tirer dans le deuxième sac car
\begin{eqnarray*}
\frac{10}{31} & < & \frac{25}{34}
\frac{10}{31} & < & \frac{25}{34}
\end{eqnarray*}
\end{solution}
\end{enumerate}
\section{Exercice}
\begin{enumerate}
\item Compléter les pointillés pour qu'il y est bien égalité.
@@ -89,89 +89,89 @@ Sujet numéro 02
\item Faire les calculs suivants en détaillant les étapes (penser à simplifier les fractions quand c'est possible).
\begin{enumerate}
\item $A = \frac{ 2 }{ 3 } + \frac{ 7 }{ 3 }$
\begin{solution}
\begin{eqnarray*}
A & = & \frac{ 2 }{ 3 } + \frac{ 7 }{ 3 } \\
A & = & \frac{ 2 + 7 }{ 3 } \\
A & = & \frac{ 2 }{ 3 } + \frac{ 7 }{ 3 } \\
A & = & \frac{ 2 + 7 }{ 3 } \\
A & = & 3
\end{eqnarray*}
\end{solution}
\item $B = \frac{ 3 }{ 10 } + \frac{ 10 }{ 10 }$
\begin{solution}
\begin{eqnarray*}
B & = & \frac{ 3 }{ 10 } + \frac{ 10 }{ 10 } \\
B & = & \frac{ 3 + 10 }{ 10 } \\
B & = & \frac{ 3 }{ 10 } + \frac{ 10 }{ 10 } \\
B & = & \frac{ 3 + 10 }{ 10 } \\
B & = & \frac{ 13 }{ 10 }
\end{eqnarray*}
\end{solution}
\item $C = \frac{ -10 }{ 6 } + \frac{ 4 }{ 12 }$
\begin{solution}
\begin{eqnarray*}
C & = & \frac{ -10 }{ 6 } + \frac{ 4 }{ 12 } \\
C & = & \frac{ -10 \times 2 }{ 6 \times 2 } + \frac{ 4 \times 1 }{ 12 \times 1 } \\
C & = & \frac{ -20 }{ 12 } + \frac{ 4 }{ 12 } \\
C & = & \frac{ -20 + 4 }{ 12 } \\
C & = & \frac{ -16 }{ 12 } \\
C & = & \frac{ -4 \times 4 }{ 3 \times 4 } \\
C & = & \frac{ -10 }{ 6 } + \frac{ 4 }{ 12 } \\
C & = & \frac{ -10 \times 2 }{ 6 \times 2 } + \frac{ 4 \times 1 }{ 12 \times 1 } \\
C & = & \frac{ -20 }{ 12 } + \frac{ 4 }{ 12 } \\
C & = & \frac{ -20 + 4 }{ 12 } \\
C & = & \frac{ -16 }{ 12 } \\
C & = & \frac{ -4 \times 4 }{ 3 \times 4 } \\
C & = & \frac{ -4 }{ 3 }
\end{eqnarray*}
\end{solution}
\item $D = \frac{ 10 }{ 6 } + \frac{ -8 }{ 42 }$
\begin{solution}
\begin{eqnarray*}
D & = & \frac{ 10 }{ 6 } + \frac{ -8 }{ 42 } \\
D & = & \frac{ 10 \times 7 }{ 6 \times 7 } + \frac{ -8 \times 1 }{ 42 \times 1 } \\
D & = & \frac{ 70 }{ 42 } + \frac{ -8 }{ 42 } \\
D & = & \frac{ 70 - 8 }{ 42 } \\
D & = & \frac{ 62 }{ 42 } \\
D & = & \frac{ 31 \times 2 }{ 21 \times 2 } \\
D & = & \frac{ 10 }{ 6 } + \frac{ -8 }{ 42 } \\
D & = & \frac{ 10 \times 7 }{ 6 \times 7 } + \frac{ -8 \times 1 }{ 42 \times 1 } \\
D & = & \frac{ 70 }{ 42 } + \frac{ -8 }{ 42 } \\
D & = & \frac{ 70 - 8 }{ 42 } \\
D & = & \frac{ 62 }{ 42 } \\
D & = & \frac{ 31 \times 2 }{ 21 \times 2 } \\
D & = & \frac{ 31 }{ 21 }
\end{eqnarray*}
\end{solution}
\item $E = \frac{ 6 }{ 9 } \times 4$
\begin{solution}
\begin{eqnarray*}
E & = & \frac{ 6 }{ 9 } \times 4 \\
E & = & \frac{ 6 \times 4 }{ 9 } \\
E & = & \frac{ 24 }{ 9 } \\
E & = & \frac{ 8 \times 3 }{ 3 \times 3 } \\
E & = & \frac{ 6 }{ 9 } \times 4 \\
E & = & \frac{ 6 \times 4 }{ 9 } \\
E & = & \frac{ 24 }{ 9 } \\
E & = & \frac{ 8 \times 3 }{ 3 \times 3 } \\
E & = & \frac{ 8 }{ 3 }
\end{eqnarray*}
\end{solution}
\item $F = \frac{ 9 }{ 2 } \times \frac{ 9 }{ 5 }$
\begin{solution}
\begin{eqnarray*}
F & = & \frac{ 9 }{ 2 } \times \frac{ 9 }{ 5 } \\
F & = & \frac{ 9 }{ 5 } \times \frac{ 9 }{ 2 } \\
F & = & \frac{ 9 \times 9 }{ 5 \times 2 } \\
F & = & \frac{ 9 }{ 2 } \times \frac{ 9 }{ 5 } \\
F & = & \frac{ 9 }{ 5 } \times \frac{ 9 }{ 2 } \\
F & = & \frac{ 9 \times 9 }{ 5 \times 2 } \\
F & = & \frac{ 81 }{ 10 }
\end{eqnarray*}
\end{solution}
\end{enumerate}
\end{enumerate}
\section{Exercice}
\section{Exercice}
Dans la figure suivante, $(AB)$ et $(CD)$ sont parallèles, $AO = 11$, $OD = 18$, $CD = 6$ et $OB = 14$.
\includegraphics[scale=0.4]{thales1}
\includegraphics[scale=0.4]{thales1}
Calculer les longueurs $OC$ et $AB$.
\begin{solution}
On sait que
On sait que
\begin{itemize}
\item $(AB)$ et $(CD)$ sont parallèles
\item $A$,$O$ et $D$ sont alignés
@@ -188,7 +188,7 @@ Calculer les longueurs $OC$ et $AB$.
\end{tabular}
est un tableau de proportionnalité.
On en déduit que
On en déduit que
\begin{eqnarray*}
OC & = & \frac{DO \times OB}{AO} = \frac{18 \times 14}{11} = 22.90909090909091
\end{eqnarray*}
@@ -196,13 +196,13 @@ Calculer les longueurs $OC$ et $AB$.
\begin{eqnarray*}
AB & = & \frac{CD \times AO}{DO} = \frac{6 \times 11}{18} = 3.666666666666667
\end{eqnarray*}
\end{solution}
\end{document}
%%% Local Variables:
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

View File

@@ -37,8 +37,8 @@ Sujet numéro 03
\section{Exercice}
Dans un sac, il y a 56 bonbons à la menthe, 70 bonbons à la fraise et 6 au chocolat. On choisit un bonbon au hasard dans ce sac.
\begin{enumerate}
\item Calculer la probabilité de tirer un bonbon à la fraise.
@@ -47,7 +47,7 @@ Sujet numéro 03
\end{solution}
\item Calculer la probabilité de tirer un bonbon qui n'est pas au chocolat.
\begin{solution}
$T($ tirer un bonbon à la fraise ou à la menthe $) = \dfrac{126}{132}$
\end{solution}
\item Calculer la probabilité de tirer un bonbon au réglisse.
@@ -56,18 +56,18 @@ Sujet numéro 03
\end{solution}
\item Dans un autre sac, on place 25 bonbons à la menthe et 34 bonbons à la fraise. Lise préfère les bonbons à la menthe. Dans quel sac doit-elle tirer un bonbon pour avoir le plus de chance d'avoir un bonbon qu'elle préfère?
\begin{solution}
Elle prefera tirer dans le deuxième sac car
\begin{eqnarray*}
\frac{56}{132} & < & \frac{25}{34}
\frac{56}{132} & < & \frac{25}{34}
\end{eqnarray*}
\end{solution}
\end{enumerate}
\section{Exercice}
\begin{enumerate}
\item Compléter les pointillés pour qu'il y est bien égalité.
@@ -89,93 +89,93 @@ Sujet numéro 03
\item Faire les calculs suivants en détaillant les étapes (penser à simplifier les fractions quand c'est possible).
\begin{enumerate}
\item $A = \frac{ 2 }{ 10 } + \frac{ 2 }{ 10 }$
\begin{solution}
\begin{eqnarray*}
A & = & \frac{ 2 }{ 10 } + \frac{ 2 }{ 10 } \\
A & = & \frac{ 2 + 2 }{ 10 } \\
A & = & \frac{ 4 }{ 10 } \\
A & = & \frac{ 2 \times 2 }{ 5 \times 2 } \\
A & = & \frac{ 2 }{ 10 } + \frac{ 2 }{ 10 } \\
A & = & \frac{ 2 + 2 }{ 10 } \\
A & = & \frac{ 4 }{ 10 } \\
A & = & \frac{ 2 \times 2 }{ 5 \times 2 } \\
A & = & \frac{ 2 }{ 5 }
\end{eqnarray*}
\end{solution}
\item $B = \frac{ -5 }{ 4 } + \frac{ -2 }{ 4 }$
\begin{solution}
\begin{eqnarray*}
B & = & \frac{ -5 }{ 4 } + \frac{ -2 }{ 4 } \\
B & = & \frac{ -5 - 2 }{ 4 } \\
B & = & \frac{ -5 }{ 4 } + \frac{ -2 }{ 4 } \\
B & = & \frac{ -5 - 2 }{ 4 } \\
B & = & \frac{ -7 }{ 4 }
\end{eqnarray*}
\end{solution}
\item $C = \frac{ -8 }{ 2 } + \frac{ 10 }{ 16 }$
\begin{solution}
\begin{eqnarray*}
C & = & \frac{ -8 }{ 2 } + \frac{ 10 }{ 16 } \\
C & = & \frac{ -8 \times 8 }{ 2 \times 8 } + \frac{ 10 \times 1 }{ 16 \times 1 } \\
C & = & \frac{ -64 }{ 16 } + \frac{ 10 }{ 16 } \\
C & = & \frac{ -64 + 10 }{ 16 } \\
C & = & \frac{ -54 }{ 16 } \\
C & = & \frac{ -27 \times 2 }{ 8 \times 2 } \\
C & = & \frac{ -8 }{ 2 } + \frac{ 10 }{ 16 } \\
C & = & \frac{ -8 \times 8 }{ 2 \times 8 } + \frac{ 10 \times 1 }{ 16 \times 1 } \\
C & = & \frac{ -64 }{ 16 } + \frac{ 10 }{ 16 } \\
C & = & \frac{ -64 + 10 }{ 16 } \\
C & = & \frac{ -54 }{ 16 } \\
C & = & \frac{ -27 \times 2 }{ 8 \times 2 } \\
C & = & \frac{ -27 }{ 8 }
\end{eqnarray*}
\end{solution}
\item $D = \frac{ -9 }{ 2 } + \frac{ -4 }{ 14 }$
\begin{solution}
\begin{eqnarray*}
D & = & \frac{ -9 }{ 2 } + \frac{ -4 }{ 14 } \\
D & = & \frac{ -9 \times 7 }{ 2 \times 7 } + \frac{ -4 \times 1 }{ 14 \times 1 } \\
D & = & \frac{ -63 }{ 14 } + \frac{ -4 }{ 14 } \\
D & = & \frac{ -63 - 4 }{ 14 } \\
D & = & \frac{ -9 }{ 2 } + \frac{ -4 }{ 14 } \\
D & = & \frac{ -9 \times 7 }{ 2 \times 7 } + \frac{ -4 \times 1 }{ 14 \times 1 } \\
D & = & \frac{ -63 }{ 14 } + \frac{ -4 }{ 14 } \\
D & = & \frac{ -63 - 4 }{ 14 } \\
D & = & \frac{ -67 }{ 14 }
\end{eqnarray*}
\end{solution}
\item $E = \frac{ 5 }{ 8 } \times 4$
\begin{solution}
\begin{eqnarray*}
E & = & \frac{ 5 }{ 8 } \times 4 \\
E & = & \frac{ 5 \times 1 \times 4 }{ 2 \times 4 } \\
E & = & \frac{ 5 \times 4 }{ 8 } \\
E & = & \frac{ 20 }{ 8 } \\
E & = & \frac{ 5 \times 4 }{ 2 \times 4 } \\
E & = & \frac{ 5 }{ 8 } \times 4 \\
E & = & \frac{ 5 \times 1 \times 4 }{ 2 \times 4 } \\
E & = & \frac{ 5 \times 4 }{ 8 } \\
E & = & \frac{ 20 }{ 8 } \\
E & = & \frac{ 5 \times 4 }{ 2 \times 4 } \\
E & = & \frac{ 5 }{ 2 }
\end{eqnarray*}
\end{solution}
\item $F = \frac{ 6 }{ 7 } \times \frac{ 3 }{ 8 }$
\begin{solution}
\begin{eqnarray*}
F & = & \frac{ 6 }{ 7 } \times \frac{ 3 }{ 8 } \\
F & = & \frac{ 3 }{ 8 } \times \frac{ 6 }{ 7 } \\
F & = & \frac{ 3 \times 3 \times 2 }{ 4 \times 2 \times 7 } \\
F & = & \frac{ 3 \times 6 }{ 8 \times 7 } \\
F & = & \frac{ 18 }{ 56 } \\
F & = & \frac{ 9 \times 2 }{ 28 \times 2 } \\
F & = & \frac{ 6 }{ 7 } \times \frac{ 3 }{ 8 } \\
F & = & \frac{ 3 }{ 8 } \times \frac{ 6 }{ 7 } \\
F & = & \frac{ 3 \times 3 \times 2 }{ 4 \times 2 \times 7 } \\
F & = & \frac{ 3 \times 6 }{ 8 \times 7 } \\
F & = & \frac{ 18 }{ 56 } \\
F & = & \frac{ 9 \times 2 }{ 28 \times 2 } \\
F & = & \frac{ 9 }{ 28 }
\end{eqnarray*}
\end{solution}
\end{enumerate}
\end{enumerate}
\section{Exercice}
\section{Exercice}
Dans la figure suivante, $(AB)$ et $(CD)$ sont parallèles, $AO = 3$, $OD = 7$, $CD = 5$ et $OB = 2$.
\includegraphics[scale=0.4]{thales2}
\includegraphics[scale=0.4]{thales2}
Calculer les longueurs $OC$ et $AB$.
\begin{solution}
On sait que
On sait que
\begin{itemize}
\item $(AB)$ et $(CD)$ sont parallèles
\item $A$,$O$ et $D$ sont alignés
@@ -192,7 +192,7 @@ Calculer les longueurs $OC$ et $AB$.
\end{tabular}
est un tableau de proportionnalité.
On en déduit que
On en déduit que
\begin{eqnarray*}
OC & = & \frac{DO \times OB}{AO} = \frac{7 \times 2}{3} = 4.666666666666666
\end{eqnarray*}
@@ -200,13 +200,13 @@ Calculer les longueurs $OC$ et $AB$.
\begin{eqnarray*}
AB & = & \frac{CD \times AO}{DO} = \frac{5 \times 3}{7} = 2.142857142857143
\end{eqnarray*}
\end{solution}
\end{document}
%%% Local Variables:
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

View File

@@ -59,20 +59,20 @@ Sujet numéro \Var{infos.num}
\Block{if (int(a)/total) > (25/34)}
Elle prefera tirer dans le premier sac car
\begin{eqnarray*}
\frac{\Var{a}{\Var{total}} & > & \frac{25}{34}
\frac{\Var{a}{\Var{total}} & > & \frac{25}{34}
\end{eqnarray*}
\Block{else}
Elle prefera tirer dans le deuxième sac car
\begin{eqnarray*}
\frac{\Var{a}}{\Var{total}} & < & \frac{25}{34}
\frac{\Var{a}}{\Var{total}} & < & \frac{25}{34}
\end{eqnarray*}
\Block{endif}
\end{solution}
\end{enumerate}
\section{Exercice}
\begin{enumerate}
\item Compléter les pointillés pour qu'il y est bien égalité.
@@ -137,23 +137,23 @@ Sujet numéro \Var{infos.num}
\end{eqnarray*}
\end{solution}
\end{enumerate}
\end{enumerate}
\section{Exercice}
\section{Exercice}
\Block{set AO, OD, CD, OB = random_str("{a},{b},{c},{d}", ["{a} < {b}", "{c} != {d}"], 1, 20).split(',')}
Dans la figure suivante, $(AB)$ et $(CD)$ sont parallèles, $AO = \Var{AO}$, $OD = \Var{OD}$, $CD = \Var{CD}$ et $OB = \Var{OB}$.
\Block{set fig = random_str("{a}", [], 1, 2)}
\includegraphics[scale=0.4]{thales\Var{fig}}
\includegraphics[scale=0.4]{thales\Var{fig}}
Calculer les longueurs $OC$ et $AB$.
\begin{solution}
On sait que
On sait que
\begin{itemize}
\item $(AB)$ et $(CD)$ sont parallèles
\item $A$,$O$ et $D$ sont alignés
@@ -170,7 +170,7 @@ Calculer les longueurs $OC$ et $AB$.
\end{tabular}
est un tableau de proportionnalité.
On en déduit que
On en déduit que
\begin{eqnarray*}
OC & = & \frac{DO \times OB}{AO} = \frac{\Var{OD} \times \Var{OB}}{\Var{AO}} = \Var{int(OD)*int(OB)/int(AO) | round(2)}
\end{eqnarray*}
@@ -178,14 +178,13 @@ Calculer les longueurs $OC$ et $AB$.
\begin{eqnarray*}
AB & = & \frac{CD \times AO}{DO} = \frac{\Var{CD} \times \Var{AO}}{\Var{OD}} = \Var{int(CD)*int(AO)/int(OD) |round(2)}
\end{eqnarray*}
\end{solution}
\end{document}
%%% Local Variables:
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "master"
%%% End:

View File

@@ -13,70 +13,70 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys
import os
import shlex
import sys
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
# sys.path.insert(0, os.path.abspath('.'))
# -- General configuration ------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
# needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
"sphinx.ext.autodoc",
"sphinx.ext.mathjax",
"sphinx.ext.ifconfig",
"sphinx.ext.viewcode",
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
templates_path = ["_templates"]
# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
# source_suffix = ['.rst', '.md']
source_suffix = '.rst'
source_suffix = ".rst"
# The encoding of source files.
#source_encoding = 'utf-8-sig'
# source_encoding = 'utf-8-sig'
# The master toctree document.
master_doc = 'index'
master_doc = "index"
# General information about the project.
project = 'Opytex'
copyright = '2016, Benjamin Bertrand'
author = 'Benjamin Bertrand'
project = "Opytex"
copyright = "2016, Benjamin Bertrand"
author = "Benjamin Bertrand"
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.1'
version = "0.1"
# The full version, including alpha/beta/rc tags.
release = '0.1'
release = "0.1"
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = 'fr'
language = "fr"
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'
# today_fmt = '%B %d, %Y'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
@@ -84,27 +84,27 @@ exclude_patterns = []
# The reST default role (used for this markup: `text`) to use for all
# documents.
#default_role = None
# default_role = None
# If true, '()' will be appended to :func: etc. cross-reference text.
#add_function_parentheses = True
# add_function_parentheses = True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
#add_module_names = True
# add_module_names = True
# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
#show_authors = False
# show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
# modindex_common_prefix = []
# If true, keep warnings as "system message" paragraphs in the built documents.
#keep_warnings = False
# keep_warnings = False
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = False
@@ -114,159 +114,153 @@ todo_include_todos = False
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#html_theme = 'alabaster'
# html_theme = 'alabaster'
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
# html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
# html_theme_path = []
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
#html_title = None
# html_title = None
# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None
# html_short_title = None
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
# html_logo = None
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None
# html_favicon = None
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_static_path = ["_static"]
# Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation.
#html_extra_path = []
# html_extra_path = []
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
# html_last_updated_fmt = '%b %d, %Y'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
#html_use_smartypants = True
# html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
# html_sidebars = {}
# Additional templates that should be rendered to pages, maps page names to
# template names.
#html_additional_pages = {}
# html_additional_pages = {}
# If false, no module index is generated.
#html_domain_indices = True
# html_domain_indices = True
# If false, no index is generated.
#html_use_index = True
# html_use_index = True
# If true, the index is split into individual pages for each letter.
#html_split_index = False
# html_split_index = False
# If true, links to the reST sources are added to the pages.
#html_show_sourcelink = True
# html_show_sourcelink = True
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#html_show_sphinx = True
# html_show_sphinx = True
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#html_show_copyright = True
# html_show_copyright = True
# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
#html_use_opensearch = ''
# html_use_opensearch = ''
# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None
# html_file_suffix = None
# Language to be used for generating the HTML full-text search index.
# Sphinx supports the following languages:
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'h', 'it', 'ja'
# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
#html_search_language = 'en'
# html_search_language = 'en'
# A dictionary with options for the search language support, empty by default.
# Now only 'ja' uses this config value
#html_search_options = {'type': 'default'}
# html_search_options = {'type': 'default'}
# The name of a javascript file (relative to the configuration directory) that
# implements a search results scorer. If empty, the default will be used.
#html_search_scorer = 'scorer.js'
# html_search_scorer = 'scorer.js'
# Output file base name for HTML help builder.
htmlhelp_basename = 'Opytexdoc'
htmlhelp_basename = "Opytexdoc"
# -- Options for LaTeX output ---------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
# Latex figure (float) alignment
#'figure_align': 'htbp',
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
# Latex figure (float) alignment
#'figure_align': 'htbp',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'Opytex.tex', 'Opytex Documentation',
'Benjamin Bertrand', 'manual'),
(master_doc, "Opytex.tex", "Opytex Documentation", "Benjamin Bertrand", "manual"),
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
#latex_logo = None
# latex_logo = None
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
#latex_use_parts = False
# latex_use_parts = False
# If true, show page references after internal links.
#latex_show_pagerefs = False
# latex_show_pagerefs = False
# If true, show URL addresses after external links.
#latex_show_urls = False
# latex_show_urls = False
# Documents to append as an appendix to all manuals.
#latex_appendices = []
# latex_appendices = []
# If false, no module index is generated.
#latex_domain_indices = True
# latex_domain_indices = True
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'opytex', 'Opytex Documentation',
[author], 1)
]
man_pages = [(master_doc, "opytex", "Opytex Documentation", [author], 1)]
# If true, show URL addresses after external links.
#man_show_urls = False
# man_show_urls = False
# -- Options for Texinfo output -------------------------------------------
@@ -275,19 +269,25 @@ man_pages = [
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'Opytex', 'Opytex Documentation',
author, 'Opytex', 'One line description of project.',
'Miscellaneous'),
(
master_doc,
"Opytex",
"Opytex Documentation",
author,
"Opytex",
"One line description of project.",
"Miscellaneous",
),
]
# Documents to append as an appendix to all manuals.
#texinfo_appendices = []
# texinfo_appendices = []
# If false, no module index is generated.
#texinfo_domain_indices = True
# texinfo_domain_indices = True
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'
# texinfo_show_urls = 'footnote'
# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
# texinfo_no_detailmenu = False

View File

@@ -38,4 +38,3 @@ Indices and tables
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

View File

@@ -69,7 +69,7 @@ Simplifications de fractions
Explications
\begin{align*}
\Var{f.simplify().explain()|join('=')}
\Var{f.simplify().explain()|join('=')}
\end{align*}
Ce qui produira
@@ -84,9 +84,9 @@ Simplifications de fractions
\dfrac{12}{9} = \dfrac{4}{3}
\end{align*}
Explications
\begin{align*}
\frac{ 12 }{ 9 }=\frac{ 4 \times 3 }{ 3 \times 3 }=\frac{ 4 }{ 3 }
\frac{ 12 }{ 9 }=\frac{ 4 \times 3 }{ 3 \times 3 }=\frac{ 4 }{ 3 }
\end{align*}
Et ce qui donne
@@ -104,9 +104,9 @@ Simplifications de fractions
\end{align*}
Explications
\begin{align*}
\frac{ 12 }{ 9 }=\frac{ 4 \times 3 }{ 3 \times 3 }=\frac{ 4 }{ 3 }
\frac{ 12 }{ 9 }=\frac{ 4 \times 3 }{ 3 \times 3 }=\frac{ 4 }{ 3 }
\end{align*}

View File

@@ -67,7 +67,7 @@ Ce qui produira
i vaut 3
i vaut 4
Quelques commandes supplémentaires
==================================
@@ -84,7 +84,7 @@ Filtres qui marchenet bien avec Mapytex
\Block{set e = Expression("1 + 2*3")}
et on veut détailler sa simplification
\begin{align*}
\Var{e.simplify().explain()|join('=')}
\Var{e.simplify().explain()|join('=')}
\end{align*}
@@ -95,7 +95,7 @@ Filtres qui marchenet bien avec Mapytex
On commence par définir une expression,
et on veut détailler sa simplification
\begin{align*}
1 + 2 \times 3 = 1 + 6 = 7
1 + 2 \times 3 = 1 + 6 = 7
\end{align*}
@@ -108,7 +108,7 @@ Filtres qui marchenet bien avec Mapytex
\Block{set e = Expression("1 + 2*3")}
et on veut détailler sa simplification
\begin{eqnarray*}
\Var{e.simplify().explain()|calculus(name = 'e')}
\Var{e.simplify().explain()|calculus(name = 'e')}
\end{eqnarray*}
@@ -121,10 +121,10 @@ Filtres qui marchenet bien avec Mapytex
\begin{eqnarray*}
e & = & 1 + 2 \times 3 \\
e & = & 1 + 6 \\
e & = & 7
e & = & 7
\end{eqnarray*}
Compilation des documents
=========================
@@ -136,7 +136,7 @@ Puis on génère et compile les 3 sujets avec la commande
opytex -t tpl_DM.tex -N 3
Ce qui a crée les fichiers sources:
Ce qui a crée les fichiers sources:
- :download:`01_DM.tex <_downloads/01_DM.tex>`
- :download:`02_DM.tex <_downloads/02_DM.tex>`
@@ -158,6 +158,3 @@ Il est possible aussi de créer les sujets et les corrections en même temps ave
.. code-block:: bash
opytex -t tpl_DM.tex -c -N 60