2021-04-04 08:12:47 +02:00
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
%% Affichae des SAE (et leur exemple) pour un semestre %%
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
% \affichageSAE{code_semestre} avec code_semestre=A pour le S1, B pour le S2
|
|
|
|
\newcounter{nosae}
|
|
|
|
\newcounter{noexemple}
|
2021-04-07 11:51:19 +02:00
|
|
|
\newcounter{noac}
|
2021-04-04 08:12:47 +02:00
|
|
|
\newcommand{\affichageSAE}[1]{
|
|
|
|
\xdef\sem{#1}
|
|
|
|
|
|
|
|
\forLoop{1}{\value{cptS\sem}}{nosae}{ % Pour chaque SAE
|
|
|
|
%A\Alph{noressource}
|
|
|
|
\xdef\currentSAE{\sem\Alph{nosae}}
|
2021-04-05 12:05:04 +02:00
|
|
|
|
|
|
|
\xdef\saecode{\csname Scode\currentSAE\endcsname}
|
|
|
|
\xdef\saenom{\csname Sname\currentSAE\endcsname}
|
|
|
|
%\addtocontents{toc}{hihi} %\saecode : \saenom}
|
2021-04-05 12:20:59 +02:00
|
|
|
% \addcontentsline{toc}{subsubsection}{{\saenom}}
|
2021-04-05 12:05:04 +02:00
|
|
|
|
2021-04-04 08:12:47 +02:00
|
|
|
\tableauSAE{\currentSAE}
|
2021-04-05 12:05:04 +02:00
|
|
|
|
2021-04-04 08:12:47 +02:00
|
|
|
\forLoop{1}{\value{cptSexemple\currentSAE}}{noexemple}{
|
|
|
|
\tableauExempleSAE{\currentSAE}{\Alph{noexemple}}
|
|
|
|
\newpage
|
2021-04-07 11:51:19 +02:00
|
|
|
}
|
|
|
|
|
2021-04-04 08:12:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-07 11:51:19 +02:00
|
|
|
% Tableau listant toutes les SAé et leur exemple en guise d'introduction au semestre
|
2021-04-04 08:12:47 +02:00
|
|
|
\newcommand{\listeTitreSAE}[1]{
|
|
|
|
\setlength{\tabcolsep}{0.125cm} % Marge des colonnes
|
|
|
|
\setlength{\extrarowheight}{2pt} % Marge des lignes
|
|
|
|
|
|
|
|
\begin{tabular}[t]{|P|T|}
|
|
|
|
\hline {\bfseries Codes des SAÉ} & {\bfseries Titre} \\ \hline
|
|
|
|
|
|
|
|
\forLoop{1}{\value{cptS\sem}}{nosae}{ % Pour chaque SAE
|
|
|
|
%A\Alph{noressource}
|
|
|
|
\xdef\currentSAE{\sem\Alph{nosae}} % code de la SAE
|
|
|
|
\xdef\saecode{\csname Scode\currentSAE\endcsname}
|
2021-04-07 11:51:19 +02:00
|
|
|
\xdef\saelink{\csname Slinkcode\currentSAE\endcsname}
|
2021-04-04 08:12:47 +02:00
|
|
|
\xdef\saetitre{\csname Sname\currentSAE\endcsname}
|
2021-04-07 11:51:19 +02:00
|
|
|
{\bfseries \hyperlink{sae:\saecode}{\saecode}}
|
2021-04-04 08:12:47 +02:00
|
|
|
&
|
2021-04-07 11:51:19 +02:00
|
|
|
{\bfseries {\saetitre}}
|
2021-04-04 08:12:47 +02:00
|
|
|
\tabularnewline
|
2021-04-07 11:51:19 +02:00
|
|
|
&
|
|
|
|
\begin{tabular}{p{13cm}}
|
|
|
|
\forLoop{1}{\value{cptSexemple\currentSAE}}{noexemple}{
|
|
|
|
\xdef\exemplecode{\currentSAE\Alph{noexemple}}
|
|
|
|
\xdef\titreexemple{\csname ESname\exemplecode\endcsname}
|
|
|
|
\itshape \hyperlink{exemple:\exemplecode}{Exemple \arabic{noexemple}}~: \titreexemple
|
2021-04-04 08:12:47 +02:00
|
|
|
\tabularnewline
|
|
|
|
}
|
2021-04-07 11:51:19 +02:00
|
|
|
\end{tabular}
|
|
|
|
\tabularnewline
|
|
|
|
\hline
|
2021-04-04 08:12:47 +02:00
|
|
|
}
|
|
|
|
\end{tabular}
|
|
|
|
}
|
|
|
|
|
|
|
|
\newcommand{\listeTitreRessource}[1]{
|
|
|
|
\setlength{\tabcolsep}{0.125cm} % Marge des colonnes
|
|
|
|
\setlength{\extrarowheight}{2pt} % Marge des lignes
|
|
|
|
|
|
|
|
\begin{tabular}[t]{|P|T|}
|
|
|
|
\hline {\bfseries Codes des ressources} & {\bfseries Nom} \\
|
|
|
|
\hline
|
|
|
|
|
|
|
|
\forLoop{1}{\value{cptR\sem}}{noressource}{ % Pour chaque SAE
|
|
|
|
%A\Alph{noressource}
|
|
|
|
\def\CODE{\sem\Alph{noressource}} % code de la SAE
|
|
|
|
\xdef\rescode{\csname Rcode\CODE\endcsname}
|
|
|
|
\xdef\resnom{\csname Rname\CODE\endcsname}
|
2021-04-07 11:51:19 +02:00
|
|
|
{\bfseries \hyperlink{res:\rescode}{\rescode}}
|
2021-04-04 08:12:47 +02:00
|
|
|
&
|
2021-04-07 11:51:19 +02:00
|
|
|
{\resnom}
|
2021-04-04 08:12:47 +02:00
|
|
|
\tabularnewline
|
|
|
|
\hline
|
|
|
|
}
|
|
|
|
\end{tabular}
|
|
|
|
}
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
%% Affichage des ressources %%
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
|
|
\newcounter{noressource}
|
|
|
|
\newcommand{\affichageRessource}[1]{
|
|
|
|
\xdef\sem{#1}
|
|
|
|
\forLoop{1}{\value{cptR\sem}}{noressource}{
|
|
|
|
%A\Alph{noressource}
|
|
|
|
\tableauRessource{\sem\Alph{noressource}}
|
|
|
|
\newpage
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|