diff options
author | Karl Berry <karl@freefriends.org> | 2023-05-02 20:28:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-05-02 20:28:48 +0000 |
commit | 0d88fa810742d90f84743ad83193ea4ab3c38251 (patch) | |
tree | 4dcde1706412e58df3686b93ab2d6c49e686291b /Master/texmf-dist/tex/latex/profcollege/PfCCartesJeux.tex | |
parent | b946d2b6f571f16ffa402663a474fafe1f501d4e (diff) |
profcollege (2may23)
git-svn-id: svn://tug.org/texlive/trunk@66990 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/profcollege/PfCCartesJeux.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/profcollege/PfCCartesJeux.tex | 107 |
1 files changed, 79 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/latex/profcollege/PfCCartesJeux.tex b/Master/texmf-dist/tex/latex/profcollege/PfCCartesJeux.tex index 100807c748a..88b2e3a57b3 100644 --- a/Master/texmf-dist/tex/latex/profcollege/PfCCartesJeux.tex +++ b/Master/texmf-dist/tex/latex/profcollege/PfCCartesJeux.tex @@ -8,7 +8,7 @@ text fill,% width=\largeurcarte,% height=\hauteurcarte,% - arc=5pt,% + arc=\PfCRayonArc,% overlay unbroken and first={% \coordinate[yshift=-0.5\hauteurtitre] (A1) at (frame.north west);% \coordinate[yshift=-0.5\hauteurtitre] (B1) at (frame.north east);% @@ -39,6 +39,7 @@ }% \newcommand\PfCTexteJai{J'ai} +\newcommand\PfCTexteJesuis{Je suis\dots} \newcommand\PfCTexteQuia{Qui a ?} \makeatletter @@ -49,7 +50,7 @@ text fill,% width=\largeurcarte,% height=\hauteurcarte,% - arc=5pt,% + arc=\PfCRayonArc,%\useKV[Cards]{RayonArc},% underlay={% \ifboolKV[Cards]{BackgroundAv}{% \begin{tcbclipinterior} @@ -64,19 +65,33 @@ },% overlay unbroken and first={% \coordinate[yshift=-0.5\hauteurtitre] (A1) at (frame.north west); - \coordinate[yshift=0\hauteurtitre] (S3) at (frame.center); + \ifboolKV[Cards]{Eleve}{% + \coordinate[yshift=0.1\hauteurcarte] (S3) at (frame.center); + \coordinate[yshift=-0.1\hauteurcarte] (S5) at (frame.center); + }{% + \coordinate (S3) at (frame.center); + \coordinate (S5) at (frame.center); + }% \coordinate[yshift=3mm] (C3) at (frame.south); \coordinate[xshift=\largeurcarte/2] (A3) at (A1); + %Partie Haute \node[rounded corners, draw=black, rectangle,minimum height=1cm,text width=\largeurcarte-6mm,fill=TrameCouleur] (T1) at (A3){}; - \node[TexteCouleur] (T1a) at (T1){\Large \PfCTexteJai}; - \node[rounded corners, draw=black, rectangle,minimum height=1cm,text width=\largeurcarte-6mm,fill=TrameCouleur] (T2) at (S3){}; - \node[TexteCouleur] (T2a) at (T2){\Large \PfCTexteQuia}; + \node[TexteCouleur] at (T1){\Large \PfCTexteJai}; \node[minimum height=1cm,text width=\largeurcarte-6mm] (PointTexte1) at ($(A3)!0.5!(S3)$) {\begin{minipage}{\largeurcarte-6mm}% \begin{center}% #1% \end{center}% - \end{minipage}}; - \node[minimum height=1cm,text width=\largeurcarte-6mm] (PointTexte2) at ($(C3)!0.5!(S3)$) {\begin{minipage}{\largeurcarte-6mm}% + \end{minipage}% + }; + % Partie Milieu + \ifboolKV[Cards]{Eleve}{% + \node[rounded corners, draw=black, rectangle,minimum height=1cm,text width=\largeurcarte-6mm,fill=TrameCouleur] (T3) at (S3){}; + \node[TexteCouleur] at (T3){\Large \PfCTexteJesuis}; + }{} + % Partie Basse + \node[rounded corners, draw=black, rectangle,minimum height=1cm,text width=\largeurcarte-6mm,fill=TrameCouleur] (T2) at (S5){}; + \node[TexteCouleur] at (T2){\Large \PfCTexteQuia}; + \node[minimum height=1cm,text width=\largeurcarte-6mm] (PointTexte2) at ($(C3)!0.5!(S5)$) {\begin{minipage}{\largeurcarte-6mm}% \begin{center}% #2% \end{center}% @@ -85,16 +100,16 @@ colback=white }% % -\newtcolorbox{MyboxJQAr}{% +\newtcolorbox{MyboxJQAr}[1]{% enhanced,% nobeforeafter,% left=0pt,right=0pt,top=0pt,% text fill,% width=\largeurcarte,% height=\hauteurcarte,% - arc=5pt,% + arc=\PfCRayonArc,% underlay={% - \ifboolKV[Cards]{BackgroundAv}{% + \ifboolKV[Cards]{BackgroundAr}{% \begin{tcbclipinterior} \node[anchor=center,opacity=1] at (interior.center) {% @@ -105,6 +120,18 @@ \end{tcbclipinterior}% }{}% },% + overlay unbroken and first={% + \ifboolKV[Cards]{AfficheTheme}{% + % \coordinate[yshift=-0.5\hauteurtitre] (A) at (frame.north);% + \coordinate[yshift=-2.5mm] (A) at (frame.north);% + \node[anchor=north,rounded corners,draw=black,rectangle,minimum height=1cm,text width=\largeurcarte-6mm,fill=TrameCouleur] at (A){\begin{minipage}{\largeurcarte-6mm}% + \begin{center}% + #1% + \end{center}% + \end{minipage} + };% + }{}% + },% colback=white }% \makeatother @@ -118,7 +145,7 @@ text fill,% width=\largeurcarte,% height=\hauteurcarte,% - arc=5pt,% + arc=\PfCRayonArc,% colback=white,% underlay={% \ifboolKV[Cards]{BackgroundAv}{% @@ -151,7 +178,7 @@ text fill,% width=\largeurcarte,% height=\hauteurcarte,% - arc=5pt,% + arc=\PfCRayonArc,% colback=white,% underlay={% \ifboolKV[Cards]{BackgroundAr}{% @@ -183,7 +210,7 @@ text fill,% width=\largeurcarte,% height=\hauteurcarte,% - arc=5pt,% + arc=\PfCRayonArc,% colback=white,% #1 }% @@ -197,6 +224,7 @@ \newlength{\margeh}% \newlength{\margev}% +\newlength{\PfCRayonArc}% \newlength{\PfCCardsH}%pour retenir en cas de décalage sur une page paire \newlength{\PfCCardsEcartH}%Pour décaler sur une page paire @@ -233,6 +261,7 @@ \coordinate[xshift=\largeurcards] (D2) at (D1);% \coordinate[xshift=\largeurcards] (C3) at (C2);% \coordinate[xshift=\largeurcards] (D3) at (D2);% + \ifboolKV[Cards]{TrameVisible}{% \draw (A)--(B);% \draw (A1)--(B1);% \draw (A2)--(B2);% @@ -242,6 +271,7 @@ \draw (C1)--(D1);% \draw (C2)--(D2);% \draw (C3)--(D3);% + }{} % point pour placer les cartes \coordinate[xshift=\margeh+0.5\PfCCardsH,yshift=-0.5\PfCCardsV] (Carte1) at (A);% \coordinate[xshift=\largeurcards,yshift=0mm] (Carte2) at (Carte1);% @@ -301,11 +331,12 @@ }{}% \setKVdefault[Cards]{Largeur=59,Hauteur=89,HauteurTheme=15,Marge=4,Landscape=false,Couleur=Cornsilk,Theme=Th\'eor\`eme\\de - Pythagore,ThemeSol=Solution,Trame=false,Titre=false,NomTitre=Jeu 1,Loop,JaiQuia=false,BackgroundAv=false,BackgroundAr=false,ImageAv=4813762.jpg,ImageAr=4813762.jpg,AffichageSolution=true,SolutionSeule=false,% + Pythagore,ThemeSol=Solution,AfficheTheme=false,Trame=false,Jointes=false,TrameVisible=false,RayonArc=5pt,Titre=false,NomTitre=Jeu 1,Loop,JaiQuia=false,Eleve=false,BackgroundAv=false,BackgroundAr=false,ImageAv=4813762.jpg,ImageAr=4813762.jpg,AffichageSolution=true,SolutionSeule=false,% % Pour le trivial Trivial=false,Symboles={\faInfinity,\faSignal,\faProjectDiagram,\faHiking,\faRuler,\faLockOpen} }% - +\defKV[Cards]{ThemeJaiQuiA=\setKV[Cards]{AfficheTheme}} +% \NewDocumentCommand\Cartes{o +m}{%[2][]{% \useKVdefault[Cards]% \setKV[Cards]{#1}% @@ -322,15 +353,16 @@ }{% \setlength{\hauteurcarte}{\fpeval{\useKV[Cards]{Hauteur}-\useKV[Cards]{Marge}}mm}% \setlength{\largeurcarte}{\fpeval{\useKV[Cards]{Largeur}-\useKV[Cards]{Marge}}mm}% - \setlength{\largeurcards}{65mm}% - \setlength{\hauteurcards}{95mm}% + \ifboolKV[Cards]{Jointes}{\setlength{\largeurcards}{\largeurcarte}}{\setlength{\largeurcards}{65mm}}% + \ifboolKV[Cards]{Jointes}{\setlength{\hauteurcards}{\hauteurcarte}}{\setlength{\hauteurcards}{95mm}}% \setlength{\margeh}{(210mm-3\largeurcards)/2}% - \setlength{\margev}{(297mm-3\hauteurcards)/2}% + \setlength{\margev}{(297mm-3\hauteurcards)/2} }% \setlength{\hauteurtitre}{\fpeval{\useKV[Cards]{HauteurTheme}}mm}% \setlength{\largeurtitre}{\fpeval{(\useKV[Cards]{Largeur}-\useKV[Cards]{Marge}-9)/2}mm}% \colorlet{TexteCouleur}{black}% \colorlet{TrameCouleur}{\useKV[Cards]{Couleur}}% + \setlength{\PfCRayonArc}{\useKV[Cards]{RayonArc}}% \ifboolKV[Cards]{Trivial}{% \xdef\PfCListeSymbolTrivial{\useKV[Cards]{Symboles}}% \setsepchar{,}\readlist*\ListeSymbolesTrivial{\PfCListeSymbolTrivial}% @@ -442,20 +474,35 @@ \begin{Trame} \multido{\i=1+1}{3}{% \node at (Carte\i) {% - \begin{MyboxJQAr}% - \end{MyboxJQAr}% + \ifboolKV[Cards]{AfficheTheme}{% + \begin{MyboxJQAr}{\useKV[Cards]{ThemeJaiQuiA}}% + \end{MyboxJQAr}% + }{% + \begin{MyboxJQAr}{}% + \end{MyboxJQAr}% + }% };% }% \multido{\i=4+1}{3}{% \node at (Carte\i) {% - \begin{MyboxJQAr}% - \end{MyboxJQAr}% + \ifboolKV[Cards]{AfficheTheme}{% + \begin{MyboxJQAr}{\useKV[Cards]{ThemeJaiQuiA}}% + \end{MyboxJQAr}% + }{% + \begin{MyboxJQAr}{}% + \end{MyboxJQAr}% + }% };% }% \multido{\i=7+1}{3}{% \node at (Carte\i) {% - \begin{MyboxJQAr}% - \end{MyboxJQAr}% + \ifboolKV[Cards]{AfficheTheme}{% + \begin{MyboxJQAr}{\useKV[Cards]{ThemeJaiQuiA}}% + \end{MyboxJQAr}% + }{% + \begin{MyboxJQAr}{}% + \end{MyboxJQAr}% + }% };% }% \end{Trame}% @@ -466,9 +513,13 @@ %% \end{MyboxJQ}% \ifboolKV[Cards]{AffichageSolution}{% - \begin{MyboxJQAr}% - %% - \end{MyboxJQAr}% + \ifboolKV[Cards]{AfficheTheme}{% + \begin{MyboxJQAr}{\useKV[Cards]{ThemeJaiQuiA}}% + \end{MyboxJQAr}% + }{% + \begin{MyboxJQAr}{}% + \end{MyboxJQAr}% + }% }{}% }% }{% |