2020-11-05 10:48:08 +01:00
%%%%%%%%%%%%%%%%% Compétences & Situations professionnelles d'un parcours
% Usage : \frameParcoursSituationsPro{abbr_parcours}{n°_parcours}
\newcommand \frameParcoursSituationsPro [2] {
\xdef \PARABBR { #1} % Nom du parcours : Cyber
\xdef \COUPAR { #2} % N° du parcours : 1
%\def\PARABBR{Cyber}
%\def\COUPAR{1}
\begin { frame} [plain]{ }
2020-11-12 00:21:45 +01:00
\subsection { Situations professionnelles}
2020-11-05 10:48:08 +01:00
\begin { tikzpicture} [overlay, remember picture]
\stdsetup
\node [text=titlebg] [%
outer sep=0,inner sep=0mm,%
fit=(lastpoint)(splitpoint),
align=left%
2020-11-23 00:18:06 +01:00
] (xtitle) { \fontsize { 20} { 40} \bfseries \selectfont Parcours \PARABBR ~: situations professionnelles} ;
2020-11-05 10:48:08 +01:00
\fill [shade,left color=titlebg,right color=white] (xtitle.south west) rectangle ($ ( xtitle.south east ) + ( 0 , 1 mm ) $ );
%\node[%
%outer sep=0,inner sep=2mm,%
%fit=(toprightcorner)(splitpointbis),
%rounded corners=2mm,
%fill=red!10!white,
%align=left%
%] (blob) {Les situations professionnelles réfèrent aux \textbf{contextes} dans lesquels les compétences sont mises en jeu. Ses situations varient selon la compétence ciblée.};
\coordinate (lastpoint) at ($ ( xtitle.south west ) + ( 0 , - 4 mm ) $ );
%\foreach \XX in \comploop {%
\xdef \loopcompparcours { \csname loopcompparcours\PARABBR \endcsname }
\foreach \CNOM /\CTYPE /\CLETTRE [count=\COUXX ] in \loopcompparcours { % Boucle sur les compétences
%\foreach \XX in \comploop {%
\coordinate (bottompoint) at ($ ( lastpoint ) + ( 0 , - 20 mm ) $ );
\coordinate (subrefpoint) at ($ ( refpoint ) + ( 50 mm, 0 mm ) $ );
\begin { pgfonlayer} { main}
% \draw[thick](lastpoint)--++(-1cm,0);
\node [outer sep=0,inner sep=0mm,%
minimum height=25mm,%
text width=200mm,%
align=left,%
% text=comp\XX p,fill=comp\XX%
text=black,fill=comp\CTYPE \CLETTRE !20!white%
] (rightbox) at (lastpoint-|subrefpoint) [anchor=north west] { %
\ifcsdef { situproname\CNOM A} { % S'il y a au moins une situation pro
\begin { list} { \checkmark } { \topsep =0pt \partopsep =0pt \parsep =0pt \itemsep =0pt \leftmargin =1em \itemindent =0em} %
\foreach \YY in \situloop { %
\ifcsdef { situproname\CNOM \YY } { \item %
\textcolor { black} { \csname situproname\CNOM \YY \endcsname } } { } %
}
\end { list} %
} { }
} ;
\coordinate (bottompoint) at ($ ( rightbox.south west ) + ( - 10 mm, 0 ) $ );
\coordinate (toppoint) at ($ ( lastpoint ) + ( 32 mm, 0 mm ) $ );
\node [outer sep=0,inner sep=0mm,%
% text width=45mm,%
% fit=(bottompoint)(toppoint),
align=right,%
% fill=comp\XX,text=comp\XX p%
] at ($ ( rightbox.west ) + ( - 10 mm, 0 ) $ ) [anchor=east] (leftbox) { %
\Large \bfseries Situations\\ \Large \bfseries professionnelles%
} ;
\end { pgfonlayer}
\begin { pgfonlayer} { background}
\coordinate (toppoint) at ($ ( rightbox.north west ) + ( - 2 mm, 2 mm ) $ );
\coordinate (bottompoint) at ($ ( rightbox.south east ) + ( 2 mm, - 2 mm ) $ );
\node [outer sep=0,inner sep=0mm,
fit=(toppoint)(bottompoint),
% fill=comp\XX,
text=black,fill=comp\CTYPE \CLETTRE !20!white,%
blur shadow={ shadow blur steps=5}
] (bodybox) { } ;
\coordinate (tmpa) at ($ ( lastpoint ) + ( 80 mm, 0 ) $ );
\coordinate (tmpb) at (tmpa|-bodybox.south);
\fill [fill=comp\CTYPE\CLETTRE] ($ ( rightbox.north west ) + ( - 6 mm, 0 mm ) $ ) rectangle ($ ( rightbox.south west ) + ( - 5 mm, 0 ) $ );
\coordinate (toppoint) at ($ ( lastpoint ) + ( 25 mm, 2 mm ) $ );
\node [%
outer sep=0,inner sep=0mm,%
text width=25mm,%
fit=(toppoint)(lastpoint|-bodybox.south),%
align=center,%
fill=comp\CTYPE \CLETTRE ,text=comp\CTYPE \CLETTRE p,%
blur shadow={ shadow blur steps=5} %
] (headbox) { \csname compname\CNOM \endcsname } ;
\end { pgfonlayer}
\coordinate (lastpoint) at ($ ( lastpoint| - bodybox.south ) + ( 0 , - 4 mm ) $ );
}
% Le numero de pages
\node [inner sep=0,outer sep=0,text width=33mm,anchor=north,align=center] (testarrow) at ($ ( bottomrightcorner ) + ( 0 mm, 0 mm ) $ ) {
\insertframenumber { } ~/~\inserttotalframenumber { }
} ;
\end { tikzpicture}
\end { frame}
}