0

I want to get like this one:

\definecolor{section@title@color}{cmyk}{1,0.2,0.3,0.1}
\definecolor{subsection@title@color}{cmyk}{0,0.6,0.9,0}
\definecolor{subsubsection@title@color} {cmyk}{0.71,0,0.87,0.35}
\definecolor{shadow@color}{cmyk}{.07,0,0,0.49}
% Réglage de la couleur de fond du document
\definecolor{coulFond}{RGB}{0,127,159}
%\definecolor{coulFond}{RGB}{255,165,0}
\def\sectiontitle@font{\fontfamily{ugq}\selectfont}
\def\subsectiontitle@font{\fontfamily{ugq}\selectfont}
\def\subsubsectiontitle@font{\fontfamily{ugq}\selectfont}
%%%%%%%%%%%%%%%%%%%partie reglage%%%%%%%%%%%%%%%%%%%%%%%%%%%
%------------------section reglage-------------------------%

\renewcommand{\thesection}{\Roman{section}}
\titleformat{\section}[block]
{%
    \bfseries\Large
    \color{section@title@color}
    \sectiontitle@font
}
{
\raisebox{\decalnumsec}
{%
\begin{tikzpicture}
\node (numsec) {\sectiontitle@font\thesection};
\fill[rounded corners=2pt,fill=shadow@color] ($(numsec.north west)+(2pt,-2pt)$) -- ($(numsec.north east)+(1mm,0mm)+(2pt,-2pt)$) -- ($(numsec.south east)+(2pt,-2pt)$) -- ($(numsec.south west)+(-1mm,0)+(2pt,-2pt)$) -- cycle;
\fill[rounded corners=2pt,fill=section@title@color] (numsec.north west) -- ($(numsec.north east)+(1mm,0mm)$) -- (numsec.south east) -- ($(numsec.south west)+(-1mm,0)$) -- cycle;
\node[white] at (numsec) {\sectiontitle@font\thesection};
\end{tikzpicture}
}
}
{\spacetitlesec}
{}
%------------------subsection reglage-------------------------%

\renewcommand{\thesubsection}{\arabic{subsection}}
\titleformat{\subsection}[block]
{%
    \hspace*{\decalxtitlesubsec}
    \bfseries\large
    \color{subsection@title@color}
    \subsectiontitle@font
}
{
    \raisebox{\decalnumsubsec}
    {%
    \begin{tikzpicture}
    \node (numsec) {\subsectiontitle@font\thesubsection};
    \fill[rounded corners=2pt,fill=shadow@color] ($(numsec.north west)+(2pt,-2pt)$) -- ($(numsec.north east)+(1mm,0mm)+(2pt,-2pt)$) -- ($(numsec.south east)+(2pt,-2pt)$) -- ($(numsec.south west)+(-1mm,0)+(2pt,-2pt)$) -- cycle;
    \fill[rounded corners=2pt,fill=subsection@title@color] (numsec.north west) -- ($(numsec.north east)+(1mm,0mm)$) -- (numsec.south east) -- ($(numsec.south west)+(-1mm,0)$) -- cycle;
    \node[white] at (numsec){\subsectiontitle@font\thesubsection};
    \end{tikzpicture}
    }
}
{%
    \spacetitlesubsec
}
{}
%------------------subsubsection reglage-------------------------%

\renewcommand{\thesubsubsection}{\alph{subsubsection}}
\titleformat{\subsubsection}[block]
{%
    \hspace*{\decalxtitlesubsubsec}
    \bfseries
    \color{subsubsection@title@color}
    \subsubsectiontitle@font
}
{
\raisebox{\decalnumsubsubsec}
{%
\begin{tikzpicture}
\node (numsec) {\subsubsectiontitle@font\thesubsubsection};
\fill[rounded corners=2pt,fill=shadow@color] ($(numsec.north west)+(2pt,-2pt)$) -- ($(numsec.north east)+(1mm,0mm)+(2pt,-2pt)$) -- ($(numsec.south east)+(2pt,-2pt)$) -- ($(numsec.south west)+(-1mm,0)+(2pt,-2pt)$) -- cycle;
\fill[rounded corners=2pt,fill=subsubsection@title@color] (numsec.north west) -- ($(numsec.north east)+(1mm,0mm)$) -- (numsec.south east) -- ($(numsec.south west)+(-1mm,0)$) -- cycle;
\node[white] at (numsec) {\subsubsectiontitle@font\thesubsubsection};
\end{tikzpicture}
}
}
{\spacetitlesubsubsec}
{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.