Add condition to display season.

This commit is contained in:
Gregory Trullemans 2024-08-12 17:38:32 +02:00
parent 80b7d17289
commit dcf0ebcaf1
1 changed files with 14 additions and 2 deletions

View File

@ -101,6 +101,10 @@
\setlength\fboxrule{0.75pt} \setlength\fboxrule{0.75pt}
\newcommand{\mybox}[1]{\fbox{$~~~ \displaystyle#1 ~~~$}} \newcommand{\mybox}[1]{\fbox{$~~~ \displaystyle#1 ~~~$}}
\newcommand\PreviousYear{%
\advance\year by -1 \the\year\advance\year by 1
}
\newcommand\NextYear{% \newcommand\NextYear{%
\advance\year by 1 \the\year\advance\year by -1 \advance\year by 1 \the\year\advance\year by -1
} }
@ -150,7 +154,11 @@
% Saisons concernées % Saisons concernées
\begin{textblock}{200}(0,11.68) \begin{textblock}{200}(0,11.68)
\centering \centering
\ifnum \number\month < 9
\textcolor{white}{\fontsize{30}{84}\selectfont {\PreviousYear}\hspace{3cm} {\the\year}}\par
\else
\textcolor{white}{\fontsize{30}{84}\selectfont {\the\year}\hspace{3cm} {\NextYear}}\par \textcolor{white}{\fontsize{30}{84}\selectfont {\the\year}\hspace{3cm} {\NextYear}}\par
\fi
\end{textblock} \end{textblock}
% FfG en bas à gauche % FfG en bas à gauche
@ -182,7 +190,11 @@
\renewcommand{\footrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt}
\fancyfoot[L]{\fontsize{9}{10}\selectfont \textit{\textcolor{footer_color}{Formation des Cadres\\ \discipline}}} \fancyfoot[L]{\fontsize{9}{10}\selectfont \textit{\textcolor{footer_color}{Formation des Cadres\\ \discipline}}}
\fancyfoot[C]{\fontsize{9}{10}\selectfont \textit{\textcolor{footer_color}{p. \thepage}}} \fancyfoot[C]{\fontsize{9}{10}\selectfont \textit{\textcolor{footer_color}{p. \thepage}}}
\ifnum \number\month < 9
\fancyfoot[R]{\fontsize{9}{10}\selectfont \textit{\textcolor{footer_color}{Edition \PreviousYear~-~\the\year}}}
\else
\fancyfoot[R]{\fontsize{9}{10}\selectfont \textit{\textcolor{footer_color}{Edition \the\year~-~\NextYear}}} \fancyfoot[R]{\fontsize{9}{10}\selectfont \textit{\textcolor{footer_color}{Edition \the\year~-~\NextYear}}}
\fi
} }