diff --git a/README.md b/README.md index 35fb8ce..1db3a6a 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,19 @@ Se placer dans le répertoire source du projet LaTeX et taper la commande : git submodule add https://framagit.org/Gregory/layout_syllabus_ffg +### Utilisation +Ajouter la ligne suivante dans le fichier LaTeX : + + \usepackage{ffgTemplate} + +Ensuite, définissez les variables suivantes : + + \def\formationType{} + \def\discipline{} + \def\disciplineAcronym{} + \def\moduleTitle{} + \def\writer{} + \def\motcle{} ### Auteur(s) diff --git a/ffgTemplate.sty b/ffgTemplate.sty index 61a71e0..84b39b5 100644 --- a/ffgTemplate.sty +++ b/ffgTemplate.sty @@ -1,19 +1,27 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Copyleft Trullemans Gregory % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % +% @version 2.0 % +% @date 2020-12-6 % % % +% Seconde version du template de la Fédération francophone de Gymnastique et de fitness. % +% Suite à la mise à jour du site internet fin 2020, le FfG définit une nouvelle charte graphique % +% complète. % % % -% % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % + +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Package definition -\ProvidesPackage{ffgTemplate}[2015/01/30 v1.00 Template FfG by G. Trullemans] +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % +\ProvidesPackage{ffgTemplate} +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Required Package +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \RequirePackage[a4paper, top=2cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry} % Gestion des marges -\RequirePackage[utf8]{inputenc} % Gestion des accents (source) -\RequirePackage[frenchb]{babel} % Gestion du français +\RequirePackage[french]{babel} % Gestion du français \RequirePackage{graphicx} % Gestion des images \RequirePackage{xcolor} % Gestion des couleurs \RequirePackage{hyperref} % Gestion des hyperliens @@ -23,33 +31,35 @@ \RequirePackage{ulem} % Gestion (avancée) des soulignements \RequirePackage{textcomp} % Caractères additionnels \RequirePackage{mathtools, amsmath, amstext, amssymb, amsthm} % Package de l'AMS + mathtools +\RequirePackage{gensymb} % symbole \degree +\RequirePackage{cancel} \RequirePackage{nicefrac} % Gestion des fractions \RequirePackage{xspace} % Gestion intelligente de l'espace après une commande \RequirePackage{lmodern} % Police de caractère \RequirePackage{calc} % Syntaxe naturelle pour les calculs +\RequirePackage{framed} +\RequirePackage{tcolorbox} % Pour créer des boites colorées. +\RequirePackage{multirow} % Pour fusionner des lignes dans un tableau - -% Layout Page de garde +% Layout fisrt page \RequirePackage{eso-pic} % Gestion du background de la page de garde. \RequirePackage[absolute]{textpos} % Gestion des positions du texte (option de config : showboxes) \RequirePackage{fontspec} % Gestion de "arial" ET "arial narrow" comme font. \RequirePackage{anyfontsize} % Gestion des tailles de police hors dictionnaire \RequirePackage{shadowtext} % Gestion des ombres - +% \RequirePackage{UniversalSans} % Layout Document -\RequirePackage{titlesec} % Gestion des sections +\RequirePackage[explicit]{titlesec} % Gestion des sections \RequirePackage{titletoc} % Gestion de la table des matière \RequirePackage{titling} % Gestion des titres \RequirePackage{enumitem} % Gestion des listes - % Tools kit \RequirePackage{fancybox} % pour dessiner des boites ;-) \RequirePackage{etoolbox} % Renew command & robust command \RequirePackage{float} - % other package \RequirePackage{bm} % Notation mathématique en gras \RequirePackage{lscape} % Gestion du mode "paysage" @@ -57,38 +67,47 @@ \frenchbsetup{StandardItemLabels=true} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Define global variable for document -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \def\federationName{Fédération francophone de Gymnastique et de fitness} \def\federationAcronym{FfG} - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % (Re)Define parametres for document -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \setmainfont{Arial} \addto\captionsfrench{\def\tablename{Tableau}} % Définition du mot pour les tableaux \addto\captionsfrench{\def\figurename{Figure}} % Définition du mot pour les Figures % Color definition -\definecolor{ffgorange}{RGB}{239, 125, 55} -\definecolor{ffggris}{RGB}{128, 128, 128} +\definecolor{ffg_darkblue}{RGB}{21,29,76} +\definecolor{ffg_lightblue}{RGB}{0, 120, 190} +\definecolor{ffg_red}{RGB}{241, 83, 60} -\patchcmd{\footrule}{\hrule}{\color{orange}\hrule}{}{} +\definecolor{ffg_title_color}{RGB}{12, 97, 158} +\definecolor{ffg_section_color}{RGB}{24, 146, 239} + +\definecolor{footer_color}{RGB}{128, 128, 128} +\definecolor{flyingblue}{RGB}{49, 123, 181} +\definecolor{greymoreknowledge}{RGB}{200, 200, 200} % Parametres for TextPos \setlength{\TPHorizModule}{1mm} -%\setlength{\TPVertModule}{\TPHorizModule} \textblockorigin{5mm}{5mm} % start everything near the top-left corner \setlength{\parindent}{0pt} % Pas d'indentation au placement du texte -% \renewcommand{\labelitemii}{$\circ$} -% \AtBeginDocument{\renewcommand{\labelitemii}{\textcirc}} +\setlength\fboxrule{0.75pt} +\newcommand{\mybox}[1]{\fbox{$~~~ \displaystyle#1 ~~~$}} +\newcommand\NextYear{% + \advance\year by 1 \the\year\advance\year by -1} + + +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Image's first page definition +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \newcommand\BackgroundPic{% \put(0,0){% \parbox[b][\paperheight]{\paperwidth}{% @@ -100,106 +119,158 @@ } } -\shadowoffset{3pt} -\shadowrgb{0.8, 0.8, 0.8} - - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % First Page's definition -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \def\maketitle{% \null \thispagestyle{empty}% % Titre du document - \begin{textblock}{100}(15,4.7) - {\fontsize{32}{42}\selectfont {\bfseries \textcolor{ffggris}{FORMATION\\ \formationType\\\discipline\\~\\Module :\\\moduleTitle}\par}} + \begin{textblock}{200}(0,3) + \centering + {\fontsize{33}{42}\selectfont {\bfseries \textcolor{ffg_darkblue}{FORMATION~\formationType~\discipline}\par}} + {\fontsize{33}{42}\selectfont {\bfseries \textcolor{ffg_red}{Module :\\\moduleTitle}\par}} \end{textblock} % Type de document - \begin{textblock}{100}(8,11.5) + \begin{textblock}{200}(0,8) \begin{center} - {\fontsize{28}{42}\selectfont {\bfseries \textcolor{ffggris}{\shadowtext{Formation des}\\\vspace{-0.3cm}\shadowtext{Cadres}}\par}}% + {\fontsize{28}{42}\selectfont \textcolor{ffg_lightblue}{Formation des Cadres}\par}% \end{center} \end{textblock} % Années - \begin{textblock}{82}(116,11.6) + \begin{textblock}{200}(0,11.5) + \centering \begin{center} - {\fontsize{70}{84}\selectfont {\bfseries \textcolor{ffggris}{\the\year}\par}}% + {\fontsize{30}{84}\selectfont \textcolor{white}{{\the\year}\hspace{3cm} {\NextYear}}\par}% \end{center} \end{textblock} - % Adresses et informations de la Fédération - \begin{textblock}{185}(7,13.5) - \begin{flushright}{\fontsize{12}{13}\selectfont{ - \textcolor{ffggris}{\federationName ~asbl\hfill Tél : +32 (0)2 234 38 38\\ - Avenue de Roodebeek, 44\hfill Fax : +32 (0)2 230 06 69\\ - 1030 Bruxelles\hfill E-mail : info@FfGym.be\\ - ~ \hfill Site : www.FfGym.be} - }}\end{flushright} - \end{textblock} - \null \cleardoublepage } - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Other page definition -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\setlength{\headheight}{30pt} -\fancypagestyle{followingpage}{% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % +\fancypagestyle{plain}{% + \renewcommand\headrulewidth{0pt} + \fancyhead[C]{} + \fancyhead[L]{} + \fancyhead[R]{} \fancyhf{} - %% Header - \fancyhead[CE,CO]{\includegraphics[scale=0.11]{logoFfgHeader.png}} - \renewcommand{\headrulewidth}{0pt} - %% Footer - \fancyfootoffset{3cm} - \fancyfoot[C]{\hspace{2.5cm} {\fontsize{9}{10}\selectfont \textit{{\bfseries\textcolor{ffggris}{FfG \ding{55} \formationType~\disciplineAcronym \hfill Page \thepage \hfill Edition \the\year}}}} \hspace{2.5cm}} - \renewcommand{\footrulewidth}{1pt} + \renewcommand{\footrulewidth}{0pt} + \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[R]{\fontsize{9}{10}\selectfont \textit{\textcolor{footer_color}{Edition \the\year~-~\NextYear}}} } - -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% Title layout redefinition -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % +% Titles layout redefinition +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % \makeatletter - -% Chapter Title redefinition -\renewcommand{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi - \thispagestyle{plain}% - %\global\@topnum\z@ - \@startsection{chapter}{0}{\z@}% - {-3.5ex \@plus -1ex \@minus -.2ex}% - {2.3ex \@plus.2ex}% - %\global\@topnum\z@ - %\@afterindentfalse - %\secdef\@chapter\@schapter - {\noindent\fontsize{18}{20}\fontspec{Arial Narrow}\selectfont\bfseries\color{ffgorange}}} +\colorlet{shadecolor}{ffg_title_color} -% Section Title redefinition -\renewcommand{\section}{\@startsection{section}{1}{\z@}% - {-3.5ex \@plus -1ex \@minus -.2ex}% - {2.3ex \@plus.2ex}% - {\noindent\fontsize{10}{12}\normalfont\bfseries\color{ffgorange}\underline}} +% Numbered chapter title +\titleformat{\chapter}[display] + {\fontsize{16pt}{12pt}\selectfont\color{white}\begin{shaded*}} + {\thechapter \qquad #1} + {0pt} + {\end{shaded*}} +\titlespacing{\chapter} + {0pt} + {0pt} + {0pt} + +% Unnumbered chapter title +\titleformat{name=\chapter, numberless}[display] + {\fontsize{16pt}{12pt}\selectfont\color{white}\begin{shaded*}} + {#1} + {0pt} + {\end{shaded*}} +\titlespacing{name=\chapter, numberless} + {0pt} + {-20pt} + {-20pt} -% SubSection Title redefinition -\renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}% - {-3.25ex\@plus -1ex \@minus -.2ex}% - {1.5ex \@plus .2ex}% - {\normalfont\fontsize{10}{12}\underline}} +% Numbered section title +\titleformat{\section}[display] + {\fontsize{14pt}{12pt}\selectfont\color{ffg_section_color}} + {\thesection \qquad #1} + {0pt} + {} + [\vspace{-4mm} {\color{ffg_lightblue}\titlerule[.6mm]} \enlargethispage{-\parskip}] +\titlespacing*{\section} + {0pt} % left + {24pt} % top + {10pt} % bottom + +% Unnumbered section title +\titleformat{name=\section, numberless}[display] + {\fontsize{14pt}{12pt}\selectfont\color{ffg_section_color}} + {\thesection \qquad #1} + {0pt} + {} + [\vspace{-4mm} {\color{ffg_lightblue}\titlerule[.6mm]} \enlargethispage{-\parskip}] + + +% Numbered subsection title +\titleformat{\subsection}[display] + {\fontsize{13pt}{12pt}\selectfont\color{ffg_title_color}} + {\quad \thesubsection \quad #1} + {0pt} + {} +\titlespacing*{\subsection} + {0pt} + {18pt} + {0pt} + +% Unnumbered subsection title +\titleformat{name=\subsection, numberless}[display] + {\fontsize{13pt}{12pt}\selectfont\color{ffg_title_color}} + {\quad #1} + {0pt} + {} +\titlespacing*{\subsection} + {0pt} + {18pt} + {0pt} + + +% Numbered subsubsection title +\titleformat{\subsubsection}[display] + {\fontsize{11pt}{12pt}\selectfont\color{ffg_title_color}} + {\qquad \thesubsubsection \quad #1} + {0pt} + {} +\titlespacing*{\subsubsection} + {0pt} + {12pt} + {-10pt} + +% Unnumbered subsubsection title +\titleformat{name=\subsubsection, numberless}[display] + {\fontsize{11pt}{12pt}\selectfont\color{ffg_title_color}} + {\qquad #1} + {0pt} + {} +\titlespacing*{name=\subsubsection, numberless} + {0pt} + {12pt} + {-10pt} \makeatother -\pagestyle{followingpage} +\pagestyle{plain} \AtBeginDocument{ \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} @@ -207,6 +278,50 @@ } +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % +% Redefine Theoreme & Definition +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % +\renewenvironment{leftbar}[1][\hsize] +{ + \def\FrameCommand + { + {\color{ffg_title_color}\vrule width 3pt} + \hspace{0pt} + } + \MakeFramed{\hsize#1\advance\hsize-\width\FrameRestore} +} +{\endMakeFramed} + +\newtheoremstyle{new_theorem_style} + {\topsep} % space before \topsep + {\topsep} % space after\topsep + {\itshape} % body font + {} % indent + {\bfseries} % header font + {} % punctuation + {\newline} % after theorem header + {\thmname{#1}~\thmnumber{#2}\thmnote{\ -\ #3}\\*[-1.5ex]}% header specification (empty for default) + +\theoremstyle{new_theorem_style} +\newtheorem*{definitionT}{\color{ffg_title_color}{Définition}} +\newenvironment{definition} +{ + \begin{leftbar} + \begin{definitionT} + \mbox{}\noindent\ignorespaces}{ + \end{definitionT} + \end{leftbar} +} + + +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % +% Define colorbox +% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % +\newtcolorbox{knowledgebox}{colback=ffg_red!5!white, colframe=ffg_red!100!black, fonttitle=\bfseries, title={Savoir}, breakable} %breakable +\newtcolorbox{skillsbox}{colback=flyingblue!5!white, colframe=flyingblue!100!black, fonttitle=\bfseries, title={Savoir faire}, breakable} %breakable +\newtcolorbox{morebox}{colback=greymoreknowledge!5!white, colframe=greymoreknowledge!100!black, fonttitle=\bfseries, title={Allez plus loin\ldots}, breakable} +\newtcolorbox{dangerbox}[1]{colback=red!5!white, colframe=red!100!black, fonttitle=\bfseries, title={Important}, breakable} %breakable + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % References diff --git a/firstpage.png b/firstpage.png old mode 100755 new mode 100644 index ff5e52a..bfa0e0a Binary files a/firstpage.png and b/firstpage.png differ