From 46fc7a92c204f47da38d25016517d078908ab6c5 Mon Sep 17 00:00:00 2001
From: Sébastien Dailly <sebastien@chimrod.com>
Date: Sat, 10 Aug 2019 22:39:06 +0200
Subject: Update template

---
 model_4/resources/10_title_style.tex | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'model_4/resources/10_title_style.tex')

diff --git a/model_4/resources/10_title_style.tex b/model_4/resources/10_title_style.tex
index 5adc081..c281f7e 100755
--- a/model_4/resources/10_title_style.tex
+++ b/model_4/resources/10_title_style.tex
@@ -1,13 +1,13 @@
 \usepackage{titlesec}
 
 \providecommand{\DUdocumentsubtitle}[1]{%
+    \begin{nthcolumn}{1}
 	\color{black}
 	\CaviarDreamsFont\selectfont
 	\Large
     \raggedleft
 	#1
-    %\end{flushright}
-    %\switchcolumn[1]* % Synchronise the column at this position
+    \end{nthcolumn}
 }
 
 \makeatletter
@@ -45,20 +45,20 @@
 % La commande attend deux paramètres, la couleur, et le texte à afficher,
 % le texte correspond à celui de la section et est fourni par titlesec en
 % paramètre de manière implicite.
-\newcommand{\colorsection}[3]{%
+\newcommand{\colorsection}[4]{%
   \centering
   \colorbox{#1}{%
   \parbox{#2}{%
-      \centering\textcolor{white}{#3}}%
+      \centering\textcolor{#3}{#4}}%
   }
 }
 
 % Titre de niveau 1
 \titleformat{\section}[block]
-  {\CaviarDreamsFont\selectfont\Large}
+  {\CaviarDreamsFont\selectfont\large}
   {\thesection}
   {0em}
-  {\centering}
+  {\colorsection{white}{.7\linewidth}{black}}
 
 % Titre de niveau 2
 \titleformat{\subsection}
@@ -76,6 +76,6 @@
   {}
 
 \newcommand{\DUtitletitle}[1]{%
-    \stepcounter{mySection}\colorsection{title[\modulo{\the\value{mySection}}{\colorsDim}]}{\linewidth}{#1}
+    \stepcounter{mySection}\colorsection{title[\modulo{\the\value{mySection}}{\colorsDim}]}{\linewidth}{white}{#1}
  }
 
-- 
cgit v1.2.3

