From fae04db678cedefbd86b398ab46525fca2e50e34 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 7 Feb 2024 15:49:29 +0100 Subject: [PATCH] fix figures, make the document sloppy and add \ul command --- README.md | 1 + rapstage.cls | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1f4a8d..1585f0a 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Classe `rapstage` pour faire un rapport de stage à Paris Cité | `\subtitle{sous titre}`\* | Défini le sous-titre du rapport | | `\bibliofile{chemin}` | Défini le chemin vers la bibliographie | | `\reference`\* | Affiche la bibliographie | +| `\ul{texte}` | Souligne un mot | > \* Commande possédant une valeur par défaut. diff --git a/rapstage.cls b/rapstage.cls index d09539a..0950273 100644 --- a/rapstage.cls +++ b/rapstage.cls @@ -122,7 +122,11 @@ } % Images -\RequirePackage{graphicx} +\RequirePackage{graphicx,float} + +% Figures +\usepackage[font=it,labelsep=colon]{caption} +\addto\captionsfrench{\renewcommand{\figurename}{Illustration}} \renewcommand{\maketitle}{ \begin{titlepage} @@ -183,9 +187,18 @@ } } +% Permet d'ajouter la bibliographie \newcommand{\reference}{ \newpage \pagestyle{empty} \addcontentsline{toc}{section}{\refname} \bibliography{\@refile} } + +% Souligne mieux les mots +\newcommand{\ul}[1]{\underline{\smash{#1}}} + +% Ne déborde pas sur la marge +\AtBeginDocument{ + \sloppy +}