Compare commits

...

2 Commits

Author SHA1 Message Date
Gregory Trullemans f85a19055d Merge branch 'master' of https://sources.grimbox.be/Sulley/layout_syllabus_ffg 2024-08-12 17:39:25 +02:00
Gregory Trullemans dcf0ebcaf1 Add condition to display season. 2024-08-12 17:38:32 +02:00
1 changed files with 14 additions and 2 deletions

View File

@ -103,6 +103,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
} }
@ -152,7 +156,11 @@
% Saisons concernées % Saisons concernées
\begin{textblock}{200}(0,11.68) \begin{textblock}{200}(0,11.68)
\centering \centering
\textcolor{white}{\fontsize{30}{84}\selectfont {\the\year}\hspace{3cm} {\NextYear}}\par \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
\fi
\end{textblock} \end{textblock}
% FfG en bas à gauche % FfG en bas à gauche
@ -184,7 +192,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}}}
\fancyfoot[R]{\fontsize{9}{10}\selectfont \textit{\textcolor{footer_color}{Edition \the\year~-~\NextYear}}} \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}}}
\fi
} }