From 6e8c7b70b145f92b72a9a9b3cd560cff42da6880 Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Wed, 14 Aug 2024 13:59:34 +0200 Subject: [PATCH] Update layout --- ffgTemplate.sty | 38 ++++++++++++++++++++++++++++++++------ 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/ffgTemplate.sty b/ffgTemplate.sty index 25d5547..bd485ee 100644 --- a/ffgTemplate.sty +++ b/ffgTemplate.sty @@ -1,7 +1,7 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Copyleft Trullemans Gregory % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% @version 2.1 % +% @version 2.2 % % @date 2021-04-03 % % % % Seconde version du template de la Fédération francophone de Gymnastique et de fitness. % @@ -344,11 +344,37 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % 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 - +\tcbuselibrary{breakable} +\newtcolorbox{knowledgebox}{ + colback=ffg_red!5!white, colframe=ffg_red!100!black, + fonttitle=\bfseries, + title={Savoir}, + breakable +} +\newtcolorbox{skillsbox}{ + colback=flyingblue!5!white, colframe=flyingblue!100!black, + fonttitle=\bfseries, + title={Savoir faire}, + 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={ + \if\relax\detokenize{#1}\relax + Important + \else + Important : #1 + \fi + }, + breakable +} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % References