summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/profcollege/PfCBonSortie.tex
blob: 25408ad5fed2d04bd131e2e36d23bf039803a1df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
%%%
% Bon de sortie
%%%
\newcommand\BonSortieBandeau{%
  Nom : \hfill Date : \hspace*{3cm}
}

\newtcolorbox{Sortie}{%
  %Titre
  colbacktitle=white,
  fonttitle=\color{black}\Large\bfseries,
  toptitle=2mm,
  bottomtitle=2mm,
  title={\BonSortieBandeau},
  %%Cadre principal
  enhanced,
  nobeforeafter,
  width=13.15cm,
  height=8.8cm,
  colback=white,
  valign=top,
  %Cadre bas
  sidebyside,
  righthand width=0.05\linewidth,
}

\setKVdefault[ClesSortie]{MemeEnonce=false}%

\newcommand\BonSortieSmiley{%
  \Huge
  \begin{center}
    \RKangry

    \vspace{1em}
    
    \RKsad

    \vspace{1em}
    
    \RKsmallsmile
    
    \vspace{1em}

    \RKbigsmile
  \end{center}
}

\NewDocumentCommand\BonSortie{o m m m m}{%
  \clearpage%
  \useKVdefault[ClesSortie]%
  \setKV[ClesSortie]{#1}%
  \begin{tikzpicture}[remember picture, overlay]
    \draw[dashed] (current page.north) to (current page.south);
    \draw[dashed] (current page.west) to (current page.east);
    \coordinate[xshift=7.425cm,yshift=-5.25cm] (A) at (current page.north west);
    \coordinate[xshift=-7.425cm,yshift=-5.25cm] (B) at (current page.north east);
    \coordinate[xshift=7.425cm,yshift=5.25cm] (C) at (current page.south west);
    \coordinate[xshift=-7.425cm,yshift=5.25cm] (D) at (current page.south east);
    \ifboolKV[ClesSortie]{MemeEnonce}{%
      \foreach\i\in in {A,B,C,D}{%
        \node (\i1) at (\i) {\begin{Sortie}
            #2
            \tcblower
            \BonSortieSmiley
          \end{Sortie}
        };
      }
    }{%
      \node (A1) at (A) {\begin{Sortie}
          #2
          \tcblower
          \BonSortieSmiley
        \end{Sortie}
      };
      \node (B1) at (B) {\begin{Sortie}
          #3
          \tcblower
          \BonSortieSmiley
        \end{Sortie}
      };
      \node (C1) at (C) {\begin{Sortie}
          #4
          \tcblower
          \BonSortieSmiley
        \end{Sortie}
      };
      \node (D1) at (D) {\begin{Sortie}
          #5
          \tcblower
          \BonSortieSmiley
        \end{Sortie}
      };
    }
  \end{tikzpicture}
}%