summaryrefslogtreecommitdiff
path: root/macros
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-01-04 03:02:56 +0000
committerNorbert Preining <norbert@preining.info>2024-01-04 03:02:56 +0000
commitc45a0e15a3f74b963e3c2be142de33c8c8f12588 (patch)
treea7ec0f84bd371896fde6eecb620dfd3d771918ad /macros
parent92effab22b73c432933e7eb8e12c1cefda221df9 (diff)
CTAN sync 202401040302
Diffstat (limited to 'macros')
-rw-r--r--macros/latex/contrib/profmaquette/doc/ProfMaquette-doc.pdfbin267874 -> 275467 bytes
-rw-r--r--macros/latex/contrib/profmaquette/doc/ProfMaquette-doc.tex71
-rw-r--r--macros/latex/contrib/profmaquette/latex/ProfMaquette.sty415
-rw-r--r--macros/latex/contrib/srdp-mathematik/README.md2
-rw-r--r--macros/latex/contrib/srdp-mathematik/srdp-mathematik.pdfbin181023 -> 180957 bytes
-rw-r--r--macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty5
-rw-r--r--macros/latex/contrib/srdp-mathematik/srdp-mathematik.tex2
-rw-r--r--macros/latex/contrib/tikzquests/README.md71
-rw-r--r--macros/latex/contrib/tikzquests/doc/tikzquests.pdfbin0 -> 348067 bytes
-rw-r--r--macros/latex/contrib/tikzquests/doc/tikzquests.tex416
-rw-r--r--macros/latex/contrib/tikzquests/latex/tikzquests.sty526
11 files changed, 1387 insertions, 121 deletions
diff --git a/macros/latex/contrib/profmaquette/doc/ProfMaquette-doc.pdf b/macros/latex/contrib/profmaquette/doc/ProfMaquette-doc.pdf
index d3c757b5d4..a8568b7eca 100644
--- a/macros/latex/contrib/profmaquette/doc/ProfMaquette-doc.pdf
+++ b/macros/latex/contrib/profmaquette/doc/ProfMaquette-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/profmaquette/doc/ProfMaquette-doc.tex b/macros/latex/contrib/profmaquette/doc/ProfMaquette-doc.tex
index f7ed922994..69ae2dafdd 100644
--- a/macros/latex/contrib/profmaquette/doc/ProfMaquette-doc.tex
+++ b/macros/latex/contrib/profmaquette/doc/ProfMaquette-doc.tex
@@ -125,7 +125,7 @@
texcsstyle=*\color{black},%pour colorer la contre-oblique
classoffset=5,
texcsstyle=*\color{blue},%pour colorer la contre-oblique
- moretexcs={brm,TikzDM,TikzDMCor,TikzDS,TikzDSCor,TikzIE,TikzIECor,TikzFiche,TikzFicheCor,TikzCours,Competences,TikzParcours,TikzParcoursCor,TikzPdT,TikzPdTCor,PfMCompNA,PfMCompECA,PfMCompA,AfficheParcours,CheminVrai,CheminFaux,TikzContrat,TikzContratCor,TikzFdR,TikzFdRCor,AfficheContrat,AfficheFdR,TikzCAN,TikzCANCor,Complement},
+ moretexcs={brm,TikzDM,TikzDMCor,TikzDS,TikzDSCor,TikzIE,TikzIECor,TikzFiche,TikzFicheCor,TikzCours,Competences,TikzParcours,TikzParcoursCor,TikzPdT,TikzPdTCor,PfMCompNA,PfMCompECA,PfMCompA,AfficheParcours,CheminVrai,CheminFaux,TikzContrat,TikzContratCor,TikzFdR,TikzFdRCor,AfficheContrat,AfficheFdR,TikzCAN,TikzCANCor,Complement,PfMTexteEncart,PfMEspaceAvantLignes,PfMEspaceApresLignes},
emph={Maquette,exercice,Solution,Reponse,Indice},%
classoffset=1,
keywords={DM,DS,IE,Fiche,CorrigeFin,CorrigeApres,PdT,Parcours,ParcoursPerso,Cours,FdR,Contrat,CAN,Dys},
@@ -134,10 +134,10 @@
keywords={Theme,Niveau,Classe,Date,Calculatrice,Code,Numero,Sujet,Nom,NumSujet,Fichier,Type,CoefQ,CoefR,CoefJ},
keywordstyle=\color{BlueViolet},%DarkMagenta},
classoffset=3,
- keywords={Pouce,Direct,PasCorrige,BaremeDetaille,BaremeTotal,Source,Titre,Oral,Calculatrice,Competence,Trajet,Confiance,Route,Stop},
+ keywords={Pouce,Direct,PasCorrige,BaremeDetaille,BaremeTotal,Source,Titre,Oral,Calculatrice,Competence,Trajet,Confiance,Route,Stop,Lignes,Encart},
keywordstyle=\color{DarkGreen},
classoffset=4,
- keywords={userfiche,userfichecor,userdm,userdmcor,userie,useriecor,userds,userdscor,userparcours,userparcourscor,userpdt,userpdtcor,usercours,usercontrat,usercontratcor,userfdr,userfdrcor},
+ keywords={userfiche,userfichecor,userdm,userdmcor,userie,useriecor,userds,userdscor,userparcours,userparcourscor,userpdt,userpdtcor,usercours,usercontrat,usercontratcor,userfdr,userfdrcor,usercan,usercancor},
keywordstyle=\color{Purple},
% delim = **[s][\color{purple}]{$}{$},
% moredelim = **[s][\color{purple}]{\\[}{\\]},
@@ -635,15 +635,15 @@ Le code suivant montre, à la page suivante, les effets de cette clé \Cle{Dys}.
Comme on peut le voir, chaque type de travail est associé à une présentation. Ces présentations sont créées par les commandes associées à des styles prédéfinis.\footnote{Qu'on peut donc redéfinir. Par exemple, c'est ce que j'ai fait dans ce document pour la commande \lstinline!\\TikzFiche! : elle ne commence plus une nouvelle page.} \lstinline!tcolorbox! :
\begin{itemize}[label=\textbullet]
\item \lstinline!userdm / userdmcor! pour la clé \Cle{DM};
-\item \lstinline!userds/userdscor! pour la clé \Cle{DS};%
-\item \lstinline!userie/useriecor! pour la clé \Cle{IE};%
-\item \lstinline!userfiche/userfichecor! pour la clé \Cle{Fiche};%*
-\item \lstinline!userparcours/userparcourscor! pour la clé \Cle{Parcours};%*
-\item \lstinline!userpdt/userpdtcor! pour la clé \Cle{PdT};%*
+\item \lstinline!userds / userdscor! pour la clé \Cle{DS};%
+\item \lstinline!userie / useriecor! pour la clé \Cle{IE};%
+\item \lstinline!userfiche / userfichecor! pour la clé \Cle{Fiche};%*
+\item \lstinline!userparcours / userparcourscor! pour la clé \Cle{Parcours};%*
+\item \lstinline!userpdt / userpdtcor! pour la clé \Cle{PdT};%*
\item \lstinline!usercours! pour la clé \Cle{Cours};
-\item \lstinline!usercontrat/usercontratcor! pour la clé \Cle{Contrat};%*
-\item \lstinline!userfdr/userfdrcor! pour la clé \Cle{FdR};%*
-\item et \lstinline!usercan/usercancor! pour la clé \Cle{CAN}.
+\item \lstinline!usercontrat / usercontratcor! pour la clé \Cle{Contrat};%*
+\item \lstinline!userfdr / userfdrcor! pour la clé \Cle{FdR};%*
+\item et \lstinline!usercan / usercancor! pour la clé \Cle{CAN}.
\end{itemize}
Par exemple, pour une fiche, le style {\em par défaut} permet d'obtenir :
@@ -684,16 +684,16 @@ on obtient :
Pour modifier {\em plus finement} les entêtes des différentes maquettes, on dispose des commandes :
\begin{itemize}[label=\textbullet]
-\item \lstinline!\TikzDM/\TikzDMCor! pour la clé \Cle{DM};
-\item \lstinline!\TikzDS/\TikzDSCor! pour la clé \Cle{DS};%
-\item \lstinline!\TikzIE/\TikzIECor! pour la clé \Cle{IE};%
-\item \lstinline!\TikzFiche/\TikzFicheCor! pour la clé \Cle{Fiche};%*
-\item \lstinline!\TikzParcours/\TikzParcoursCor! pour la clé \Cle{Parcours};%*
-\item \lstinline!\TikzPdT/\TikzPdTCor! pour la clé \Cle{PdT};%*
+\item \lstinline!\TikzDM / \TikzDMCor! pour la clé \Cle{DM};
+\item \lstinline!\TikzDS / \TikzDSCor! pour la clé \Cle{DS};%
+\item \lstinline!\TikzIE / \TikzIECor! pour la clé \Cle{IE};%
+\item \lstinline!\TikzFiche / \TikzFicheCor! pour la clé \Cle{Fiche};%*
+\item \lstinline!\TikzParcours / \TikzParcoursCor! pour la clé \Cle{Parcours};%*
+\item \lstinline!\TikzPdT / \TikzPdTCor! pour la clé \Cle{PdT};%*
\item \lstinline!\TikzCours! pour la clé \Cle{Cours};
-\item \lstinline!\TikzContrat/\TikzContratCor! pour la clé \Cle{Contrat};%*
-\item \lstinline!\TikzFdR/\TikzFdRCor! pour la clé \Cle{FdR};%*
-\item et \lstinline!\TikzCAN/\TikzCANCor! pour la clé \Cle{CAN}.%*
+\item \lstinline!\TikzContrat / \TikzContratCor! pour la clé \Cle{Contrat};%*
+\item \lstinline!\TikzFdR / \TikzFdRCor! pour la clé \Cle{FdR};%*
+\item et \lstinline!\TikzCAN / \TikzCANCor! pour la clé \Cle{CAN}.%*
\end{itemize}
Leurs modifications seront facilitées en copiant le code fourni par le fichier \lstinline!ProfMaquette.sty!.
@@ -725,7 +725,7 @@ Si l'on souhaite davantage de niveaux d'évaluations (ou moins), on utilisera le
\end{exercice}
\end{Codes}
\subsection*{Habillage des exercices}
-L'environnement \lstinline!exercice! doit {\em impérativement} être inclus dans un environnement \lstinline!Maquette! car le choix de document influence la présentation des exercices.
+L'environnement \lstinline!exercice! doit {\em impérativement} être inclus dans un environnement \lstinline!Maquette! car le type de document choisi influence la présentation des exercices.
\begin{Codes}[]{0.5}{}
\begin{Maquette}[IE]{Theme=Les fonctions,Niveau=3,Classe=Gide}
\begin{exercice}%
@@ -864,6 +864,29 @@ Si on souhaite citer la source d'un exercice ou lui donner un titre, on dispose
\end{Maquette}
\end{Description}
\clearpage
+\subsection*{Des parties à compléter ?}
+Après chaque exercice, on peut faire apparaître des zones à compléter.
+\begin{Description}
+\item[La clé \Cle{Lignes}] indique le nombre de lignes à tracer {\em après} la fin de l'exercice.\Defaut{-}
+\item[La clé \Cle{Encart}] indique l'espace à laisser {\em après} la fin de l'exercice.\Defaut{-}\\La valeur attendue est une longueur.
+\end{Description}
+\begin{Codes}[]{0.4}{}
+\begin{Maquette}[Fiche]{Theme=Nombres entiers}
+ \begin{exercice}[Lignes=5]
+ On considère un triangle $ABC$ tel que \dots
+ \end{exercice}
+ \begin{exercice}[Encart=5em]
+ On considère un triangle $ABC$ tel que \dots
+ \end{exercice}
+\end{Maquette}
+\end{Codes}
+On peut modifier :
+\begin{itemize}
+\item l'espace vertical avant les lignes par {\em la longueur} \lstinline!\PfMEspaceAvantLignes!;\\\phantom{t}\Defaut{1em}
+\item l'espace vertical avant les lignes par {\em la longueur} \lstinline!\PfMEspaceApresLignes!;\\\phantom{t}\Defaut{1em}
+\item le texte d'introduction de l'encart par {\em la commande} \lstinline!\PfMTexteEncart!.
+\end{itemize}
+\clearpage
\subsection*{Des logos ?}
Les clés décrites dans cette partie ne sont disponibles que pour les maquettes
\lstinline!Fiche! / \lstinline!Parcours!.
@@ -1122,6 +1145,7 @@ Dans le cas de cette maquette, l'environnement \lstinline!exercice! dispose de l
\end{Maquette}
\clearpage
\subsection*{Focus sur la maquette \lstinline!FdR!}
+%\setcounter{}{0}
Dans le cas de cette maquette, l'environnement \lstinline!exercice! dispose des clés \Cle{Route} et \Cle{Stop} permettant de construire automatiquement une feuille de route. La commande \lstinline!\AfficheFdR{}! représente un schéma associé à la feuille de route construite par l'enseignant : l'élève réalise les exercices de la ligne du bas puis demande la validation de l'enseignant. Une fois la validation acquise, l'enseignant peut lui proposer de faire les exercices de la ligne du haut ou de poursuivre la feuille de route.
\\Ce schéma se construit seul, automatiquement, après que l'enseignant ait utilisé les clés \Cle{Route} et \Cle{Stop} dans la création de ses exercices. Il faudra néanmoins deux compilations et vérifier que chaque \og morceau\fg{} de route soit non vide (La ligne haute, quant à elle, pouvant être vide). \`A noter que ce schéma, avec l'utilisation du package \lstinline!hyperref!, dispose de liens cliquables sur les exercices sélectionnés pour le parcours.
\begin{Codes}[listing only,listing options={frame=,escapechar=!}]{0.4}{\scriptsize}
@@ -1274,7 +1298,7 @@ On peut gérer la correction des exercices à deux niveaux :
\end{Description}
Pour les maquettes \lstinline!ParcoursPerso! et \lstinline!CAN!, seule la clé \Cle{CorrigeFin} est autorisée.
-
+\clearpage
\begin{Codes}[listing only]{0.4}{\footnotesize}
\begin{Maquette}[IE,CorrigeApres]{Theme=Calcul littéral}
\begin{exercice}% n'a pas de correction
@@ -1428,7 +1452,8 @@ Cela engendre, si nécessaire, la création de fichier \lstinline!*.sol! pour le
\clearpage
\section*{Historique}
\begin{description}
-\item[\PfMfiledate{}--v \PfMfileversion] Correction de bugs.
+\item[\PfMfiledate{}--v \PfMfileversion] Ajout des clés \lstinline!Lignes! et \lstinline!Encart! à l'environnement \lstinline!exercice!. Amélioration de la documentation.
+ %0.82 Correction de bugs.
%0.80 Ajout d'une clé \Cle{Dys} pour les élèves à profil particulier.
%0.75 Exercices {\em éventuellement} non numérotés. Correction de bugs (Feuille de route).
%0.65 Création du format CAN (Course aux nombres).
diff --git a/macros/latex/contrib/profmaquette/latex/ProfMaquette.sty b/macros/latex/contrib/profmaquette/latex/ProfMaquette.sty
index 24267d36b5..6713b00c72 100644
--- a/macros/latex/contrib/profmaquette/latex/ProfMaquette.sty
+++ b/macros/latex/contrib/profmaquette/latex/ProfMaquette.sty
@@ -2,9 +2,9 @@
% licence : Released under the LaTeX Project Public License v1.3c
% or later, see http://www.latex-project.org/lppl.txtf
\NeedsTeXFormat{LaTeX2e}%
-\def\filedate{2023/12/20}%
+\def\filedate{2024/01/03}%
\let\PfMfiledate\filedate%
-\def\fileversion{0.82}%
+\def\fileversion{0.85}%
\let\PfMfileversion\fileversion%
\ProvidesPackage{ProfMaquette}[\filedate\space v\fileversion\space Maquettage de documents]%
@@ -59,7 +59,7 @@
\setKVdefault[Kholle]{Sujet=1,Numero=1,Date=15,Niveau=TSI-1,Code=\jobname,Lieu=Lycée
du Hainaut (Valenciennes),NomEleve=Albert Einstein,CR=false}%
\setKVdefault[CAN]{Date=\today,Niveau=6,Duree=9,CoefQ=0.4,CoefR=0.35,CoefJ=0.1}%
-\setKVdefault[ClesExercices]{NbQuestions=1,PasTitre=false,AffichageSource=false,BaremeTotal,BaremeDetaille=false,MotPoint=point,AffichageTitre=false,Calculatrice=true,Oral=false,Difficulte=0,AffichageCompetence=false,PasCorrige=false,Direct=false,Pouce=false,Parcours=false,Contrat=false,FdR=false,Routes=false,Stops=false,Background=white,Cadre=gray!50,Numerote}%
+\setKVdefault[ClesExercices]{NbQuestions=1,PasTitre=false,AffichageSource=false,BaremeTotal,BaremeDetaille=false,MotPoint=point,AffichageTitre=false,Calculatrice=true,Oral=false,Difficulte=0,AffichageCompetence=false,PasCorrige=false,Direct=false,Pouce=false,Parcours=false,Contrat=false,FdR=false,Routes=false,Stops=false,Background=white,Cadre=gray!50,Numerote,Ligne=false,Cadres=false}%
\defKV[ClesExercices]{Source=\setKV[ClesExercices]{AffichageSource}}%
\defKV[ClesExercices]{Titre=\setKV[ClesExercices]{AffichageTitre}}%
\defKV[ClesExercices]{Competence=\setKV[ClesExercices]{AffichageCompetence}}%
@@ -67,9 +67,32 @@
\defKV[ClesExercices]{Confiance=\setKV[ClesExercices]{Contrat}}%
\defKV[ClesExercices]{Route=\setKV[ClesExercices]{Routes}}%
\defKV[ClesExercices]{Stop=\setKV[ClesExercices]{Stops}}%
+\defKV[ClesExercices]{Lignes=\setKV[ClesExercices]{Ligne}}%
+\defKV[ClesExercices]{Encart=\setKV[ClesExercices]{Cadres}}%
+\def\PfMTexteEncart{Indique ton travail ci-dessous.}%
\setKVdefault[SchemaParcours]{Colonnes=100,Rayon=2.5mm,Largeur=7.5mm,Couleur=LightSteelBlue,Csv=false}%
\setKVdefault[SchemaContrat]{Ecart=7mm,Rayon=2.5mm}%
\setKVdefault[SchemaFdR]{Ecart=7mm,Colonnes=100,Rayon=2.5mm,Largeur=7.5mm,Couleur=LightSteelBlue,Csv=false}%
+% Sucres
+\makeatletter%
+\NewDocumentCommand\PfMDotfill{}{%
+\leavevmode%
+\cleaders\hb@xt@.44em{\hss\xleaders\hrule width0.33em\hss}\hfill%
+\kern\z@}%
+
+%\makeatother%
+%
+\NewDocumentCommand\PfMpointilles{o}{%
+ \IfNoValueTF{#1}{\PfMDotfill}{\makebox[#1]{\PfMDotfill}}%
+}%
+%
+\NewDocumentCommand\PfMLignespointilles{m}{%
+ \xintifboolexpr{\fpeval{#1}>1}{%
+ \xintFor* ##1 in {\xintSeq {1}{\fpeval{#1}}}\do{%
+ \PfMpointilles\par%
+ }%
+ }{}%
+}%
% Definition de longueurs
\newlength\PfMLargeurSchemaParcours%
\newlength\PfMRayonSchemaParcours%
@@ -82,8 +105,12 @@
\newlength\PfMLargeurQuestion%
\newlength\PfMLargeurReponse%
\newlength\PfMLargeurJury%
+\newlength\PfMEspaceAvantLignes%
+\newlength\PfMEspaceApresLignes%
\setlength{\PfMHauteurAppreciation}{5cm}%
\setlength{\PfMHauteurRemarque}{5cm}%
+\setlength{\PfMEspaceAvantLignes}{1em}
+\setlength{\PfMEspaceApresLignes}{1em}
% définition des compteurs
\newcounter{PfMMaquette}%Pour compter le nombres de "travaux"
\setcounter{PfMMaquette}{0}%
@@ -112,11 +139,12 @@
% couleurs
\colorlet{PfMColCpt}{gray!50}%
\colorlet{PfMColSrc}{gray!50}%
-%\colorlet{PfMCadreFiche}{gray!50}
+\colorlet{PfMCadreEncart}{gray!50}
\colorlet{PfMCadreDM}{gray!85}%
\colorlet{PfMCadreParcours}{gray!50}%
\colorlet{PfMCadreContrat}{gray!50}%
\colorlet{PfMCadreFdR}{gray!50}%
+\colorlet{PfMFondEncart}{white}%
% Définitions de commandes
\newcommand\PfMIENom{\dotfill}%
\newcommand\PfMIEPrenom{\dotfill}%
@@ -142,14 +170,14 @@
\NewDocumentEnvironment{Consignes}{+b}{%
\ifboolKV[Boulot]{CAN}{}{%
- \begin{tcolorbox}[consignes]
+ \begin{tcolorbox}[consignes]%
\small\sffamily #1
- \end{tcolorbox}
- }
+ \end{tcolorbox}%
+ }%
}{}%
-\definecolor{SLCP}{HTML}{00B51A}
-\colorlet{Evidence}{SLCP}
+\definecolor{SLCP}{HTML}{00B51A}%
+\colorlet{Evidence}{SLCP}%
% Pour la gestion de l'aléatoire
% afin de permettre d'utiliser le même exercice.
@@ -293,6 +321,150 @@
\xdef#4{\PfMMixFoo}%
}%
+\NewDocumentCommand\MelangeNomFonction{mm}{%
+ % #1 Nombre d'éléments à conserver
+ % #2 Nom de la commande qui conserve
+ \setsepchar{,}\ignoreemptyitems%
+ \readlist*\ListeInter{f,g,h,k,\ell,m,p,q,r,s,u,v,w}%%
+ \xdef\faa{}% Liste construite
+ \xdef\fii{}% Liste détruite
+ \xintFor* ##1 in {\xintSeq{1}{#1}}\do{%
+ \xintifboolexpr{#1==1}{%
+ \xdef\Alea{\fpeval{randint(\ListeInterlen)}}%
+ \xdef\faa{\faa\ListeInter[\Alea]}%
+ }{%
+ \xintifboolexpr{\ListeInterlen>1}{%
+ \xdef\Alea{\fpeval{randint(\ListeInterlen)}}%
+ \xdef\faa{\faa\ListeInter[\Alea],}%
+ \xdef\fii{}%
+ \xintFor* ##2 in {\xintSeq{1}{\ListeInterlen}}\do{%
+ \xintifboolexpr{##2 == \Alea}{%
+ }{%
+ \xdef\fii{\fii \ListeInter[##2],}%
+ }%
+ }%
+ }{%
+ \xdef\faa{\faa\ListeInter[1]}%
+ }%
+ \readlist*\ListeInter{\fii}%
+ }%
+ }%
+ \xdef#2{\faa}%
+}%
+
+\NewDocumentCommand\MelangeNomVariable{mm}{%
+ % #1 Nombre d'éléments à conserver
+ % #2 Nom de la commande qui conserve
+ \setsepchar{,}\ignoreemptyitems%
+ \readlist*\ListeInter{a,b,n,t,x,y,z}%
+ \xdef\faa{}% Liste construite
+ \xdef\fii{}% Liste détruite
+ \xintFor* ##1 in {\xintSeq{1}{#1}}\do{%
+ \xintifboolexpr{#1==1}{%
+ \xdef\Alea{\fpeval{randint(\ListeInterlen)}}%
+ \xdef\faa{\faa\ListeInter[\Alea]}%
+ }{%
+ \xintifboolexpr{\ListeInterlen>1}{%
+ \xdef\Alea{\fpeval{randint(\ListeInterlen)}}%
+ \xdef\faa{\faa\ListeInter[\Alea],}%
+ \xdef\fii{}%
+ \xintFor* ##2 in {\xintSeq{1}{\ListeInterlen}}\do{%
+ \xintifboolexpr{##2 == \Alea}{%
+ }{%
+ \xdef\fii{\fii \ListeInter[##2],}%
+ }%
+ }%
+ }{%
+ \xdef\faa{\faa\ListeInter[1]}%
+ }%
+ \readlist*\ListeInter{\fii}%
+ }%
+ }%
+ \xdef#2{\faa}%
+}%
+
+\NewDocumentCommand\ChoixAleaMultiMixRep{mmmmm}{%
+ % #1 nombre de valeurs à choisir
+ % #2 valeur minimale
+ % #3 valeur maximale
+ % #4 valeur à exclure
+ % #5 Nom de la liste qui récupère les données.
+ \xdef\PfCRetiensRetenues{}%
+ \xdef\PfMMixFoo{#2,#3}%
+ \setsepchar{,}\ignoreemptyitems%
+ \readlist*\ListeValeursExclues{#4}%
+ \xintFor* ##1 in{\xintSeq{\fpeval{#2+1}}{\fpeval{#3-1}}}\do{%
+ \xdef\PfCRetiensExclues{0}%
+ \xintFor* ##2 in{\xintSeq{1}{\ListeValeursExclueslen}}\do{%
+ \xintifboolexpr{##1==\ListeValeursExclues[##2]}{\xdef\PfCRetiensExclues{\fpeval{\PfCRetiensExclues+1}}}{}%
+ }%
+ \ifnum\fpeval{\PfCRetiensExclues}=0\relax%
+ \xdef\PfMMixFoo{\PfMMixFoo,##1}%
+ \fi%
+ }%
+ \xintFor* ##1 in {\xintSeq{1}{#1}}\do{%
+ \MelangeListe{\PfMMixFoo}{1}%
+ \xdef\PfCRetiensRetenues{\PfCRetiensRetenues\faa}%
+ }%
+ \xdef#5{\PfCRetiensRetenues}%
+}%
+
+\NewDocumentCommand\AffSigne{smm}{%
+ \ifnum#2=0\relax{}
+ \else
+ \ifnum#3=0\relax{}
+ \else
+ \ifnum#3>0\relax{}
+ +
+ \fi
+ \fi
+ \fi
+}%
+
+\NewDocumentCommand\AffPoly{O{x}m}{%
+ \setsepchar{,}\ignoreemptyitems
+ \readlist*\ListeCoeff{#2}
+ \ensuremath{
+ \ifnum\ListeCoeff[1]=0\relax
+ \Affichage{\ListeCoeff[2]}{\ListeCoeff[3]}{\ListeCoeff[4]}%
+ \else
+ \ifnum\ListeCoeff[1]=1\relax
+ #1^3%
+ \else\ifnum\ListeCoeff[1]=-1\relax
+ -#1^3
+ \else\num{\ListeCoeff[1]}#1^3
+ \fi
+ \fi
+ \ifnum\ListeCoeff[2]=0\relax
+ \ifnum\ListeCoeff[3]=0\relax
+ \ifnum\ListeCoeff[4]=0\relax
+ \else
+ \ifnum\ListeCoeff[4]>0
+ +\Affichage[Lettre=#1]{0}{0}{\ListeCoeff[4]}
+ \else
+ \Affichage[Lettre=#1]{0}{0}{\ListeCoeff[4]}
+ \fi
+ \fi
+ \else
+ \ifnum\ListeCoeff[3]>0\relax
+ +\Affichage[Lettre=#1]{0}{\ListeCoeff[3]}{\ListeCoeff[4]}
+ \else
+ \Affichage[Lettre=#1]{0}{\ListeCoeff[3]}{\ListeCoeff[4]}
+ \fi
+ \fi
+ \else
+ \ifnum\ListeCoeff[2]>0\relax
+ +\Affichage[Lettre=#1]{\ListeCoeff[2]}{\ListeCoeff[3]}{\ListeCoeff[4]}%\num{\ListeCoeff[2]}x^2
+ \else
+ \Affichage[Lettre=#1]{\ListeCoeff[2]}{\ListeCoeff[3]}{\ListeCoeff[4]}%\num{\ListeCoeff[2]}x^2
+ \fi
+ \fi
+ \fi
+ }
+}
+
+\newcounter{PfCenumi}
+
\NewDocumentCommand\RestoreChoixAlea{m}{%
\stepcounter{PfMAlea}%
%Je restaure la valeur \thePfMExoSol-\thePfMAlea
@@ -567,7 +739,7 @@
\newcommand*\FranPt[1]{%
% \ifboolKV[ClesExercices]{BaremeDetaille}{%
- \color{red!75}(\num{#1})%
+ \color{gray!75}(\num{#1})%
% }{}
}
@@ -695,7 +867,7 @@
%%% Base des exercices DM
\tcbset{%
tikzdm/.style={%
- lowerbox=ignored,
+ %lowerbox=ignored,
enhanced,
breakable,
colback=white,
@@ -752,19 +924,20 @@
\refstepcounter{PfMExo}%
\immediate\write\@auxout{%
\string\opcopy{\thePfMExo}{TotalExo}%
- }
+ }%
\ifboolKV[ClesExercices]{BaremeTotal}{%
\immediate\write\@auxout{%
\string\opcopy{0}{total\the\c@PfMSection-\the\c@PfMExo}%
- }}{}
- \tcolorbox[%
- tikzdm,
- label is label,
- label=page-\thePfMMaquette-\thePfMExo
- ]
+ }}{}%
+ \begin{tcolorbox}[%
+ tikzdm,%
+ label is label,%
+ label=page-\thePfMMaquette-\thePfMExo%
+ ]%
\ifboolKV[Boulot]{Dys}{\raggedright}{}%
#3
-\endtcolorbox%
+ \end{tcolorbox}%
+ \PfMApresLesExercices%
}{}%
%%Contrat
@@ -780,13 +953,13 @@
\setlength{\PfMLargeurSchemaContrat}{\useKV[SchemaContrat]{Ecart}}%
\setlength{\PfMRayonSchemaContrat}{\useKV[SchemaContrat]{Rayon}}%
%\colorlet{PfMCouleurSP}{\useKV[SchemaContrat]{Couleur}}%
- \@ifundefined{Op@\Alph{PfMMaquette}-ContratTotalExo}{Recompilez pour obtenir le contrat.}%
+ \@ifundefined{Op@\Roman{PfMMaquette}-ContratTotalExo}{Recompilez pour obtenir le contrat.}%
{%
- \opexport{\Alph{PfMMaquette}-ContratTotalExo}{\ContratTotalExo}%
+ \opexport{\Roman{PfMMaquette}-ContratTotalExo}{\ContratTotalExo}%
% % Total Exo : \ContratTotalExo
\setsepchar{,}\ignoreemptyitems%
- \xdef\PfCFooListeA{\csname \Alph{PfMMaquette}Contrata\endcsname}%
- \xdef\PfCFooListeB{\csname \Alph{PfMMaquette}Contratb\endcsname}%
+ \xdef\PfCFooListeA{\csname \Roman{PfMMaquette}Contrata\endcsname}%
+ \xdef\PfCFooListeB{\csname \Roman{PfMMaquette}Contratb\endcsname}%
\readlist*\ListeA{\PfCFooListeA}%
\readlist*\ListeB{\PfCFooListeB}%
% Liste A : \showitems\ListeA[]\par
@@ -881,27 +1054,30 @@
}%
\NewDocumentCommand\RemplisContrat{m}{%
- \ifcsname \Alph{PfMMaquette}confiance#1\endcsname
- \expandafter\xdef\csname \Alph{PfMMaquette}confiance#1\endcsname{\csname \Alph{PfMMaquette}confiance#1\endcsname,\thePfMExo}%
+ \ifcsname \Roman{PfMMaquette}confiance#1\endcsname
+ \expandafter\xdef\csname \Roman{PfMMaquette}confiance#1\endcsname{\csname \Roman{PfMMaquette}confiance#1\endcsname,\thePfMExo}%
% Yes !
\else
% No !
- \expandafter\xdef\csname \Alph{PfMMaquette}confiance#1\endcsname{\thePfMExo}%
+ \expandafter\xdef\csname \Roman{PfMMaquette}confiance#1\endcsname{\thePfMExo}%
\fi
- \immediate\write\@auxout{\noexpand\expandafter\gdef\noexpand\csname \Alph{PfMMaquette}Contrat#1\endcsname{\csname \Alph{PfMMaquette}confiance#1\endcsname}}%
+ \immediate\write\@auxout{\noexpand\expandafter\gdef\noexpand\csname \Roman{PfMMaquette}Contrat#1\endcsname{\csname \Roman{PfMMaquette}confiance#1\endcsname}}%
}%
-\newenvironment{exerciceContrat}[1][]{%
+\NewDocumentEnvironment{exerciceContrat}{so+b}{%
\setcounter{PfMAlea}{0}%
\setcounter{PfMNbLogo}{1}%
\useKVdefault[ClesExercices]%
- \setKV[ClesExercices]{#1}%
+ \setKV[ClesExercices]{#2}%
+ \IfBooleanTF{#1}{%
+ \setKV[ClesExercices]{Numerote=false}%
+ }{}%
\setKV[ClesExercices]{BaremeTotal=false,BaremeDetaille=false}%
\refstepcounter{PfMSection}%
\PfMChoixCorrection%
\refstepcounter{PfMExo}%
- \immediate\write\@auxout{\string\opcopy{\thePfMExo}{\Alph{PfMMaquette}-ContratTotalExo}}%
+ \immediate\write\@auxout{\string\opcopy{\thePfMExo}{\Roman{PfMMaquette}-ContratTotalExo}}%
% Creation des parcours
\ifboolKV[ClesExercices]{Contrat}{%
% Remise à zéro de conteneurs des parcours
@@ -913,14 +1089,16 @@
}%
}{}%
%
- \tcolorbox[%
- tikzcontrat,
- label is label,
- label=page-\thePfMMaquette-\thePfMExo
- ]
- \ifboolKV[Boulot]{Dys}{\raggedright}{}%
-}{\endtcolorbox%
-}
+ \begin{tcolorbox}[%
+ tikzcontrat,
+ label is label,
+ label=page-\thePfMMaquette-\thePfMExo
+ ]
+ \ifboolKV[Boulot]{Dys}{\raggedright}{}%
+ #3
+ \end{tcolorbox}
+ \PfMApresLesExercices%
+}{}%
%%% Contrat %%%
\tcbset{%
@@ -1004,12 +1182,12 @@
\setlength{\PfMLargeurSchemaFdR}{\useKV[SchemaFdR]{Ecart}}%
\setlength{\PfMRayonSchemaFdR}{\useKV[SchemaFdR]{Rayon}}%
\colorlet{PfMCouleurFdR}{\useKV[SchemaFdR]{Couleur}}%
- \@ifundefined{Op@\Alph{PfMMaquette}-FdRTotalExo}{Recompilez pour obtenir la feuille de route.}%
+ \@ifundefined{Op@\Roman{PfMMaquette}-FdRTotalExo}{Recompilez pour obtenir la feuille de route.}%
{%
- \opexport{\Alph{PfMMaquette}-FdRTotalExo}{\FdRTotalExo}%
- \xdef\PfMListeExerciceFdR{\csname \Alph{PfMMaquette}FdRtrue\endcsname}%
- \ifcsname \Alph{PfMMaquette}FdRstop\endcsname%
- \xdef\PfMListeExerciceFdRStop{\csname \Alph{PfMMaquette}FdRstop\endcsname}%
+ \opexport{\Roman{PfMMaquette}-FdRTotalExo}{\FdRTotalExo}%
+ \xdef\PfMListeExerciceFdR{\csname \Roman{PfMMaquette}FdRtrue\endcsname}%
+ \ifcsname \Roman{PfMMaquette}FdRstop\endcsname%
+ \xdef\PfMListeExerciceFdRStop{\csname \Roman{PfMMaquette}FdRstop\endcsname}%
\else%
\xdef\PfMListeExerciceFdRStop{}%
\fi%
@@ -1231,26 +1409,29 @@
}%
\NewDocumentCommand\RemplisFdR{m}{%
- \ifcsname \Alph{PfMMaquette}route#1\endcsname
- \expandafter\xdef\csname \Alph{PfMMaquette}route#1\endcsname{\csname \Alph{PfMMaquette}route#1\endcsname,\thePfMExo}%
+ \ifcsname \Roman{PfMMaquette}route#1\endcsname
+ \expandafter\xdef\csname \Roman{PfMMaquette}route#1\endcsname{\csname \Roman{PfMMaquette}route#1\endcsname,\thePfMExo}%
% Yes !
\else
% No !
- \expandafter\xdef\csname \Alph{PfMMaquette}route#1\endcsname{\thePfMExo}%
+ \expandafter\xdef\csname \Roman{PfMMaquette}route#1\endcsname{\thePfMExo}%
\fi
- \immediate\write\@auxout{\noexpand\expandafter\gdef\noexpand\csname \Alph{PfMMaquette}FdR#1\endcsname{\csname \Alph{PfMMaquette}route#1\endcsname}}%
+ \immediate\write\@auxout{\noexpand\expandafter\gdef\noexpand\csname \Roman{PfMMaquette}FdR#1\endcsname{\csname \Roman{PfMMaquette}route#1\endcsname}}%
}%
-\newenvironment{exerciceFdR}[1][]{%
+\NewDocumentEnvironment{exerciceFdR}{so+b}{%
\setcounter{PfMAlea}{0}%
\setcounter{PfMNbLogo}{1}%
\useKVdefault[ClesExercices]%
- \setKV[ClesExercices]{#1}%
+ \setKV[ClesExercices]{#2}%
+ \IfBooleanTF{#1}{%
+ \setKV[ClesExercices]{Numerote=false}%
+ }{}%
\setKV[ClesExercices]{BaremeTotal=false,BaremeDetaille=false}%
\stepcounter{PfMSection}%
\PfMChoixCorrection%
\refstepcounter{PfMExo}%
- \immediate\write\@auxout{\string\opcopy{\thePfMExo}{\Alph{PfMMaquette}-FdRTotalExo}}%
+ \immediate\write\@auxout{\string\opcopy{\thePfMExo}{\Roman{PfMMaquette}-FdRTotalExo}}%
% Creation des parcours
\ifboolKV[ClesExercices]{Routes}{%
% Remise à zéro de conteneurs des parcours
@@ -1274,14 +1455,16 @@
}%
}{}%
%
- \tcolorbox[%
- tikzFdR,
- label is label,
- label=page-\thePfMMaquette-\thePfMExo
- ]
- \ifboolKV[Boulot]{Dys}{\raggedright}{}%
-}{\endtcolorbox%
-}
+ \begin{tcolorbox}[%
+ tikzFdR,
+ label is label,
+ label=page-\thePfMMaquette-\thePfMExo
+ ]
+ \ifboolKV[Boulot]{Dys}{\raggedright}{}%
+ #3
+ \end{tcolorbox}
+ \PfMApresLesExercices%
+}{}%
%\makeatother
@@ -1289,6 +1472,7 @@
\setsepchar[*]{,*/}%
\readlist*\ListeNoms{Aude/Elle/d'Aude/qu'Aude,Bernard/Il/de Bernard/que Bernard,Céline/Elle/de Céline/que Céline,Daniel/Il/de Daniel/que Daniel,\'Elise/Elle/d'\'Elise/qu'\'Elise,Fabien/Il/de Fabien/que Fabien,Gérard/Il/de Gérard/que Gérard,Hélène/Elle/d'Hélène/qu'Hélène,Ilies/Il/d'Ilies/qu'Ilies,Jasmine/Elle/de Jasmine/que Jasmine,Kylian/Il/de Kylian/que Kylian,Laurent/Il/de Laurent/que Laurent,Mathilde/Elle/de Mathilde/que Mathilde,Nina/Elle/de Nina/que Nina,Octave/Il/d'Octave/qu'Octave,Philippe/Il/de Philippe/que Philippe,Joachim/Il/de Joachim/que Joachim,Thérèse/Elle/de Thérèse/que Thérèse,Nawel/Elle/de Nawel/que Nawel,Alexandre/Il/d'Alexandre/qu'Alexandre,Maxence/Il/de Maxence/que Maxence,Sophie/Elle/de Sophie/que Sophie,Christophe/Il/de Christophe/que Christophe,Myriam/Elle/de Myriam/que Myriam,Nathalie/Elle/de Nathalie/que Nathalie,Sébastien/Il/de Sébastion/que Sébastien}%
\readlist*\ListeChersObjets{montre/une,collier/un,bague/une,pendentif/un}%
+\readlist*\ListeSport{Football/du football/le football,Tennis/du tennis/le tennis,Basket/du basket/le basket,Athlétisme/de l'athlétisme/l'athlétisme,Natation/de la natation/la natation,Hand-ball/du hand-ball/le hand-ball,Volley-ball/du volley-ball/le volley-ball}
\setsepchar{,}%
\readlist*\ListePetitsObjets{bonbons,billes,biscuits,gommes,clous,vis,cahiers,trousses}%
\readlist*\ListeFruits{pommes,poires,abricots,cerises,fraises,framboises,noix,pêches,nectarines,myrtilles,oranges,mandarines,kiwis}%
@@ -1302,14 +1486,13 @@
\immediate\write\@auxout{%
\string\opcopy{\thePfMExo}{TotalExo}%
}%
- \@bsphack
- \immediate\openout \verbatim@out "\jobname-Ex\thePfMExo.can"
- \let\do\@makeother\dospecials
- \catcode`\^^M\active
- %\immediate\write\verbatim@out{ \string\setcounter{PfMAlea}{0}}
- \def\verbatim@processline{\immediate\write\verbatim@out{\the\verbatim@line}}
- \verbatim@start}
-\def\endExoCANWrite{\immediate\closeout\verbatim@out\@esphack}
+ \@bsphack%
+ \immediate\openout \verbatim@out "\jobname-Ex\thePfMExo.can"%
+ \let\do\@makeother\dospecials%
+ \catcode`\^^M\active%
+ \def\verbatim@processline{\immediate\write\verbatim@out{\the\verbatim@line}}%
+ \verbatim@start}%
+\def\endExoCANWrite{\immediate\closeout\verbatim@out\@esphack}%
\makeatother
\NewDocumentCommand\Complement{+m}{%
@@ -1465,12 +1648,12 @@
\setKV[SchemaParcours]{#1}%
\setlength{\PfMLargeurSchemaParcours}{\useKV[SchemaParcours]{Largeur}}%
\colorlet{PfMCouleurSP}{\useKV[SchemaParcours]{Couleur}}%
- \@ifundefined{Op@\Alph{PfMMaquette}-ParcoursTotalExo}{Recompilez pour obtenir le parcours.}%
+ \@ifundefined{Op@\Roman{PfMMaquette}-ParcoursTotalExo}{Recompilez pour obtenir le parcours.}%
{%
- \opexport{\Alph{PfMMaquette}-ParcoursTotalExo}{\ParcoursTotalExo}%
+ \opexport{\Roman{PfMMaquette}-ParcoursTotalExo}{\ParcoursTotalExo}%
% Total Exo : \ParcoursTotalExo
\setsepchar{,}\ignoreemptyitems%
- \readlist*\ListeExercicesPA{\csname \Alph{PfMMaquette}Parcours#2\endcsname}
+ \readlist*\ListeExercicesPA{\csname \Roman{PfMMaquette}Parcours#2\endcsname}
\reademptyitems%
\xdef\PfMFooTestA{\ListeExercicesPA[1]}%
\ifnum\ListeExercicesPAlen>1\relax%
@@ -1543,14 +1726,14 @@
}%
\NewDocumentCommand\RemplisParcours{m}{%
- \ifcsname \Alph{PfMMaquette}trajet#1\endcsname
- \expandafter\xdef\csname \Alph{PfMMaquette}trajet#1\endcsname{\csname \Alph{PfMMaquette}trajet#1\endcsname,\thePfMExo}%
+ \ifcsname \Roman{PfMMaquette}trajet#1\endcsname
+ \expandafter\xdef\csname \Roman{PfMMaquette}trajet#1\endcsname{\csname \Roman{PfMMaquette}trajet#1\endcsname,\thePfMExo}%
% Yes !
\else
% No !
- \expandafter\xdef\csname \Alph{PfMMaquette}trajet#1\endcsname{\thePfMExo}%
+ \expandafter\xdef\csname \Roman{PfMMaquette}trajet#1\endcsname{\thePfMExo}%
\fi
- \immediate\write\@auxout{\noexpand\expandafter\gdef\noexpand\csname \Alph{PfMMaquette}Parcours#1\endcsname{\csname \Alph{PfMMaquette}trajet#1\endcsname}}%
+ \immediate\write\@auxout{\noexpand\expandafter\gdef\noexpand\csname \Roman{PfMMaquette}Parcours#1\endcsname{\csname \Roman{PfMMaquette}trajet#1\endcsname}}%
}%
\def\exerciceParcoursPerso{%
@@ -1567,16 +1750,19 @@
\def\endexerciceParcoursPerso{\immediate\write\verbatim@out{\string\end{exercice}}\immediate\closeout\verbatim@out\@esphack}%
-\newenvironment{exerciceParcours}[1][]{%
+\NewDocumentEnvironment{exerciceParcours}{so+b}{%
\setcounter{PfMAlea}{0}%
\setcounter{PfMNbLogo}{1}%
\useKVdefault[ClesExercices]%
- \setKV[ClesExercices]{#1}%
+ \setKV[ClesExercices]{#2}%
+ \IfBooleanTF{#1}{%
+ \setKV[ClesExercices]{Numerote=false}%
+ }{}%
\setKV[ClesExercices]{BaremeTotal=false,BaremeDetaille=false}%
\refstepcounter{PfMSection}%
\PfMChoixCorrection%
\refstepcounter{PfMExo}%
- \immediate\write\@auxout{\string\opcopy{\thePfMExo}{\Alph{PfMMaquette}-ParcoursTotalExo}}%
+ \immediate\write\@auxout{\string\opcopy{\thePfMExo}{\Roman{PfMMaquette}-ParcoursTotalExo}}%
% Creation des parcours
\ifboolKV[ClesExercices]{Parcours}{%
% Remise à zéro de conteneurs des parcours
@@ -1588,14 +1774,56 @@
}%
}{}%
%
- \tcolorbox[%
- tikzparcours,
- label is label,
- label=page-\thePfMMaquette-\thePfMExo
- ]
- \ifboolKV[Boulot]{Dys}{\raggedright}{}%
-}{\endtcolorbox%
-}
+ \begin{tcolorbox}[%
+ tikzparcours,
+ label is label,
+ label=page-\thePfMMaquette-\thePfMExo
+ ]
+ \ifboolKV[Boulot]{Dys}{\raggedright}{}%
+ #3
+ \end{tcolorbox}
+ \PfMApresLesExercices%
+}{}%
+
+%%%%%%%%%%%%%%%%%%%%%%%
+% Pour encart
+%%%%%%%%%%%%%%%%%%%%%%
+
+\newtcolorbox{PfMtcbEncart}{%
+ before skip=1em,
+ enhanced,
+ breakable,
+ frame hidden,
+ height=\useKV[ClesExercices]{Encart},
+ colback=PfMFondEncart,
+ left=10pt,
+% % colframe=PfMCadreEncart,
+ overlay unbroken and first={%
+ \coordinate[xshift=10*\kvtcb@leftlower] (B) at (frame.north west);
+ \coordinate[xshift=-10*\kvtcb@leftlower] (C) at (frame.south east);
+ \draw[PfMCadreEncart,line width=1pt] (frame.south east)--(frame.south west)--(frame.north west)--(B);
+ \node[%
+ name=A,
+ fill=PfMFondEncart,
+ anchor=west,
+ xshift=\kvtcb@leftlower,
+ ] at (frame.north west){\bfseries\sffamily\PfMTexteEncart};
+ %%
+ }%
+ }%
+
+\NewDocumentCommand\PfMApresLesExercices{}{%
+ \ifboolKV[ClesExercices]{Ligne}{%
+ \par\vspace{\PfMEspaceAvantLignes}\par\PfMLignespointilles{\useKV[ClesExercices]{Lignes}}%
+ \par\vspace*{\PfMEspaceApresLignes}\par%
+ }{}%
+ \par%
+ \ifboolKV[ClesExercices]{Cadres}{%
+ \begin{PfMtcbEncart}%
+ %
+ \end{PfMtcbEncart}%
+ }{}%
+}%
\NewDocumentEnvironment{exerciceFiche}{so+b}{%
\setcounter{PfMAlea}{0}%
@@ -1611,14 +1839,15 @@
\refstepcounter{PfMSection}%
\PfMChoixCorrection%
\refstepcounter{PfMExo}%
- \tcolorbox[%
+ \begin{tcolorbox}[%
tikzfiche,
label is label,
label=page-\thePfMMaquette-\thePfMExo
]
\ifboolKV[Boulot]{Dys}{\raggedright}{}%
#3
-\endtcolorbox%
+ \end{tcolorbox}%
+ \PfMApresLesExercices%
}{}
\NewDocumentEnvironment{exerciceDS}{so+b}{%
@@ -1638,14 +1867,15 @@
\immediate\write\@auxout{%
\string\opcopy{0}{total\the\c@PfMSection-\the\c@PfMExo}%
}}{}
- \tcolorbox[%
+ \begin{tcolorbox}[%
tikzds,
label is label,
label=page-\thePfMMaquette-\thePfMExo
]
\ifboolKV[Boulot]{Dys}{\raggedright}{}%
#3
-\endtcolorbox%
+ \end{tcolorbox}%
+ \PfMApresLesExercices%
}{}%
\NewDocumentEnvironment{ExerciceRecapBrevet}{so+b}{%
@@ -1665,15 +1895,16 @@
\string\opcopy{0}{total\the\c@PfMSection-\the\c@PfMExo}%
}%
}{}%
- \tcolorbox[%
+ \begin{tcolorbox}[%
tikzrecapbrevet,
label is label,
label=page-\thePfMMaquette-\thePfMExo
]
\ifboolKV[Boulot]{Dys}{\raggedright}{}%
- #3
-}{\endtcolorbox%
-}
+ #3
+ \end{tcolorbox}
+ \PfMApresLesExercices%
+}{}%
\makeatother
%%% Recap Brevet
diff --git a/macros/latex/contrib/srdp-mathematik/README.md b/macros/latex/contrib/srdp-mathematik/README.md
index 5045698ce1..61b8d24ffb 100644
--- a/macros/latex/contrib/srdp-mathematik/README.md
+++ b/macros/latex/contrib/srdp-mathematik/README.md
@@ -1,4 +1,4 @@
-# srdp-mathematik.sty v1.12.1
+# srdp-mathematik.sty v1.12.2
This package provides basic commands for the defined formats of the Austrian sRDP in mathematics.
Furthermore, it includes ways to implement answers in the tex file, which can be voluntarily displayed in the pdf file and
diff --git a/macros/latex/contrib/srdp-mathematik/srdp-mathematik.pdf b/macros/latex/contrib/srdp-mathematik/srdp-mathematik.pdf
index a59ed419d2..7c2376886d 100644
--- a/macros/latex/contrib/srdp-mathematik/srdp-mathematik.pdf
+++ b/macros/latex/contrib/srdp-mathematik/srdp-mathematik.pdf
Binary files differ
diff --git a/macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty b/macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty
index e4b8067edb..88479c2d26 100644
--- a/macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty
+++ b/macros/latex/contrib/srdp-mathematik/srdp-mathematik.sty
@@ -10,7 +10,7 @@
%
\NeedsTeXFormat{LaTeX2e}[1996/12/26]
-\ProvidesPackage{srdp-mathematik}[2023/05/06 v1.12.1 Standard-Schularbeitsformate]
+\ProvidesPackage{srdp-mathematik}[2024/01/03 v1.12.2 Standard-Schularbeitsformate]
\usepackage{color}
@@ -46,9 +46,6 @@
\usepackage{ziffer}
\usepackage{eso-pic}
\usepackage{esvect}
-\usepackage{phaistos}
-\usepackage{substitutefont}
-\substitutefont{LPH}{\familydefault}{cmr}
\renewcommand{\vec}[1]{\vv{#1}}
\usepackage{graphicx}
\usepackage{setspace}
diff --git a/macros/latex/contrib/srdp-mathematik/srdp-mathematik.tex b/macros/latex/contrib/srdp-mathematik/srdp-mathematik.tex
index d3d6d71400..2f69b9a6df 100644
--- a/macros/latex/contrib/srdp-mathematik/srdp-mathematik.tex
+++ b/macros/latex/contrib/srdp-mathematik/srdp-mathematik.tex
@@ -55,7 +55,7 @@ hidelinks
\vfill
-\Huge The \textit{srdp-mathematik} package v1.12.1\\[1cm]
+\Huge The \textit{srdp-mathematik} package v1.12.2\\[1cm]
Documentation \\ [1cm]
diff --git a/macros/latex/contrib/tikzquests/README.md b/macros/latex/contrib/tikzquests/README.md
new file mode 100644
index 0000000000..b33cdcbfaa
--- /dev/null
+++ b/macros/latex/contrib/tikzquests/README.md
@@ -0,0 +1,71 @@
+tikzquests
+==========
+
+A parametric questions' repository.
+
+For more details, see the documentation,
+[tikzquests.pdf](http://mirrors.ctan.org/macros/latex/contrib/tikzquests/doc/tikzquests.pdf)
+
+--------------
+
+## Requirements
+* none besides a fairly recent LaTeX distribution as recent as 2022/06/01
+(with the new in kernel *\ProcessKeyOptions* and *\NewDocumentCommand*)
+
+## Installation
+The stable version is available at [CTAN](https://ctan.org/pkg/tikzquests).
+
+## Usage
+### Stable version
+Just place
+```latex
+ \usepackage{tikzquests}
+```
+
+in the preamble and compile away.
+
+
+Be aware that options might change between versions, so you have to check them manually.
+
+
+## Contacting Author
+
+For bug reports and enhancement suggestions, the preferred way is to use
+[the project's issue page](https://github.com/alceu-frigeri/tikzquests/issues).
+Please be ready to provide an example code showing the bug, if any.
+
+Please do not use the issue page for generic help on how to use the package.
+
+* git: https://github.com/alceu-frigeri/tikzquests
+
+-------------
+Copyright 2024-present by Alceu Frigeri
+
+ This work may be distributed and/or modified under the
+ conditions of
+
+ * The [LaTeX Project Public License](http://www.latex-project.org/lppl.txt), version 1.3c (or later), and/or
+ * The [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.html), version 3 (or later)
+
+This work has the LPPL maintenance status *maintained*.
+
+The Current Maintainer of this work is Alceu Frigeri
+
+-------------
+## This work consists of the files
+
+* tikzquests.sty
+ - The Package itself
+
+* README.md (this file)
+ - quick introduction
+
+* tikzquests.tex
+ - package documentation
+
+* tikzquests.pdf
+ - documentation in PDF format
+
+-------------
+* Version 1.0
+ - Initial release by CTAN.
diff --git a/macros/latex/contrib/tikzquests/doc/tikzquests.pdf b/macros/latex/contrib/tikzquests/doc/tikzquests.pdf
new file mode 100644
index 0000000000..3195ef7b2d
--- /dev/null
+++ b/macros/latex/contrib/tikzquests/doc/tikzquests.pdf
Binary files differ
diff --git a/macros/latex/contrib/tikzquests/doc/tikzquests.tex b/macros/latex/contrib/tikzquests/doc/tikzquests.tex
new file mode 100644
index 0000000000..49259e7f8d
--- /dev/null
+++ b/macros/latex/contrib/tikzquests/doc/tikzquests.tex
@@ -0,0 +1,416 @@
+% !TEX program = pdflatex
+% !TEX ext = --interaction=nonstopmode --enable-etex --enable-write18
+% !BIB program = none
+%%%==============================================================================
+%% Copyright 2023 by Alceu Frigeri
+%%
+%% This work may be distributed and/or modified under the conditions of
+%%
+%% * The [LaTeX Project Public License](http://www.latex-project.org/lppl.txt),
+%% version 1.3c (or later), and/or
+%% * The [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.html),
+%% version 3 (or later)
+%%
+%% This work has the LPPL maintenance status *maintained*.
+%%
+%% The Current Maintainer of this work is Alceu Frigeri
+%%
+%% This is version {1.0} {2024/01/03}
+%%
+%% The list of files that compose this work can be found in the README.md file at
+%% https://ctan.org/pkg/tikzquests
+%%
+%%%==============================================================================
+\documentclass[10pt]{article}
+\RequirePackage[verbose,a4paper,marginparwidth=27.5mm,top=2.5cm,bottom=1.5cm,hmargin={40mm,20mm},marginparsep=2.5mm,columnsep=10mm,asymmetric]{geometry}
+\usepackage{codedescribe}
+\usepackage{tikzquests}
+\RequirePackage[inline]{enumitem}
+\SetEnumitemKey{miditemsep}{parsep=0ex,itemsep=0.4ex}
+
+\usepackage[american,siunitx,cuteinductors,smartlabels,arrowmos,EFvoltages,betterproportions]{circuitikz}
+\usetikzlibrary{math}
+
+\RequirePackage[hidelinks,hypertexnames=false]{hyperref}
+\begin{document}
+\tstitle{
+ author={Alceu Frigeri\footnote{\tsverb{https://github.com/alceu-frigeri/tikzquests}}},
+ date={\tsdate},
+ title={The tikzquests package\break A parametric questions' repository\break Version \PkgInfo{tikzquests}{version}}
+ }
+
+\begin{typesetabstract}
+
+This is a framework for building parametric questions' repositories, which can be further used to construct parametric questions for exams. Unlike other packages (for instance \tsobj[pkg,sep={or}]{exam,exam-n,exam-lite}) this doesn't try to enforce any pre-defined presentation format, focusing only on how to set a repository and use it.
+\end{typesetabstract}
+
+\tableofcontents
+
+\section{Introduction}
+One recurring problem when typesetting exams, specially in Engineering fields, is the need to have parameterized questions, specially parameterized schematics used in exam's questions. The intent of this is to allow the creation of repositories (one or more) with 'easily' parameterized text and/or graphic (\tsobj[pkg]{tikz}) questions, but not enforcing any style/format whatsoever, leaving it to the end user.
+
+The package offers
+\begin{itemize}
+ \item A set of commands to create and use repositories,
+ \item A set of commands to create and use 'questions' (code snippets) in a repository,
+ \item Question's customization, parametrization, based on \tsobj[pkg]{pgfkeys} and a set of associated macros.
+\end{itemize}
+
+\section{Package Options}\label{package options}
+\begin{describelist}{option}
+\describe{xtrakeys}{This allows to expand the set of pre-defined (\tsobj[pkg]{pgfkeys}) keys. See \ref{parameters}.}
+\describe{xtraidx}{This allows to expand the set of pre-defined (\tsobj[pkg]{pgfkeys}) indexes per key. See \ref{parameters}.}
+\describe{no defs}{(default: false). This changes the parametrization strategy suppressing the creation of ``keys commands''.}
+\describe{no alias}{(default: false). This suppress the creation of Question's aliases (see \ref{question definition}), handy when one wants to reduce the 'noise' when listing all currently known Questions.}
+\describe{in review}{(default: false). When using a question (see \ref{question use}), the question's associated remarks and annotations will be printed as well, if any.}
+\describe{undef color}{(default: red). This sets the color used to indicated the use of a non defined parameter. See \ref{parameters}.}
+\end{describelist}
+
+\section{Repositories}\label{repositories}
+Questions are stored in a set of repositories. Per default there is one such repository, named \tsobj[option]{default}. A repository can have an ``unlimited'' set of questions.
+
+\begin{codedescribe}{\defNewRepository,\selectRepository}
+\begin{codesyntax}%
+\tsmacro{\defNewRepository*}{new-repository}
+\tsmacro{\SelectRepository}{repository}
+\end{codesyntax}
+\tsobj{\defNewRepository} creates a new Repository, \tsobj[marg]{new-repository}. The starred version also switches to it, making it the ``current default''.
+\tsobj{\SelectRepository} activates \tsobj[marg]{repository} as the ``current default'' one.
+\end{codedescribe}
+
+\begin{tsremark}
+About repository's names: It can be almost anything, the name can contain strings normally not allowed in a macro name, like spaces, dots, two-dots and so on. an important exception the backslash is still an active character, meaning that if someone typesets \tsobj{\XYZ} as a repository, the value stored in \tsobj{\XYZ} will be used (if \tsobj{\XYZ} isn't defined this might raise a rather cryptic \LaTeXe\ error).
+\end{tsremark}
+
+\begin{tsremark}
+When creating a new repository, a warning is raised in case \tsobj[marg]{new-repository} already exists.
+When Selecting a repository, an error is raised if \tsobj[marg]{repository} doesn't exists.
+\end{tsremark}
+
+
+\section{Questions}
+There are two kind of questions (``code snippets''): Text ones (which can include \LaTeXe\ commands) and Graphical ones (which are assumed to be used inside a \tsobj[pkg]{tikz} environment). All questions can be parameterized (see \ref{parameters} below) with a set of predefined commands, viz-à-viz, \tsobj[pkg]{pgfkeys}.
+
+\subsection{Defining a Question}\label{question definition}
+\begin{codedescribe}{\defQuestion}
+\begin{codesyntax}%
+\tsobj{\defQuestion*}\tsargs[oarg]{repository}\tsargs[marg]{quest-name,code}\tsargs[oarg]{remarks}
+\end{codesyntax}
+\tsobj{\defQuestion} creates a new Question in \tsobj[oarg]{repository} (per default using the ``current active'' one). \tsobj[marg]{quest-name} will be the associated question key, for later reference. \tsobj[marg]{code} will be the corresponding Question's code. \tsobj[oarg]{remarks} is just a small note associated with the Question. It won't be normally used/typeset, except if the \tsobj[option]{in review} option is being used, or when using the command \tsobj{\QuestionsList}.
+
+The starred version \tsobj{\defQuestion*} will create a ``text code'' one, whilst the non starred one \tsobj{\defQuestion} will create a non starred question. The real main difference between the two is regarding their later use (see \ref{question use} bellow). Please note that there are \emph{two sets} of questions per repository. The ``starred'' (text ones) and the ``non-starred'' (graphical ones). They are fully distinct.
+\end{codedescribe}
+
+\begin{tsremark}
+About question's names: It can be almost anything, the name can contain strings normally not allowed in a macro name, like spaces, dots, two-dots and so on, including backslashes, meaning that if someone typesets \tsobj{\XYZ} as a question name, \tsobj{\XYZ} will be it's name: a backslash isn't an active character anymore and one can't use macros when defining a question's name.
+\end{tsremark}
+
+\begin{tsremark}
+An error is raised if \tsobj[marg]{repository} doesn't exist. In case the \tsobj[marg]{quest-name} already exists, it's code is silently replaced by the new one.
+\end{tsremark}
+
+
+\begin{codedescribe}{\defQuestionAlias}
+\begin{codesyntax}%
+\tsobj{\defQuestionAlias*}\tsargs[oarg]{repository}\tsargs[marg]{quest-alias,quest-name}
+\end{codesyntax}
+\tsobj{\defQuestionAlias} creates an alias, \tsobj[marg]{quest-alias} for a given question, \tsobj[marg]{quest-name}. As for \tsobj{\defQuestion}, the ``starred one'' regards text code ones and the ``non starred one'' regards the graphical ones.
+\end{codedescribe}
+
+\begin{tsremark}
+An error is raised if \tsobj[marg]{repository} or \tsobj[marg]{quest-name} doesn't exist.
+\end{tsremark}
+
+
+\subsection{Using a Question}\label{question use}
+\begin{codedescribe}{\ftikzQuestion,\tikzQuestion,\rawtikzQuestion}
+\begin{codesyntax}%
+\tsobj{\ftikzQuestion}\tsargs[parg]{scale}\tsargs[oarg]{repository}\tsargs[marg]{quest-name}\tsargs[oarg]{key=value list}\tsargs[xarg]{annotation}
+\tsobj{\tikzQuestion}\tsargs[parg]{scale}\tsargs[oarg]{repository}\tsargs[marg]{quest-name}\tsargs[oarg]{key=value list}\tsargs[xarg]{annotation}
+\tsobj{\rawtikzQuestion}\tsargs[oarg]{repository}\tsargs[marg]{quest-name}\tsargs[oarg]{key=value list}\tsargs[xarg]{annotation}
+\end{codesyntax}
+Those are the main commands to use a ``non starred'' (graphical) question.
+The \tsobj{\tikzQuestion} will display the Question's code inside a \tsobj[env]{tikzpicture} environment. \tsobj{\ftikzQuestion} will further nest the code inside a \tsobj[env]{center} environment (preparing it to be used inside a floating environment), whilst \tsobj{\rawtikzQuestion} will just display the code in a local group (in case one wants to use a different graphical environment, like SVG. The \tsobj[oarg]{annotation} will only be added if, and only if, the \tsobj[option]{in review} option is being used. The \tsobj[parg]{scale} factor, when present, is related to the current \tsobj{\textwidth}, so a factor of 0.25 will scale the width of the question to 1/4th of the text width. The \tsobj[oarg]{key=value list} is a set of \tsobj[pkg]{pgfkeys}, see \ref{parameters} below.
+\end{codedescribe}
+
+\begin{tsremark}
+An error is raised if \tsobj[marg]{repository} or \tsobj[marg]{quest-name} doesn't exist.
+\end{tsremark}
+
+\begin{codedescribe}{\textQuestion}
+\begin{codesyntax}%
+\tsobj{\textQuestion}\tsargs[oarg]{repository}\tsargs[marg]{quest-name}\tsargs[oarg]{key=value list}\tsargs[xarg]{annotation}
+\end{codesyntax}
+This is the command to use a ``starred'' (text) question.
+The \tsobj{\textQuestion} will just use the code in a local group. The \tsobj[oarg]{annotation} will only be added if, and only if, the \tsobj[option]{in review} option is being used. The \tsobj[oarg]{key=value list} is a set of \tsobj[pkg]{pgfkeys}, see \ref{parameters} below.
+\end{codedescribe}
+
+\begin{tsremark}
+An error is raised if \tsobj[marg]{repository} or \tsobj[marg]{quest-name} doesn't exist.
+\end{tsremark}
+
+\begin{codedescribe}{\QuestionsList}
+\begin{codesyntax}%
+\tsmacro{\QuestionsList}[repositories list]{}
+\end{codesyntax}
+\tsobj[oarg]{repositories list} is a comma separated list of repositories. For each repository, all Questions will be typeset in a \tsobj[env]{describe} environment. If no \tsobj[oarg]{repositories list} is supplied, all repositories will be listed.
+\end{codedescribe}
+
+\begin{tsremark}
+An error is raised if a repository in \tsobj[marg]{repositories list} doesn't exist. To reduce the clutter (and number of questions listed) one should consider the use of the option \tsobj[option]{no alias}.
+\end{tsremark}
+
+
+\section{Parameters as pgfkeys and auxiliary macros.}\label{parameters}
+
+By default a set of \tsobj[pkg]{pgfkeys} and macros is defined as follow: \tsobj[marg]{ID}\tsobj[marg]{idx}. The predefined range of \tsobj[marg]{IDs} being \tsobj[key]{R,L,C,X,Y,Z,K,T,Q,EQ,V,I}. The predefined range of \tsobj[marg]{idx} spans from a, b, c up to z, aa, ab, ac up to az and, finally, ba, bb, bc up to bz.
+\begin{tsremark}
+That means, one gets to use \tsobj[pkg]{pgfkeys} as, for example, Ra=200, Lca=500, Kbe=230 and so on. For each of the key's \tsobj[marg]{ID} there is (per default) a set of 3x26 keys. If one adds some 3 other \tsobj[marg]{idx} then one gets 6x26 keys per \tsobj[marg]{ID}.
+\end{tsremark}
+\begin{tsremark}
+The \tsobj[marg]{ID} can be extended with the \tsobj[option]{xtrakeys} option. For example with \tsobj[option,sep={,}]{xtrakeys=\{NN,B\}}, each extra key will add 3x26 keys (per default).
+\end{tsremark}
+\begin{tsremark}
+The \tsobj[marg]{idx} can be extended with the \tsobj[option]{xtraidx} option. For instance with \tsobj[option,sep={,}]{xtraidx=\{f,g\}} one gets fa, fb, fc up to fz, ga, gb, gc up to gz as well, a x26 set per extra idx.
+\end{tsremark}
+
+Unless the \tsobj[option]{no defs} option is defined, a corresponding macro (with the same name) will also be defined. For example, there is a macro \tsobj{\Ra} associated with the key \tsobj[key]{Ra}.
+All those macros/keys are initialized as follow: ``math mode'' (\tsobj{\ensuremath}), $ID_{idx}$, so, for example, the key \tsobj[key]{Rab}, which can be accessed with the macro \tsobj{\Rab}, will be predefined as $R_{ab}$, \tsobj[key]{Lca} (\tsobj{\Lca}) will be predefined as $L_{ca}$, and so on.
+
+The idea is that, when using the commands in \ref{question use}, if one doesn't specify a \tsobj[oarg]{key=value list}, the default values will be ``en force'', and all one has to do (to change those values) is to set said list, which doesn't have to be complete, non assigned keys will keep their default value.
+
+Besides those default keys, one can set and use any key at will (in \tsobj[oarg]{key=value list}) non-existing keys will be created ``on the fly'' with the given name as the default value.
+
+\subsection{Assigning a new value to pre-defined keys}
+In fact, with each and every key there are 3 ways to assign a value to it \tsobj[oarg]{key}\,=\tsobj[value]{value}, \tsobj[oarg]{key*}\,=\tsobj[value]{value} and \tsobj[oarg]{key raw}\,=\tsobj[value]{value}. The difference being that \tsobj[oarg]{key raw} will assign whatever code/value to the key (and associated macro), \tsobj[oarg]{key*} will assign the code/value inside a math environment.
+\begin{tsremark}[\color{red}warning:]
+\tsobj[oarg]{key}\,=\tsobj[value]{value} (without any specifier) will be the same as \tsobj[oarg]{key*} (default). But, if the option \tsobj[option]{no defs} is used, it will be equivalent to \tsobj[oarg]{key raw}.
+\end{tsremark}
+
+\subsection{Using a parameter key}
+When defining the \tsobj[marg]{code} of a question (see \ref{question definition}) one has two options to recover a key's value:
+\begin{itemize}
+ \item A macro named after the key itself (in case of the default keys, see above) and, or
+ \item the \tsobj{\QuestVal} command which allows to recover the value of both the default keys, as well as the ones defined on the fly.
+\end{itemize}
+\begin{tsremark}[\color{red}Warning:]
+If the option \tsobj[option]{no defs} is defined, the only option to recover a key's value is \tsobj{\QuestVal}. One better choose which style fits better, and keep it.
+\end{tsremark}
+
+
+\begin{codedescribe}{\QuestVal}
+\begin{codesyntax}%
+\tsmacro{\QuestVal}{IDidx}
+\tsmacro{\QuestVal}{key}
+\end{codesyntax}
+This will always recover the value of a key, regardless if the key is one of the pre-defined ones (in the form \tsobj[marg]{IDidx} or a ``on the fly'' one.
+If the key didn't got (re)defined with the \tsobj[oarg]{key=value list}, this will return the key/paramenter default value. In the case of a ``on the fly'' key, it will be the key's name in red (or the color set up with the \tsobj[option]{undef color} option, see \ref{package options}).
+
+This should be safe in most situations where \tsobj{\pgfkeys} command can be used. Though, the safest, and most robust, way to use a parameter/key is using it's related macro.
+\end{codedescribe}
+
+\section{Example of Use}
+
+\subsection{Package Options}
+\begin{codestore}[pack.options A]
+\usepackage{tikzquests}
+\end{codestore}
+
+\tscode*[codeprefix={Package Options},emph={pgfkeysearchvalueof}]{pack.options A}
+This is the default case, in which both \tsobj{\QuestVal} and (for default keys) associated macro name can be used to retrieve a key/parameter value.
+
+\begin{codestore}[pack.options B]
+\usepackage[xtrakeys={EX,N},xtraidx={f,h},undef color={blue},no defs]{tikzquests}
+\end{codestore}
+
+\tscode*[codeprefix={Package Options},emph={pgfkeysearchvalueof}]{pack.options B}
+
+In this case, one will get the following set of keys
+
+\begin{itemize}[nosep]
+\item Ra, Rb ... Rz, Rab, Rab ... Raz .... \emph{Rfa, Rfb ... Rfz, Rha, Rhb ... Rhz}
+\item .... all other default sets of keys, plus
+\item EXa, EXb ... EXz, EXab, EXab ... EXaz .... \emph{EXfa, EXfb ... EXfz, EXha, EXhb ... EXhz}
+\item Na, Nb ... Nz, Nab, Nab ... Naz .... \emph{Nfa, Nfb ... Nfz, Nha, Nhb ... Nhz}
+\end{itemize}
+
+Besides that, the undefined color will be blue and no additional macro will be defined, in which case on has to use \tsobj{\QuestVal} to recover the value of a key/parameter.
+
+\begin{codestore}[pack.options C]
+\usepackage[no alias, in review]{tikzquests}
+\end{codestore}
+
+\tscode*[codeprefix={Package Options},emph={pgfkeysearchvalueof}]{pack.options C}
+In this case, no alias will be defined (the command \tsobj{\defQuestionAlias} will be ignored), and when using \tsobj{\tikzQuestion} (and similar) the question's remarks (defined by \tsobj{\defQuestion}) and annotations (from \tsobj{\tikzQuestion}) will be printed. The \tsobj[option]{no alias} is specially useful when using the command \tsobj{\QuestionsList}.
+
+\subsection{A More Complete Example}
+In the code below, an extra repository will be set (besides the default one) and two questions (a starred, text, and non starred, graphics) will be defined for each repository.
+
+\begin{codestore}[DefQuestion]
+% A repository name can be just about anything.
+% the star makes sure 'Repo 2' is now the active/default one.
+\defNewRepository*{Repo 2}
+
+% quest names are even more flexible than a repository one
+% the star implies this is a text one.
+\defQuestion*{Quest A:1}{
+ In the following circuit, assuming $\beta \approx \QuestVal{Beta}$ and that $V_{be} \approx 0.65V$, find the value of $R_c$ such that the small signal gain is \QuestVal{Gain}.
+}[That would be a question enunciate.]
+
+%% Note the use of the macros \Ra, \Rb, \Rc, \Rd, \Vi, \Vbc and \Vo
+\defQuestion[Repo 2]{Elect. 1a}{
+ \draw
+ (0,0) coordinate(A) to[V,invert,l=\Vi] ++(0,3) coordinate(V)
+ to[R=\Ra] ++(2,0)
+ to[C] ++(2,0) coordinate(B)
+ -- ++(1,0) node[npn,anchor=B] (T1){}
+ (A) -- (A -| B) coordinate(Ba) to[R=\Rb] (B) to[R=\Rg] ++(0,3) coordinate(C)
+ (T1.E) to[R,l=\Rc] (T1.E |- A) -- (A)
+ (T1.C) to[R,l_=\Rd] (T1.C |- C) -- (C -| A) -- ++(-2,0) coordinate(X) to[V,l=\Vbc] (X |- A) -- (A)
+ (T1.C) -- ++(1.5,0) node[ocirc]{} coordinate(k) to[open,v=\Vo] (k |- A) node[ocirc]{} -- (A)
+ ;
+}[this is a CircuiTikZ example]
+
+%switching repositories
+\SelectRepository{default}
+
+% Note that, since it is a different repository, there is no name crashing.
+\defQuestion*{Quest A:1}{
+ In the following circuit, assuming $\beta \approx \QuestVal{Beta}$ and that $V_{be} \approx 0.65V$, find the value of \Rg \ such that the DC level of \Vo \ is equal to \QuestVal{DC level}.
+}[Just for the sake of it.]
+
+%% Note the use of the macros \Ra, \Rb, \Rc, \Rd, \Vi, \Vbc and \Vo
+\defQuestion{Elect. 1b}{
+ \draw
+ (0,0) coordinate(A) to[V,invert,l=\Vi] ++(0,3) coordinate(V)
+ to[R=\Ra] ++(2,0)
+ to[C] ++(2,0) coordinate(B)
+ -- ++(1,0) node[pnp,anchor=B] (T1){}
+ (A) -- (A -| B) coordinate(Ba) to[R=\Rb] (B) to[R=\Rg] ++(0,3) coordinate(C)
+ (T1.C) to[R,l=\Rc] (T1.C |- A) -- (A)
+ (T1.E) to[R,l_=\Rd] (T1.E |- C) -- (C -| A) -- ++(-2,0) coordinate(X) to[V,l=\Vbc] (X |- A) -- (A)
+ (T1.C) -- ++(1.5,0) node[ocirc]{} coordinate(k) to[open,v=\Vo] (k |- A) node[ocirc]{} -- (A)
+ ;
+}[this is a CircuiTikZ example]
+\end{codestore}
+
+\tscode*[codeprefix={Questions Definitions},resultprefix={Result: \emph{no output}},emph={Ra,Rb,Rc,Rd,Rg,Vi,Vbc,Vo,QuestVal,Beta,Gain,raw,DC,level},emph2={defQuestion,SelectRepository,defNewRepository},basicstyle={\scriptsize\ttfamily}]{DefQuestion}
+
+%%% Oh well, stcontents does have some limitations... That's why the code is replicated below.
+
+\defNewRepository*{Repo 2}
+% quest names are even more flexible than a repository one
+% the star implies this is a text one.
+\defQuestion*{Quest A:1}{
+ In the following circuit, assuming $\beta \approx \QuestVal{Beta}$ and that $V_{be} \approx 0.65V$, find the value of $R_c$ such that the small signal gain is \QuestVal{Gain}.
+}[That would be a question enunciate.]
+
+%% Note the use of the macros \Ra, \Rb, \Rc, \Rd, \Vi, \Vbc and \Vo
+\defQuestion[Repo 2]{Elect. 1a}{
+ \draw
+ (0,0) coordinate(A) to[V,invert,l=\Vi] ++(0,3) coordinate(V)
+ to[R=\Ra] ++(2,0)
+ to[C] ++(2,0) coordinate(B)
+ -- ++(1,0) node[npn,anchor=B] (T1){}
+ (A) -- (A -| B) coordinate(Ba) to[R=\Rb] (B) to[R=\Rg] ++(0,3) coordinate(C)
+ (T1.E) to[R,l=\Rc] (T1.E |- A) -- (A)
+ (T1.C) to[R,l_=\Rd] (T1.C |- C) -- (C -| A) -- ++(-2,0) coordinate(X) to[V,l=\Vbc] (X |- A) -- (A)
+ (T1.C) -- ++(1.5,0) node[ocirc]{} coordinate(k) to[open,v=\Vo] (k |- A) node[ocirc]{} -- (A)
+ ;
+}[this is a CircuiTikZ example]
+
+%switching repositories
+\SelectRepository{default}
+
+% Note that, since it is a different repository, there is no name crashing.
+\defQuestion*{Quest A:1}{
+ In the following circuit, assuming $\beta \approx \QuestVal{Beta}$ and that $V_{be} \approx 0.65V$, find the value of \Rg \ such that the DC level of \Vo \ is equal to \QuestVal{DC level}.
+}[Just for the sake of it.]
+
+%% Note the use of the macros \Ra, \Rb, \Rc, \Rd, \Vi, \Vbc and \Vo
+\defQuestion{Elect. 1b}{
+ \draw
+ (0,0) coordinate(A) to[V,invert,l=\Vi] ++(0,3) coordinate(V)
+ to[R=\Ra] ++(2,0)
+ to[C] ++(2,0) coordinate(B)
+ -- ++(1,0) node[pnp,anchor=B] (T1){}
+ (A) -- (A -| B) coordinate(Ba) to[R=\Rb] (B) to[R=\Rg] ++(0,3) coordinate(C)
+ (T1.C) to[R,l=\Rc] (T1.C |- A) -- (A)
+ (T1.E) to[R,l_=\Rd] (T1.E |- C) -- (C -| A) -- ++(-2,0) coordinate(X) to[V,l=\Vbc] (X |- A) -- (A)
+ (T1.C) -- ++(1.5,0) node[ocirc]{} coordinate(k) to[open,v=\Vo] (k |- A) node[ocirc]{} -- (A)
+ ;
+}[this is a CircuiTikZ example]
+
+
+Once Questions are defined one can use them, for instance, using just the default parameter's values.
+
+\begin{codestore}[QuestionDefault]
+Choose one of the following two questions:
+
+\begin{enumerate}
+ \item \textQuestion[Repo 2]{Quest A:1}<just a last minute note about this>\par
+ \ftikzQuestion(0.4)[Repo 2]{Elect. 1a}
+
+ \item \textQuestion[default]{Quest A:1}<just for the sake of it...>\par
+ \ftikzQuestion(0.4)[default]{Elect. 1b}
+\end{enumerate}
+\end{codestore}
+
+\tscode*[codeprefix={Questions Defaults},resultprefix={Result: \emph{no output}},emph={Ra,Rb,Rc,Rd,Rg,Vi,Vbc,Vo,QuestVal,Beta,Gain,raw,DC,level},emph2={textQuestion,ftikzQuestion},basicstyle={\scriptsize\ttfamily}]{QuestionDefault}
+
+
+\hrule\relax
+
+Choose one of the following two questions:
+
+\begin{enumerate}
+ \item \textQuestion[Repo 2]{Quest A:1}<just a last minute note about this>\par
+ \ftikzQuestion(0.4)[Repo 2]{Elect. 1a}
+
+ \item \textQuestion[default]{Quest A:1}<just for the sake of it...>\par
+ \ftikzQuestion(0.4)[default]{Elect. 1b}
+\end{enumerate}
+
+Finally, one can use those same questions, setting it's parameters:
+
+\begin{codestore}[QuestionUse]
+Choose one of the following two questions:
+
+\begin{enumerate}
+ \item \textQuestion[Repo 2]{Quest A:1}[Beta=200,Gain=4,Ra=50\Omega]<just a last minute note about this>\par
+ \ftikzQuestion(0.4)[Repo 2]{Elect. 1a}[Ra=50\Omega,Rb*=100\Omega,Rg raw=100,Rc=100,Rd=R_c,Vbc=18V,Vi=v_i(t),Vo=v_o(t)]
+
+ \item \textQuestion[default]{Quest A:1}[Beta=200,DC level=8V,Rg=R_{b1},Vo=v_o(t)]<just for the sake of it...>\par
+ \ftikzQuestion(0.4)[default]{Elect. 1b}[Ra=50\Omega,Rb*=100\Omega,Rg=R_{b1},Rc=100,Rd=200\Omega,Vbc=18V,Vi=v_i(t),Vo=v_o(t)]
+\end{enumerate}
+\end{codestore}
+
+\tscode*[codeprefix={Questions Using Parameters},resultprefix={Result: \emph{no output}},emph={Ra,Rb,Rc,Rd,Rg,Vi,Vbc,Vo,QuestVal,Beta,Gain,raw,DC,level},emph2={textQuestion,ftikzQuestion},basicstyle={\scriptsize\ttfamily}]{QuestionUse}
+
+\hrule\relax
+
+Choose one of the following two questions:
+
+\begin{enumerate}
+ \item \textQuestion[Repo 2]{Quest A:1}[Beta=200,Gain=4,Ra=50\Omega]<just a last minute note about this>\par
+ \ftikzQuestion(0.4)[Repo 2]{Elect. 1a}[Ra=50\Omega,Rb*=100\Omega,Rg raw=100,Rc=100,Rd=R_c,Vbc=18V,Vi=v_i(t),Vo=v_o(t)]
+
+ \item \textQuestion[default]{Quest A:1}[Beta=200,DC level=8V,Rg=R_{b1},Vo=v_o(t)]<just for the sake of it...>\par
+ \ftikzQuestion(0.4)[default]{Elect. 1b}[Ra=50\Omega,Rb*=100\Omega,Rg=R_{b1},Rc=100,Rd=200\Omega,Vbc=18V,Vi=v_i(t),Vo=v_o(t)]
+\end{enumerate}
+
+\subsection{Creating a Questions List}
+To round it up, using the \tsobj{\QuestionsList} (see \ref{question use}):
+\begin{codestore}[Qlist]
+\QuestionsList
+\end{codestore}
+
+\tscode*{Qlist}
+
+One get's:
+
+%and then
+\QuestionsList
+
+
+\end{document} \ No newline at end of file
diff --git a/macros/latex/contrib/tikzquests/latex/tikzquests.sty b/macros/latex/contrib/tikzquests/latex/tikzquests.sty
new file mode 100644
index 0000000000..d54507f477
--- /dev/null
+++ b/macros/latex/contrib/tikzquests/latex/tikzquests.sty
@@ -0,0 +1,526 @@
+%%%==============================================================================
+%% Copyright 2023-present by Alceu Frigeri
+%%
+%% This work may be distributed and/or modified under the conditions of
+%%
+%% * The [LaTeX Project Public License](http://www.latex-project.org/lppl.txt),
+%% version 1.3c (or later), and/or
+%% * The [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.html),
+%% version 3 (or later)
+%%
+%% This work has the LPPL maintenance status *maintained*.
+%%
+%% The Current Maintainer of this work is Alceu Frigeri
+%%
+%% This is version {1.0} {2024/01/02}
+%%
+%% The list of files that compose this work can be found in the README.md file at
+%% https://ctan.org/pkg/tikzquests
+%%
+%%%==============================================================================
+%% WARNING: These are personal packs/tests
+%% They might and probably will change at will as needed
+%%
+%%%==============================================================================
+\NeedsTeXFormat{LaTeX2e}[2022/06/01]
+
+
+\ProvidesExplPackage
+ {tikzquests}
+ {2024/01/02}
+ {1.0}
+ {A Simple Framework for (tikz/text) Parametric Questions}
+
+\ExplSyntaxOn
+%%%%%%%
+%%%
+%%% Just an attempt of having my packages info in a regular way
+%%% Idea being: { <pck-name> / pkg info } for each and all.
+%%%
+%%%%%%%
+\keys_define:nn { tikzquests / pkg info}
+ {
+ name .code:n = {tikzquests} ,
+ prefix .code:n = {tikzquests} ,
+ date .code:n = {2024/01/02},
+ version .code:n = {1.0} ,
+ description .code:n = {A Simple Framework for (tikz/text) Parametric Questions}
+
+ }
+\cs_if_exist:NF \__codedesc_pkg_info:nn
+ {
+ \cs_new_protected:Npn \__codedesc_pkg_info:nn #1#2
+ { \keys_set:nn {#1 / pkg info}{#2} }
+ }
+\cs_if_exist:NF \PkgInfo
+ { \NewDocumentCommand \PkgInfo {mm} { \keys_set:nn {#1 / pkg info}{#2} } }
+\cs_if_exist:NF \PkgDescription
+ {
+ \NewDocumentCommand \PkgDescription {m}
+ {
+ \noindent Package~ \textbf{\PkgInfo{#1}{name}}~Version:~\PkgInfo{#1}{version}~ -~ \PkgInfo{#1}{date}\par \emph{\PkgInfo{#1}{description}}~\par
+ }
+ }
+%%%%%%%
+%%% End of cut-n-paste
+%%%%%%%
+
+
+\newif\iftikzquests@@oldkeys % DEPRECATED, will be removed in future releases without further notice.
+\tikzquests@@oldkeysfalse
+
+\newif\iftikzquests@@nodefs
+\tikzquests@@nodefsfalse
+
+\keys_define:nn {tikzquests }
+ {
+ no~ alias .usage:n = load ,
+ no~ alias .bool_set:N = \l__tikzquests_noalias_bool ,
+ no~ alias .value_forbidden:n = true ,
+
+ xtrakeys .usage:n = load ,
+ xtrakeys .tl_set:N = \l__tikzquests_xtrakeys_tl ,
+ xtrakeys .value_required:n = true ,
+
+ xtraidx .usage:n = load ,
+ xtraidx .tl_set:N = \l__tikzquests_xtraidx_tl ,
+ xtraidx .value_required:n = true ,
+
+ undef~ color .usage:n = load ,
+ undef~ color .tl_set:N = \tikzquests@@undefcolor , % yeah... mixing styles
+ undef~ color .value_required:n = true ,
+ undef~ color .initial:n = {red} ,
+
+ in~ review .usage:n = load ,
+ in~ review .bool_set:N = \l__tikzquests_inreview_bool ,
+
+ no~ defs .usage:n = load ,
+ no~ defs .legacy_if_gset:n = tikzquests@@nodefs ,
+ no~ defs .value_forbidden:n = true ,
+
+ old keys .usage:n = load , % DEPRECATED, will be removed in future releases without further notice.
+ old keys .legacy_if_gset:n = tikzquests@@oldkeys ,
+ old keys .value_forbidden:n = true ,
+ }
+\ProcessKeyOptions [ tikzquests ]
+
+
+%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%
+%%
+%%
+%%
+%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%
+
+\msg_new:nnnn {tikzquests} {repository already defined}
+ {
+ (ID:#1)~Repository~ '#2'~already~defined!
+ }
+ {
+ You~tried~to~create~an~already~defined~Repository:~'#2'.
+ ~Error~Code~ ID:<#1>.
+ }
+
+\msg_new:nnnn {tikzquests} {invalid repository}
+ {
+ (ID:#1)~Invalid~Repository:~ '#2'
+ }
+ {
+ You~tried~to~use~an~invalid~Repository:~'#2'.
+ ~Error~Code~ ID:<#1>.
+ }
+
+\msg_new:nnnn {tikzquests} {invalid question}
+ {
+ (ID:#1)~Invalid~Question:~ '#2'
+ }
+ {
+ You~tried~to~use~an~invalid~Question:~'#2'.
+ ~Error~Code~ ID:<#1>.
+ }
+
+
+\seq_new:N \l__tikzquests_repositories_seq
+\tl_new:N \l__tikzquests_active_repository_tl
+\seq_new:N \l__tikzquests_tmp_seq
+\tl_new:N \l__tikzquests_tmp_tl
+
+\cs_new_protected:Npn \__tikzquests_select_repository:n #1
+ {
+ \prop_if_exist:cTF {l__tikzquests_ #1 _tikzrepo_prop}
+ {
+ \tl_set:Nn \l__tikzquests_active_repository_tl {#1}
+ }
+ {
+ \msg_error:nnne {tikzquests}{invalid repository}{select~01}{#1}
+ }
+ }
+
+\cs_new_protected:Npn \__tikzquests_new_repository:nn #1#2
+ {
+ \prop_if_exist:cTF {l__tikzquests_ #2 _tikzrepo_prop}
+ {
+ \msg_warning:nnne {tikzquests}{repository already defined}{new~01}{#2}
+ }
+ {
+ \prop_new:c {l__tikzquests_ #2 _tikzrepo_prop}
+ \prop_new:c {l__tikzquests_ #2 _tikzrepo_remarks_prop}
+ \prop_new:c {l__tikzquests_ #2 _textrepo_prop}
+ \prop_new:c {l__tikzquests_ #2 _textrepo_remarks_prop}
+ \seq_put_right:Nn \l__tikzquests_repositories_seq {#2}
+ }
+ \bool_if:nT {#1}
+ {
+ \__tikzquests_select_repository:n {#2}
+ }
+ }
+
+\__tikzquests_new_repository:nn {\c_true_bool}{default}
+
+\NewDocumentCommand{\SelectRepository}{m}
+ {
+ \__tikzquests_select_repository:n {#1}
+ }
+
+\NewDocumentCommand{\defNewRepository}{sm}
+ {
+ \__tikzquests_new_repository:nn {#1}{#2}
+ }
+
+
+\NewDocumentCommand{\defQuestion}{sO{\l__tikzquests_active_repository_tl}m+mO{}}
+ {
+ \prop_if_exist:cTF {l__tikzquests_ #2 _tikzrepo_prop}
+ {
+ \bool_if:nTF {#1}
+ {
+ \prop_put:cnn {l__tikzquests_ #2 _textrepo_prop}{#3}{#4}
+ \prop_put:cnn {l__tikzquests_ #2 _textrepo_remarks_prop}{#3}{#5}
+ }
+ {
+ \prop_put:cnn {l__tikzquests_ #2 _tikzrepo_prop}{#3}{#4}
+ \prop_put:cnn {l__tikzquests_ #2 _tikzrepo_remarks_prop}{#3}{#5}
+ }
+ }
+ {
+ \msg_error:nnne {tikzquests}{invalid repository}{def~quest~01}{#2}
+ }
+ }
+
+\NewDocumentCommand{\defQuestionAlias}{sO{\l__tikzquests_active_repository_tl}mm}
+ {
+ \prop_if_exist:cTF {l__tikzquests_ #2 _tikzrepo_prop}
+ {
+ \bool_if:NF \l__tikzquests_noalias_bool
+ {
+ \bool_if:nTF {#1}
+ {
+ \prop_get:cnNTF {l__tikzquests_ #2 _textrepo_prop}{#4} \l_tmpa_tl
+ {
+ \prop_put:cnn {l__tikzquests_ #2 _textrepo_prop}{#3}{\prop_item:cn {l__tikzquests_ #2 _textrepo_prop}{#4}}
+ \prop_put:cnn {l__tikzquests_ #2 _textrepo_remarks_prop}{#3}{\prop_item:cn {l__tikzquests_ #2 _textrepo_remarks_prop}{#4}}
+ }
+ {
+ \msg_error:nnnn {tikzquests}{invalid question}{alias~01}{#4}
+ }
+ }
+ {
+ \prop_get:cnNTF {l__tikzquests_ #2 _tikzrepo_prop}{#4} \l_tmpa_tl
+ {
+ \prop_put:cnn {l__tikzquests_ #2 _tikzrepo_prop}{#3}{\prop_item:cn {l__tikzquests_ #2 _tikzrepo_prop}{#4}}
+ \prop_put:cnn {l__tikzquests_ #2 _tikzrepo_remarks_prop}{#3}{\prop_item:cn {l__tikzquests_ #2 _tikzrepo_remarks_prop}{#4}}
+ }
+ {
+ \msg_error:nnnn {tikzquests}{invalid question}{alias~02}{#4}
+ }
+ }
+ }
+ }
+ {
+ \msg_error:nnne {tikzquests}{invalid repository}{alias~03}{#2}
+ }
+ }
+
+\cs_new_protected:Npn \__tikzquests_remarks:nnn #1#2#3
+ {
+ \prop_get:cnN {l__tikzquests_ #1 _remarks_prop} {#2} \l__tikzquests_tmp_tl
+ \tl_if_blank:eF {\l__tikzquests_tmp_tl}
+ {
+ {\par\footnotesize\textbf{Remarks:~}\color{\tikzquests@@undefcolor}\l__tikzquests_tmp_tl}
+ }
+ }
+
+\cs_new_protected:Npn \__tikzquests_inreview_remarks:nnn #1#2#3
+ {
+ \bool_if:nT {\l__tikzquests_inreview_bool}
+ {
+ \__tikzquests_remarks:nnn {#1}{#2}{#3}
+ \tl_if_blank:nF {#3}
+ {
+ {\par\footnotesize\textbf{Annotation:~}\color{\tikzquests@@undefcolor}#3}
+ }
+ }
+ }
+
+
+\NewDocumentCommand{\ftikzQuestion}{D(){}O{\l__tikzquests_active_repository_tl}mO{}}
+ {
+% \begin{figure}[!htb]
+ \begin{center}
+ \tikzQuestion(#1)[#2]{#3}[#4]
+ \end{center}
+% \end{figure}
+ }
+
+
+
+\NewDocumentCommand{\tikzQuestion}{D(){}O{\l__tikzquests_active_repository_tl}mO{}D<>{}}
+ {
+ \prop_if_exist:cTF {l__tikzquests_ #2 _tikzrepo_prop}
+ {
+ \prop_get:cnNTF {l__tikzquests_ #2 _tikzrepo_prop} {#3} \l__tikzquests_tmp_tl
+ {
+ \tl_if_blank:nTF {#1}
+ {
+ \begin{tikzpicture}
+ \__tikzquests_pgfkeys:n{#4}
+ \l__tikzquests_tmp_tl
+ \end{tikzpicture}
+ }
+ {
+ \resizebox{#1\textwidth}{!}{
+ \begin{tikzpicture}
+ \__tikzquests_pgfkeys:n{#4}
+ \l__tikzquests_tmp_tl
+ \end{tikzpicture}}
+ }
+ \__tikzquests_inreview_remarks:nnn {#2 _tikzrepo}{#3}{#5}
+ }
+ {
+ Invalid~Question:~#3
+ \msg_error:nnnn {tikzquests}{invalid question}{quest~01}{#3}
+ }
+ }
+ {
+ Invalid~Repository:~#2
+ \msg_error:nnne {tikzquests}{invalid repository}{quest~01}{#2}
+ }
+ }
+
+\cs_new_protected:Npn \__tikzquests_rawquestion:nnnnn #1#2#3#4#5
+ {
+ \prop_if_exist:cTF {l__tikzquests_ #1 _ #2 _prop}
+ {
+ \prop_get:cnNTF {l__tikzquests_ #1 _ #2 _prop} {#3} \l__tikzquests_tmp_tl
+ {
+ \begingroup
+ \__tikzquests_pgfkeys:n{#4}
+ \l__tikzquests_tmp_tl
+ \endgroup
+ \__tikzquests_inreview_remarks:nnn {#1 _ #2}{#3}{#5}
+ }
+ {
+ Invalid~Question:~#3
+ \msg_error:nnnn {tikzquests}{invalid question}{quest~02}{#3}
+ }
+ }
+ {
+ Invalid~Repository:~#1
+ \msg_error:nnne {tikzquests}{invalid repository}{quest~02}{#1}
+ }
+ }
+
+\NewDocumentCommand{\rawtikzQuestion}{O{\l__tikzquests_active_repository_tl}mO{}D<>{}}
+ {
+ \__tikzquests_rawquestion:nnnnn {#1}{tikzrepo}{#2}{#3}{#4}
+ }
+
+
+\NewDocumentCommand{\textQuestion}{O{\l__tikzquests_active_repository_tl}mO{}D<>{}}
+ {
+ \__tikzquests_rawquestion:nnnnn {#1}{textrepo}{#2}{#3}{#4}
+ }
+
+\cs_new_protected:Npn \__tikzquests_sorted_list:nnn #1#2#3#4
+ {
+ \prop_if_empty:cF {l__tikzquests_ #1 _ #2 _prop}
+ {
+ \seq_gclear_new:N \l__tikzquests_questions_seq
+ \prop_map_inline:cn {l__tikzquests_ #1 _ #2 _prop}
+ {
+ \seq_put_right:Nn \l__tikzquests_questions_seq {##1}
+ }
+ \seq_sort:Nn \l__tikzquests_questions_seq
+ {
+ \str_compare:eNeTF { ##1 } > { ##2 }
+ { \sort_return_swapped: }
+ { \sort_return_same: }
+ }
+ \begin{description}
+ \seq_map_inline:Nn \l__tikzquests_questions_seq
+ {
+ \item[#3{##1}]
+ #4[#1]{##1} \par
+ \bool_if:nF {\l__tikzquests_inreview_bool}
+ { \__tikzquests_remarks:nnn {#1 _ #2}{##1}{} }
+ \vspace{0.35ex}
+ \hrule\relax
+ }
+ \end{description}
+ }
+ }
+
+
+\NewDocumentCommand{\QuestionsList}{O{}}
+ {
+ \tl_if_blank:nTF {#1}
+ {
+ \seq_set_eq:NN \l__tikzquests_tmp_seq \l__tikzquests_repositories_seq
+ }
+ {
+ \seq_set_from_clist:Nn \l__tikzquests_tmp_seq {#1}
+ }
+ \seq_remove_duplicates:N \l__tikzquests_tmp_seq
+ \seq_sort:Nn \l__tikzquests_tmp_seq
+ {
+ \str_compare:eNeTF { ##1 } > { ##2 }
+ { \sort_return_swapped: }
+ { \sort_return_same: }
+ }
+ \seq_map_inline:Nn \l__tikzquests_tmp_seq
+ {
+ \prop_if_exist:cTF {l__tikzquests_ ##1 _tikzrepo_prop}
+ {
+ {\vspace{1ex}Repository~ Name:~ \large\textbf{##1}}\vspace{0.35ex}\hrule\relax\hrule\relax
+ \__tikzquests_sorted_list:nnn {##1}{tikzrepo}{\raisebox{3em}}{\tikzQuestion(0.35)}
+ \__tikzquests_sorted_list:nnn {##1}{textrepo}{}{\textQuestion}
+ }
+ {
+ \msg_error:nnne {tikzquests}{invalid repository}{Qlist~01}{##1}
+ }
+ }
+ }
+
+\tl_if_empty:NTF \l__tikzquests_xtrakeys_tl
+ {
+ \def\tikzquests@@xtratkey{}
+ }
+ {
+ \exp_args:NNe\def\tikzquests@@xtratkey{,\l__tikzquests_xtrakeys_tl}
+ }
+
+\tl_if_empty:NTF \l__tikzquests_xtraidx_tl
+ {
+ \def\tikzquests@@xtraidx{}
+ }
+ {
+ \exp_args:NNe\def\tikzquests@@xtraidx{,\l__tikzquests_xtraidx_tl}
+ }
+
+\cs_new:Npn \__tikzquests_pgfkeys:n #1
+ { \pgfkeys{\tikzquests@@ZPath, #1} }
+
+
+\NewDocumentCommand{\QuestVal}{m}
+ { \pgfkeys{\tikzquests@@ZPath, #1} }
+
+
+\ExplSyntaxOff
+%
+% no easy and clean way to convert this below to expl3 (for instance underscore, under expl3 code regimè, is a letter)
+%
+
+\def\tikzquests@@ZPath{/tikzquests}
+
+
+\iftikzquests@@oldkeys% DEPRECATED, will be removed in future releases without further notice.
+ \NewDocumentCommand{\tikzquests@@SetDef}{O{}m}{%
+ \pgfkeys{%
+ \tikzquests@@ZPath,%
+ keyset/.code={%
+ \pgfkeysalso{%
+ default/.append style = {#2##1={#2_{#1{##1}}}},%
+ #2/##1/.code={\csedef{#2##1}{\ensuremath{####1}}},%
+ #2/##1/.value required,%
+ #2##1/.code={%
+ \ifx####1\pgfkeysnovalue%
+ \csuse{#2##1}%
+ \else%
+ \csedef{#2##1}{\ensuremath{####1}}%
+ \fi%
+ },%
+ #2##1*/.code={\csedef{#2##1}{\ensuremath{####1}}},%
+ #2##1*/.value required,%
+ #2##1 raw/.code={\csedef{#2##1}{####1}},%
+ #2##1 raw/.value required,%
+ }%
+ },%
+ setaux/.code={\pgfkeysalso{keyset/.list/.expanded={##1a,##1b,##1c,##1d,##1e,##1f,##1g,##1h,##1i,##1j,##1k,##1l,##1m,##1n,##1o,##1p,##1q,##1r,##1s,##1t,##1u,##1v,##1w,##1x,##1y,##1z}}},%
+ setaux/.list/.expanded={,a,b\tikzquests@@xtraidx}%
+ }%
+ }%
+\else
+ \iftikzquests@@nodefs
+ \NewDocumentCommand{\tikzquests@@SetDef}{O{}m}{%
+ \pgfkeys{%
+ \tikzquests@@ZPath,%
+ keyset/.code={%
+ \pgfkeysalso{%
+ #2##1/.initial={\ensuremath{#2_{#1{##1}}}},%
+ #2##1*/.style={#2##1=\ensuremath{####1}},%
+ #2##1*/.value required,%
+ #2##1 raw/.style={#2##1={####1}},%
+ #2##1 raw/.value required,%
+ }%
+ },%
+ setaux/.code={\pgfkeysalso{keyset/.list/.expanded={##1a,##1b,##1c,##1d,##1e,##1f,##1g,##1h,##1i,##1j,##1k,##1l,##1m,##1n,##1o,##1p,##1q,##1r,##1s,##1t,##1u,##1v,##1w,##1x,##1y,##1z}}},%
+ setaux/.list/.expanded={,a,b\tikzquests@@xtraidx}%
+ }%
+ }%
+ \else
+ \NewDocumentCommand{\tikzquests@@SetDef}{O{}m}{%
+ \pgfkeys{%
+ \tikzquests@@ZPath,%
+ keyset/.code={%
+ \pgfkeysalso{%
+ default/.append style={#2##1={#2_{#1{##1}}}},%
+ #2##1/.code={%
+ \ifx####1\pgfkeysnovalue%
+ \csuse{#2##1}%
+ \else%
+ \csedef{#2##1}{\ensuremath{####1}}%
+ \fi%
+ },%
+ #2##1*/.code={\csedef{#2##1}{\ensuremath{####1}}},%
+ #2##1*/.value required,%
+ #2##1 raw/.code={\csedef{#2##1}{####1}},%
+ #2##1 raw/.value required,%
+ }%
+ },%
+ setaux/.code={\pgfkeysalso{keyset/.list/.expanded={##1a,##1b,##1c,##1d,##1e,##1f,##1g,##1h,##1i,##1j,##1k,##1l,##1m,##1n,##1o,##1p,##1q,##1r,##1s,##1t,##1u,##1v,##1w,##1x,##1y,##1z}}},%
+ setaux/.list/.expanded={,a,b\tikzquests@@xtraidx}%
+ }%
+ }%
+ \fi
+\fi
+
+
+\AtBeginDocument{\tikzquests@@KeysDef}
+
+\NewDocumentCommand{\tikzquests@@KeysDef}{}{%
+ \pgfkeys{\tikzquests@@ZPath/.is family, \tikzquests@@ZPath, default/.style={},%
+ defset/.code={\tikzquests@@SetDef{##1}},%
+ defset/.list/.expanded={R,L,C,X,Y,Z,K,T,Q,EQ\tikzquests@@xtratkey},%
+ defset/.code={\tikzquests@@SetDef[f_]{##1}},%
+ defset/.list/.expanded={V,I},%
+ default,%
+ .unknown/.code={%
+ \ifx##1\pgfkeysnovalue%
+ \textbf{\emph{\color{\tikzquests@@undefcolor}\pgfkeyscurrentname}}%
+ \else%
+ \pgfkeysalso{\pgfkeyscurrentname/.initial={##1}}
+ \fi%
+ }
+ }%
+}%