aboutsummaryrefslogtreecommitdiff
path: root/model_4/resources/10_title_style.tex
diff options
context:
space:
mode:
Diffstat (limited to 'model_4/resources/10_title_style.tex')
-rwxr-xr-xmodel_4/resources/10_title_style.tex14
1 files changed, 7 insertions, 7 deletions
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}
}