From 5cde7ff8b36331ca240d631cbdc76374130dd9c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9o=20Baras?= Date: Sat, 3 Apr 2021 18:44:30 +0200 Subject: [PATCH] Mise en place des hyperlink/hypertarget en latex sur les SAE et les ressources --- latex/macros_formations.sty | 3 + latex/modeles/tableau.tex | 24 +++++--- latex/modeles/tableau_exemple.tex | 14 ++--- latex/modeles/tableau_ressource.tex | 5 +- latex/modeles/tableau_sae.tex | 5 +- latex/pn_formation.tex | 70 +++++++++++++++++------- latex/referentiel_BUT1.tex | 85 +++++++++++++++++------------ 7 files changed, 134 insertions(+), 72 deletions(-) diff --git a/latex/macros_formations.sty b/latex/macros_formations.sty index c15480d..0e53176 100644 --- a/latex/macros_formations.sty +++ b/latex/macros_formations.sty @@ -175,6 +175,8 @@ \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 + + } % **************************** @@ -249,6 +251,7 @@ \addtocounter{cptSexemple\currentSsae}{1} % Ajoute un exemple (tous semestres confondu) \def\currentESsae{\currentSsae\Alph{cptSexemple\currentSsae}} % + \expandafter\xdef\csname ESsae\currentESsae\endcsname{\csname Sname\currentSsae\endcsname} % nom de la SAE \expandafter\xdef\csname ESname\currentESsae\endcsname{#1} % nom/intitule % \expandafter\xdef\csname ESsem\currentESsae\endcsname{\csname semestrenumero\currentsemestre\endcsname} % nom du semestre } diff --git a/latex/modeles/tableau.tex b/latex/modeles/tableau.tex index 2b7833f..35a9daa 100644 --- a/latex/modeles/tableau.tex +++ b/latex/modeles/tableau.tex @@ -44,9 +44,12 @@ }{ \begin{tabular}[t]{@{}T@{}}% \forLoop{1}{\value{cptRsae\CODE}}{noligne}{ - \xdef\contenu{{\csname Rsaecode\CODE\Alph{noligne}\endcsname} | - {\csname Rsaename\CODE\Alph{noligne}\endcsname}} - \contenu + \xdef\saecode{\csname Rsaecode\CODE\Alph{noligne}\endcsname} + \xdef\contenu{ + {\saecode} | + {\csname Rsaename\CODE\Alph{noligne}\endcsname} + } + \hyperlink{sae:\saecode}{\contenu} \tabularnewline % } \end{tabular}% @@ -63,8 +66,10 @@ Aucun \begin{tabular}[t]{@{}T@{}}% \forLoop{1}{\value{cptRprerequis\CODE}}{noligne}{ - \xdef\contenu{{\csname Rprerequiscode\CODE\Alph{noligne}\endcsname} | - {\csname Rprerequisname\CODE\Alph{noligne}\endcsname}} + \xdef\contenu{ % + {\csname Rprerequiscode\CODE\Alph{noligne}\endcsname} | + {\csname Rprerequisname\CODE\Alph{noligne}\endcsname} + } \contenu \tabularnewline % } @@ -110,9 +115,12 @@ Aucun }{ \begin{tabular}[t]{@{}T@{}}% \forLoop{1}{\value{cptSressource\CODE}}{noligne}{ - \xdef\contenu{{\csname Sressourcecode\CODE\Alph{noligne}\endcsname} | - {\csname Sressourcename\CODE\Alph{noligne}\endcsname}} - \contenu + \xdef\rescode{\csname Sressourcecode\CODE\Alph{noligne}\endcsname} + \xdef\contenu{ + {\rescode} | + {\csname Sressourcename\CODE\Alph{noligne}\endcsname} + } + \hyperlink{res:\rescode}{\contenu} \tabularnewline % } \end{tabular}% diff --git a/latex/modeles/tableau_exemple.tex b/latex/modeles/tableau_exemple.tex index 90095ef..a1d0860 100644 --- a/latex/modeles/tableau_exemple.tex +++ b/latex/modeles/tableau_exemple.tex @@ -12,7 +12,10 @@ % 1er tableau : Nom/Code/Semestre % 3ème tableau : descriptif -\begin{tabular}[t]{|P|T|} +\begin{longtable}[t]{|P|T|} +\hline + {\bfseries Exemple de la SAÉ} & + {\csname ESsae\EXEMPLE\endcsname} \\ \hline {\bfseries Titre} & {\csname ESname\EXEMPLE\endcsname} \\ @@ -42,14 +45,11 @@ {\bfseries Modalités} \\ {\bfseries d'évaluation} \\ {\bfseries assurant l'acquisition} \\ - {\bfseries du niveau de compétence} \\ - {\bfseries visée} \\ + {\bfseries du niveau de} \\ + {\bfseries compétence visée} \\ \end{tabular} } & \tableauChampLong{\csname ESmodalite\EXEMPLE\endcsname} \\ \hline -\hline - -\end{tabular} - +\end{longtable} } \ No newline at end of file diff --git a/latex/modeles/tableau_ressource.tex b/latex/modeles/tableau_ressource.tex index 2f7afbc..f6da34a 100644 --- a/latex/modeles/tableau_ressource.tex +++ b/latex/modeles/tableau_ressource.tex @@ -13,7 +13,10 @@ \begin{tabular}[t]{|P|Q|P|Q|} \hline % 1ère ligne {\bfseries Ressource} - & \multicolumn{3}{l|}{\bfseries \csname Rname\CODE\endcsname} \\ + & \multicolumn{3}{l|}{ + \xdef\rescode{\csname Rcode\CODE\endcsname} + \hypertarget{res:\rescode}{\bfseries \csname Rname\CODE\endcsname} + } \\ \hline % 2ème ligne {\bfseries Code} & \csname Rcode\CODE\endcsname diff --git a/latex/modeles/tableau_sae.tex b/latex/modeles/tableau_sae.tex index 7b4d20d..8799aa0 100644 --- a/latex/modeles/tableau_sae.tex +++ b/latex/modeles/tableau_sae.tex @@ -11,7 +11,10 @@ \begin{tabular}[t]{|P|Q|P|Q|} \hline % 1ère ligne {\bfseries Titre de la SAÉ} - & \multicolumn{3}{l|}{\bfseries \csname Sname\CODE\endcsname} \\ + & \multicolumn{3}{l|}{ + \xdef\saecode{\csname Scode\CODE\endcsname} + \hypertarget{sae:\saecode}{\bfseries \csname Sname\CODE\endcsname} + } \\ \hline % 2ème ligne {\bfseries Code} & \csname Scode\CODE\endcsname diff --git a/latex/pn_formation.tex b/latex/pn_formation.tex index 037db96..3e4054f 100644 --- a/latex/pn_formation.tex +++ b/latex/pn_formation.tex @@ -19,16 +19,19 @@ \usepackage{forloop} \usepackage{xparse} \usepackage{enumitem} +\usepackage{longtable} +\usepackage{hyperref} + \setlist{leftmargin=1em,topsep=0pt,partopsep=0pt,itemsep=0pt,itemindent=0em} %\geometry{a4paper,left=25mm,right=25mm,top=25 mm,bottom=25mm} % landscape \geometry{ a4paper, % total={170mm,257mm}, - left=10mm, - right=20mm, - top=15mm, -bottom=15mm + left=10mm, + right=20mm, + top=15mm, + bottom=15mm } \usepackage{tikz}% @@ -49,6 +52,14 @@ bottom=15mm % ******************************************************** \title{Référentiel de formation\\Spécialité : Réseaux et Télécommunications} +\hypersetup{ + pdfinfo={ + Title={Référentiel de formation}, + Subject={Spécialité : Réseaux et Télécommunications}, + % ... + } +} + %\institute{ACD R\&T} %\date{\today} %\author{(many people)}% @@ -98,16 +109,21 @@ bottom=15mm \newcounter{nosae} \newcounter{noexemple} -%% SEMESTRE 1 +\hypertarget{sae:SAÉ}{toto} -%\tableauExempleSAE{AA}{A} -% Les SAE du semestre 1 -% **************************** -% \tableauSAE{AA} -\forLoop{1}{\value{cptSA}}{nosae}{ % Pour chaque SAE +Puis : +\hyperlink{sae:SAÉ}{test} + +%%%%%%%%%%%%%%%% +%% SEMESTRE 1 %% +%%%%%%%%%%%%%%%% +\def\sem{A} + +% Les SAE du semestre 1 + les exemples +\forLoop{1}{\value{cptS\sem}}{nosae}{ % Pour chaque SAE %A\Alph{noressource} - \def\currentSAE{A\Alph{nosae}} + \def\currentSAE{\sem\Alph{nosae}} \tableauSAE{\currentSAE} \forLoop{1}{\value{cptSexemple\currentSAE}}{noexemple}{ \tableauExempleSAE{\currentSAE}{\Alph{noexemple}} @@ -116,19 +132,35 @@ bottom=15mm } % Les ressources du semestre 1 -\forLoop{1}{\value{cptRA}}{noressource}{ +\forLoop{1}{\value{cptR\sem}}{noressource}{ %A\Alph{noressource} - \tableauRessource{A\Alph{noressource}} + \tableauRessource{\sem\Alph{noressource}} \newpage } -%\forLoop{1}{\value{cptressourceB}}{noressource}{ - %%A\Alph{noressource} - %\tableauRessource{B\Alph{noressource}} - %\newpage -%} +%%%%%%%%%%%%%%%% +%% SEMESTRE 2 %% +%%%%%%%%%%%%%%%% -%\tableauRessource{AB} +\def\sem{B} % Le semestre 2 + +% Les SAE du semestre 1 + les exemples +\forLoop{1}{\value{cptS\sem}}{nosae}{ % Pour chaque SAE + %A\Alph{noressource} + \def\currentSAE{\sem\Alph{nosae}} + \tableauSAE{\currentSAE} + \forLoop{1}{\value{cptSexemple\currentSAE}}{noexemple}{ + \tableauExempleSAE{\currentSAE}{\Alph{noexemple}} + } + \newpage +} + +% Les ressources du semestre 1 +\forLoop{1}{\value{cptR\sem}}{noressource}{ + %A\Alph{noressource} + \tableauRessource{\sem\Alph{noressource}} + \newpage +} \end{document} diff --git a/latex/referentiel_BUT1.tex b/latex/referentiel_BUT1.tex index f527dcf..ca5c032 100644 --- a/latex/referentiel_BUT1.tex +++ b/latex/referentiel_BUT1.tex @@ -1,6 +1,9 @@ \specialite{Réseaux et Télécommunications} -% Semestre 1 +%%%%%%%%%%%%%%%% +%% Semestre 1 %% +%%%%%%%%%%%%%%%% + \nouveausemestre{} \input{saes/SAE11.tex} @@ -27,43 +30,53 @@ \input{saes/SAE15_exemple1.tex} \input{ressources/R101.tex} -%\input{ressources/R102.tex} -%\input{ressources/R103.tex} -%\input{ressources/R104.tex} -%\input{ressources/R105.tex} -%\input{ressources/R106.tex} -%\input{ressources/R107.tex} -%\input{ressources/R108.tex} -%\input{ressources/R109.tex} -%\input{ressources/R110.tex} -%\input{ressources/R111.tex} -%\input{ressources/R112.tex} -%\input{ressources/R113.tex} -%\input{ressources/R114.tex} -%\input{ressources/R115.tex} +\input{ressources/R102.tex} +\input{ressources/R103.tex} +\input{ressources/R104.tex} +\input{ressources/R105.tex} +\input{ressources/R106.tex} +\input{ressources/R107.tex} +\input{ressources/R108.tex} +\input{ressources/R109.tex} +\input{ressources/R110.tex} +\input{ressources/R111.tex} +\input{ressources/R112.tex} +\input{ressources/R113.tex} +\input{ressources/R114.tex} +\input{ressources/R115.tex} +%%%%%%%%%%%%%%%% +%% Semestre 2 %% +%%%%%%%%%%%%%%%% - -% -%% Semestre 2 -%\nouveausemestre{} +\nouveausemestre{} \input{saes/SAE21.tex} -\input{saes/SAE22.tex} -\input{saes/SAE23.tex} -%\input{saes/SAE24.tex} +\input{saes/SAE21_exemple1.tex} +\input{saes/SAE21_exemple2.tex} +\input{saes/SAE21_exemple3.tex} -%\input{ressources/R201.tex} -%\input{ressources/R202.tex} -%\input{ressources/R203.tex} -%\input{ressources/R204.tex} -%\input{ressources/R205.tex} -%\input{ressources/R206.tex} -%\input{ressources/R207.tex} -%\input{ressources/R208.tex} -%\input{ressources/R209.tex} -%\input{ressources/R210.tex} -%\input{ressources/R211.tex} -%\input{ressources/R212.tex} -%\input{ressources/R213.tex} -%\input{ressources/R214.tex} +\input{saes/SAE22.tex} +\input{saes/SAE22_exemple1.tex} +\input{saes/SAE22_exemple2.tex} +\input{saes/SAE22_exemple3.tex} + +\input{saes/SAE23.tex} +\input{saes/SAE23_exemple1.tex} +\input{saes/SAE23_exemple2.tex} + + +\input{ressources/R201.tex} +\input{ressources/R202.tex} +\input{ressources/R203.tex} +\input{ressources/R204.tex} +\input{ressources/R205.tex} +\input{ressources/R206.tex} +\input{ressources/R207.tex} +\input{ressources/R208.tex} +\input{ressources/R209.tex} +\input{ressources/R210.tex} +\input{ressources/R211.tex} +\input{ressources/R212.tex} +\input{ressources/R213.tex} +\input{ressources/R214.tex}