summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/proflycee/tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-04-21 03:01:15 +0000
committerNorbert Preining <norbert@preining.info>2024-04-21 03:01:15 +0000
commit3617595995cb2684b6a938dcbb288f658b3f9501 (patch)
tree7b8881d6145a5eae4e9ca95073704ce3a83cad39 /macros/latex/contrib/proflycee/tex
parentb235955f171a9dc4a73c82b7b44fc2be52576393 (diff)
CTAN sync 202404210301
Diffstat (limited to 'macros/latex/contrib/proflycee/tex')
-rw-r--r--macros/latex/contrib/proflycee/tex/ProfLycee.sty5
-rw-r--r--macros/latex/contrib/proflycee/tex/proflycee-tools-arithm.tex6
-rw-r--r--macros/latex/contrib/proflycee/tex/proflycee-tools-exams.tex152
3 files changed, 159 insertions, 4 deletions
diff --git a/macros/latex/contrib/proflycee/tex/ProfLycee.sty b/macros/latex/contrib/proflycee/tex/ProfLycee.sty
index be9319048d..25a212e65a 100644
--- a/macros/latex/contrib/proflycee/tex/ProfLycee.sty
+++ b/macros/latex/contrib/proflycee/tex/ProfLycee.sty
@@ -3,7 +3,8 @@
% or later, see http://www.latex-project.org/lppl.txtf
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ProfLycee}[2024/03/30 3.03c Aide pour l'utilisation de LaTeX en lycee]
+\ProvidesPackage{ProfLycee}[2024/04/20 3.03d Aide pour l'utilisation de LaTeX en lycee]
+% 3.03d Page de garde type BAC
% 3.03c Correction du fonctionnement gobble avec piton + compatibilité luamplib PfC
% 3.03b Compétences Maths Lycées + \pflnum pour num+xint :-) + correction de bugs (div eucl)
% 3.03a Forme canonique + fonction homographique
@@ -227,5 +228,7 @@
\input{proflycee-tools-recreat.tex}
%%------Compétences
\input{proflycee-tools-competences.tex}
+%%------Examens
+\input{proflycee-tools-exams.tex}
\endinput \ No newline at end of file
diff --git a/macros/latex/contrib/proflycee/tex/proflycee-tools-arithm.tex b/macros/latex/contrib/proflycee/tex/proflycee-tools-arithm.tex
index f013ab3d07..db3f2bc8ac 100644
--- a/macros/latex/contrib/proflycee/tex/proflycee-tools-arithm.tex
+++ b/macros/latex/contrib/proflycee/tex/proflycee-tools-arithm.tex
@@ -672,8 +672,8 @@
\NewDocumentCommand\InverseModulo{ s m m }{%
\xdef\PGCDD{\xinteval{gcd(#2,#3)}}%
- \xdef\resinvmod{#2{} n'est pas inversible modulo #3.}
- \xintFor* ##1 in {\xintSeq{1}{#3}}\do{\xintifboolexpr{\xintiiRem{\xinteval{#2*##1}}{#3} == 1}{\xdef\resinvmod{##1}}{}}%
+ \xdef\resinvmod{#2{} n'est pas inversible modulo #3.}%
+ \xintFor* ##1 in {\xintSeq{1}{#3}}\do{\xintifboolexpr{\xintiiRem{\xinteval{#2*##1}}{#3} == 1}{\xdef\resinvmod{##1}}{}}%
\IfBooleanTF{#1}%
{%
On a $\text{PGCD}(#2;#3)=\num{\PGCDD}$.~%
@@ -696,7 +696,7 @@
\ifboolKV[chiffaffine]{Dechiffr}%
{%
\xdef\resinvmod{0}%
- \xintFor* ##1 in {\xintSeq{1}{\tmpmodulo}}\do{
+ \xintFor* ##1 in {\xintSeq{1}{\tmpmodulo}}\do{%
\xintifboolexpr{\xintiiRem{\xinteval{(\tmpcoeffa)*(##1)}}{\tmpmodulo} == 1}%
{\xdef\resinvmod{##1}}{}%
}%
diff --git a/macros/latex/contrib/proflycee/tex/proflycee-tools-exams.tex b/macros/latex/contrib/proflycee/tex/proflycee-tools-exams.tex
new file mode 100644
index 0000000000..940c64d0a4
--- /dev/null
+++ b/macros/latex/contrib/proflycee/tex/proflycee-tools-exams.tex
@@ -0,0 +1,152 @@
+% proflycee-tools-stats.tex
+% Copyright 2024 Cédric Pierquet
+% Released under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt
+
+%3.03d Page de garde Type BAC
+
+%====PAGE GARDE [BAC]
+\defKV[EnteteSujetBac]{DernierePage=\def\packlastpage{#1},NbExos=\def\packnbexos{#1},Serie=\def\packfiliere{#1}}
+\setKVdefault[EnteteSujetBac]{%
+ Police=\normalfont,%
+ Serie={GÉNÉRAL},%
+ Matiere=MATHÉMATIQUES,%
+ Filiere={SCIENCES ET TECHNOLOGIES DE L’INDUSTRIE ET DU DÉVELOPPEMENT DURABLE},%
+ Session={SESSION \the\year},%
+ AffSession=true,%
+ Jour={Jour 1},%
+ AffJour=true,%
+ Duree=4 heures,%
+ ModeExamen=true,%
+ DernierePage=lastpage,%
+ Justification=true,%
+ TraceRecherche=true,%
+ Clarte=true,%
+ NbExos=4,%
+ Traiter=false,%
+ EspaceAvant=1cm,%
+ LargeurPar={0.85\linewidth}
+}
+
+\NewDocumentCommand\PageGardeSujetBac{ O{} }{%
+ \restoreKV[EnteteSujetBac]%
+ \setKV[EnteteSujetBac]{#1}%
+ \useKV[EnteteSujetBac]{Police}{%
+ \vspace*{\useKV[EnteteSujetBac]{EspaceAvant}}
+
+ \begin{center}
+ {\Huge BACCALAURÉAT~%
+ \IfSubStr{\packfiliere}{GÉN}{GÉNÉRAL}{}%
+ \IfSubStr{\packfiliere}{GEN}{GÉNÉRAL}{}%
+ \IfSubStr{\packfiliere}{TECHNO}{TECHNOLOGIQUE}{}%
+ \IfSubStr{\packfiliere}{PRO}{PROFESSIONNEL}{}%
+ }%
+ \IfSubStr{\packfiliere}{PRO}%
+ {}%
+ {%
+ \vspace*{10mm}
+
+ {\Large ÉPREUVE D’ENSEIGNEMENT DE SPÉCIALITÉ}%
+ }%
+
+ \ifboolKV[EnteteSujetBac]{AffSession}%
+ {%
+ \vspace*{10mm}
+
+ {\Large\bfseries\useKV[EnteteSujetBac]{Session}}%
+ }%
+ {}%
+ \IfSubStr{\packfiliere}{TECHNO}%
+ {%
+ \vspace*{10mm}
+
+ \begin{minipage}{\useKV[EnteteSujetBac]{LargeurPar}}
+ \centering
+ \linespread{1.2}\LARGE\bfseries\useKV[EnteteSujetBac]{Filiere}
+ \end{minipage}%
+ }%
+ {}%
+ \IfSubStr{\packfiliere}{PRO}%
+ {%
+ \vspace*{10mm}
+
+ \begin{minipage}{\useKV[EnteteSujetBac]{LargeurPar}}
+ \centering
+ \linespread{1.2}\LARGE\bfseries\useKV[EnteteSujetBac]{Filiere}
+ \end{minipage}%
+ }%
+ {}%
+ \vspace*{15mm}
+
+ {\LARGE\bfseries \useKV[EnteteSujetBac]{Matiere}}
+
+ \ifboolKV[EnteteSujetBac]{AffJour}%
+ {%
+ \vspace*{15mm}
+
+ {\Large\bfseries \useKV[EnteteSujetBac]{Jour}}%
+ }%
+ {}%
+
+ \vspace*{15mm}
+
+ Durée de l’épreuve : \textbf{\useKV[EnteteSujetBac]{Duree}}%
+
+ \vspace*{15mm}
+
+ \ifboolKV[EnteteSujetBac]{ModeExamen}%
+ {%
+ \textit{L’usage de la calculatrice avec mode examen actif est autorisé.}
+
+ \medskip
+
+ \textit{L’usage de la calculatrice sans mémoire « type collège » est autorisé.}
+ }%
+ {%
+ \textit{L’usage de la calculatrice avec ou sans mode examen est autorisé.}
+ }%
+ \vspace*{10mm}
+
+ Dès que ce sujet vous est remis, assurez-vous qu’il est complet.
+
+ \smallskip
+
+ Ce sujet comporte \IfStrEqCase{\packlastpage}{{lastpage}{\pageref{LastPage}}{zref}{\zpageref{LastPage}}}[\packlastpage]\ pages numérotées de 1/\IfStrEqCase{\packlastpage}{{lastpage}{\pageref{LastPage}}{zref}{\zpageref{LastPage}}}[\packlastpage]\ à \IfStrEqCase{\packlastpage}{{lastpage}{\pageref{LastPage}}{zref}{\zpageref{LastPage}}}[\packlastpage]/\IfStrEqCase{\packlastpage}{{lastpage}{\pageref{LastPage}}{zref}{\zpageref{LastPage}}}[\packlastpage].
+ \end{center}
+ %
+ \begin{center}
+ \parbox{\useKV[EnteteSujetBac]{LargeurPar}}{%
+ \ifboolKV[EnteteSujetBac]{Justification}%
+ {%
+ \vspace*{10mm}
+
+ \noindent\textbf{Sauf mention contraire, toute réponse devra être justifiée.}
+ }%
+ {}%
+ \ifboolKV[EnteteSujetBac]{Traiter}%
+ {%
+ \vspace*{5mm}
+
+ \noindent\textbf{Le candidat doit traiter les \IfStrEqCase{\packnbexos}{{2}{deux}{3}{trois}{4}{quatre}{5}{cinq}{6}{six}{7}{sept}}\ exercices proposés.}
+ }%
+ {}%
+ \ifboolKV[EnteteSujetBac]{TraceRecherche}%
+ {%
+ \vspace*{10mm}
+
+ \noindent\textit{Le candidat est invité à faire figurer sur la copie toute trace de recherche, même incomplète ou non fructueuse, qu’il aura développée.}
+ }%
+ {}%
+ \ifboolKV[EnteteSujetBac]{Clarte}%
+ {%
+ \vspace*{2mm}
+
+ \noindent\textit{La qualité de la rédaction, la clarté et la précision des raisonnements seront prises en compte dans l’appréciation de la copie. Les traces de recherche, même incomplètes ou infructueuses seront valorisées.}
+ }%
+ {}%
+ }%
+ \end{center}%
+ }%
+ \pagebreak
+}
+
+\endinput \ No newline at end of file