Commit af9192c6 authored by Remy Huet's avatar Remy Huet

Ajout de couleurs, commentaires et structure du .cls

parent 9be29ef6
Pipeline #22152 passed with stage
in 27 seconds
......@@ -13,8 +13,9 @@ get_assets) echo "récupérération des assets"
a="https://gitlab.utc.fr/LaTeX-UTC/Graphismes-UTC/raw/master/logos/UTC/logo_UTC.pdf "
b="https://gitlab.utc.fr/LaTeX-UTC/Graphismes-UTC/raw/master/logos/sigle_UTC/sigle_UTC.pdf "
c="https://gitlab.utc.fr/LaTeX-UTC/Graphismes-UTC/raw/master/couleurs/couleurs_UTC.sty "
for url in $a$b
for url in $a$b$c
do
wget $url
if [[ $? -ne 0 ]]; then
......
\documentclass{report-UTC}
\UV{UVXX} %Nom de l'UV
\title{\theUV{} compte-rendu TP X}
\author{XXXXXX XXXXX et XXXXX XXXXX}
\title{TPX : Lorem ipsum}
\author{{\sc Nom} Prénom \\ {\sc Nom} Prénom}
\begin{document}
......
......@@ -30,20 +30,63 @@
\usepackage{url} % For quickly inserting links
\usepackage[final]{pdfpages} % Pour inclure des .pdf
\usepackage[linesnumbered,ruled,vlined]{algorithm2e} % for cool loonking algorithm
\usepackage{ulem} % Pour souligner en couleur
\usepackage{__EXTERNAL_ASSETS__/couleurs_UTC} %Couleurs définies dans la charte graphique de l'UTC
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TODO EXPLICATION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\listoflistingscaption}{Liste des programmes} %Pour changer le titre de la liste des codes
\renewcommand{\listingscaption}{Programme} %Pour changer la légende des codes
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Nouvelles variables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\UV}[1]{\def\theUV{#1}} %Passage de l'UV en variable
\renewcommand{\headrulewidth}{0.5pt}
\lhead{\textsc{\leftmark }}
\chead{\includegraphics[height=1.5cm]{./__EXTERNAL_ASSETS__/sigle_UTC.pdf}}
\rhead{\theUV}
\cfoot{\thepage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%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{\footrule}{%
{\color{jauneUTC} \hrule width\headwidth height\footrulewidth \vskip+\footrulewidth}
} %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
\chead{\includegraphics[height=1.5cm]{./__EXTERNAL_ASSETS__/sigle_UTC.pdf}} %Sigle de l'UTC au centre de l'en-tête
\rhead{\theUV} %Code de l'UV à droite de l'en-tête
%Contenu du pied de page :
\cfoot{\thepage} %Numéro de page au centre
\lfoot{\theauthor} %auteur(s) à gauche
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Environements
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newenvironment{myabstract}{%
\begin{quote} \begin{center}
\bf}
{\end{center}
\end{quote}}
\begin{quote} \begin{center}
\bf}
{\end{center} \end{quote}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Redéfinition des niveaux de titre
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\newcommand\sectionuline{%
\bgroup\markoverwith{\textcolor{jauneUTC}{\rule[-0.5ex]{0.1mm}{0.5mm}}}%
\ULon%
}
\renewcommand\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus .2ex}%
{\reset@font\LARGE\bfseries\sectionuline}
}
\renewcommand\subsection{\@startsection {subsection}{2}{1em}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus .2ex}%
{\reset@font\Large\bfseries\color{grisUTC}}
}
\makeatother
\ No newline at end of file
......@@ -9,7 +9,11 @@
\vspace{3cm}
\begin{center}
\Huge{\textbf{\thetitle}} \\
{\color{jauneUTC}\rule{\linewidth}{0.8mm}}
\Huge{\textbf{\theUV \\ \thetitle}} \\
{\color{jauneUTC}\rule{\linewidth}{0.8mm}}
\vspace{0.5cm}
\Large{\theauthor} \\
\small{(Groupe XX)}\\
......
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