Commit 40cd9a55 authored by Florent Chehab's avatar Florent Chehab

Graphic tweaks and option to remove color added

parent f27e1cc7
Pipeline #22438 passed with stage
in 1 minute and 2 seconds
\documentclass{report-UTC}
% Pour retirer le thème couleur UTC,
% Commenter la ligne précédente
% Décommenter la ligne dessous
% \documentclass[noUTCcolors]{report-UTC}
\UV{UVXX} %Nom de l'UV
\title{TPX : Lorem ipsum}
......
\ProvidesClass{report-UTC}
\LoadClass[a4paper,12pt,openright]{article}
\LoadClass[a4paper,12pt]{article}
\usepackage[francais]{babel} % Package babel pour le français
\frenchbsetup{StandardLists=true} %Pour redéfinir les itemize malgré babel
......@@ -37,23 +37,76 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TODO EXPLICATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\if@noUTCcolors\@noUTCcolorsfalse
\DeclareOption{noUTCcolors}{
\@noUTCcolorstrue
}
\ProcessOptions\relax
\renewcommand{\listoflistingscaption}{Liste des programmes} %Pour changer le titre de la liste des codes
\renewcommand{\listingscaption}{Programme} %Pour changer la légende des codes
\renewcommand{\labelitemi}{\color{jauneUTC}$\bullet$} %Changement des puces itemize de niveau 1
\renewcommand{\labelitemii}{\color{grisUTC}$\bullet$} %Changement des puces itemize de niveau 2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Nouvelles variables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\UV}[1]{\def\theUV{#1}} %Passage de l'UV en variable
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Redéfinition des niveaux de titre
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\if@noUTCcolors
\definecolor{jauneUTC}{RGB}{0,0,0} % hack to remove all trace of UTCjaune
\else
\renewcommand{\labelitemi}{\color{jauneUTC}$\bullet$} %Changement des puces itemize de niveau 1
\renewcommand{\labelitemii}{\color{grisUTC}$\bullet$} %Changement des puces itemize de niveau 2
\makeatletter
\newcommand\sectionuline{% Commande pour souligner les sections en jauneUTC
\bgroup\markoverwith{\textcolor{jauneUTC}{\rule[-0.5ex]{0.1mm}{0.5mm}}}%
\ULon%
}
\renewcommand\section{\@startsection {section}{1}{\z@}% Redéfinition de la commande section (plus gros, souligné)
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus .2ex}%
{\normalfont\LARGE\bfseries\sectionuline}%
}
\renewcommand\subsection{\@startsection {subsection}{2}{1em}% Redéfinition de la commande subsection (plus gros, en gris UTC)
{-3ex \@plus -0.8ex \@minus -.2ex}%
{1.8ex \@plus .2ex}%
{\normalfont\Large\bfseries\color{grisUTC}}%
}
\renewcommand\subsubsection{\@startsection {subsubsection}{3}{2em}% Redéfinition de la commande subsubsection (plus gros, en gris UTC)
{-2.5ex \@plus -0.6ex \@minus -.2ex}%
{1.8ex \@plus .2ex}%
{\normalfont\large\bfseries\color{grisUTC}}%
}
\renewcommand\paragraph{\@startsection {paragraph}{4}{3em}% Redéfinition de la commande paragraph (plus gros en gris clair UTC)
{-2ex \@plus -0.4ex \@minus -.2ex}%
{1.3ex \@plus .2ex}%
{\normalfont\large\bfseries\color{grisClairUTC}}%
}
\renewcommand\subparagraph{\@startsection {subparagraph}{5}{4em}% Redéfinition de la commande subparagraph (en gris clair UTC)
{-1.5ex \@plus -0.2ex \@minus -.2ex}%
{.8ex \@plus .2ex}%
{\normalfont\bfseries\color{grisClairUTC}}%
}
\makeatother
\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%En-tête et pied de page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\headrulewidth}{0.5pt} %Épaisseur de la ligne d'en-tête
\renewcommand{\footrulewidth}{1mm} %Épaisseur de la ligne de pied de page
\renewcommand{\footrulewidth}{1.5pt} %Épaisseur de la ligne de pied de page
\renewcommand{\footrule}{%
{\color{jauneUTC} \hrule width\headwidth height\footrulewidth \vskip+\footrulewidth}
{\color{jauneUTC} \hrule width\headwidth height\footrulewidth \vskip+2mm}
} %Changement de la couleur de la ligne de pied de page
%Contenu de l'en-tête :
\lhead{\textsc{\leftmark }} %Section actuelle à gauche de l'en-tête
......@@ -70,43 +123,3 @@
\begin{quote} \begin{center}
\bf}
{\end{center} \end{quote}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Redéfinition des niveaux de titre
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\newcommand\sectionuline{% Commande pour souligner les sections en jauneUTC
\bgroup\markoverwith{\textcolor{jauneUTC}{\rule[-0.5ex]{0.1mm}{0.5mm}}}%
\ULon%
}
\renewcommand\section{\@startsection {section}{1}{\z@}% Redéfinition de la commande section (plus gros, souligné)
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus .2ex}%
{\normalfont\LARGE\bfseries\sectionuline}%
}
\renewcommand\subsection{\@startsection {subsection}{2}{1em}% Redéfinition de la commande subsection (plus gros, en gris UTC)
{-3ex \@plus -0.8ex \@minus -.2ex}%
{1.8ex \@plus .2ex}%
{\normalfont\Large\bfseries\color{grisUTC}}%
}
\renewcommand\subsubsection{\@startsection {subsubsection}{3}{2em}% Redéfinition de la commande subsubsection (plus gros, en gris UTC)
{-2.5ex \@plus -0.6ex \@minus -.2ex}%
{1.8ex \@plus .2ex}%
{\normalfont\large\bfseries\color{grisUTC}}%
}
\renewcommand\paragraph{\@startsection {paragraph}{4}{3em}% Redéfinition de la commande paragraph (plus gros en gris clair UTC)
{-2ex \@plus -0.4ex \@minus -.2ex}%
{1.3ex \@plus .2ex}%
{\normalfont\large\bfseries\color{grisClairUTC}}%
}
\renewcommand\subparagraph{\@startsection {subparagraph}{5}{4em}% Redéfinition de la commande subparagraph (en gris clair UTC)
{-1.5ex \@plus -0.2ex \@minus -.2ex}%
{.8ex \@plus .2ex}%
{\normalfont\bfseries\color{grisClairUTC}}%
}
\makeatother
......@@ -11,7 +11,7 @@
\begin{center}
{\color{jauneUTC}\rule{\linewidth}{0.8mm}}
\Huge{\textbf{\theUV \\ \thetitle}} \\
\Huge{\textbf{\theUV \\ \thetitle}}
{\color{jauneUTC}\rule{\linewidth}{0.8mm}}
\vspace{0.5cm}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment