From cd3305679284a8b28ae28c2c6a8b5e8bcfc215a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9o=20Baras?= Date: Sat, 3 Apr 2021 10:03:36 +0200 Subject: [PATCH] =?UTF-8?q?Pr=C3=A9pare=20les=20macros=20latex=20pour=20le?= =?UTF-8?q?s=20exemples?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- latex/macros_formations.sty | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/latex/macros_formations.sty b/latex/macros_formations.sty index 60bb638..9a3be31 100644 --- a/latex/macros_formations.sty +++ b/latex/macros_formations.sty @@ -174,6 +174,7 @@ \newcounter{cptScomp\currentSsae} % le compteur de compétences rattachées à la ressource \newcounter{cptSressource\currentSsae} % Le compteur de ressources dans la SAé + \newcounter{cptSexemple\currentSsae} % Le compteur d'exemples d'une SAE } % **************************** @@ -241,6 +242,18 @@ \expandafter\xdef\csname Smotscles\currentSsae\endcsname{#1} % mots-clés } +% ********************************************* +% Exemples de SAE +% ********************************************* +\def\nouvelexemple#1#2{ + \addtocounter{cptSexemple\currentSsae}{1} % Ajoute un exemple (tous semestres confondu) + \def\currentESsae{\currentSsae\Alph{cptSexemple\currentSsae}} % + + \expandafter\xdef\csname EScode\currentESsae\endcsname{#1} % code + \expandafter\xdef\csname ESname\currentESsae\endcsname{#2} % nom/intitule + % \expandafter\xdef\csname ESsem\currentESsae\endcsname{\csname semestrenumero\currentsemestre\endcsname} % nom du semestre +} + % ************************************* \definecolor{colormotscle}{RGB}{120, 185, 235}