diff --git a/modele/rapport.tex b/modele/rapport.tex index 7f92f5f..3590808 100644 --- a/modele/rapport.tex +++ b/modele/rapport.tex @@ -17,7 +17,7 @@ \nocite{*} % Commande pour ajouter un lien -\newcommand{\link}[1]{\href{#1}{\texttt{\textcolor{blue}{\ul{#1}}}}} +\newcommand\link[1]{\href{#1}{\texttt{\textcolor{blue}{\ul{#1}}}}} \begin{document} \maketitle diff --git a/rapstage.cls b/rapstage.cls index ff499a2..026847d 100644 --- a/rapstage.cls +++ b/rapstage.cls @@ -10,7 +10,7 @@ \newif\ifoption@n \DeclareOption{n}{\option@ntrue} -\newcommand{\@student}{Étudiant} +\newcommand\@student{Étudiant} \ProcessOptions \ifoption@code @@ -20,11 +20,11 @@ \fi \ifoption@f % Mode féminin - \renewcommand{\@student}{Étudiante} + \renewcommand\@student{Étudiante} \fi \ifoption@n % Mode neutre - \renewcommand{\@student}{Étudiant·e} + \renewcommand\@student{Étudiant·e} \fi % Encodage @@ -48,75 +48,76 @@ \RequirePackage[a4paper,top=35mm,bottom=33mm,left=5cm,right=5cm]{geometry} % Style de bibliographie -\addto{\extrasfrench}{\renewcommand{\refname}{\hspace{4em}Bibliographie}} +\newcommand\@bib{Bibliographie} +\renewcommand\frenchrefname{\hspace{4em}\@bib} \bibliographystyle{unsrt} % Auteur -\newcommand{\me@unstarred}[3]{ +\newcommand\me@unstarred[3]{ \gdef\@mef{#1} % first name \gdef\@mel{#2} % last name \gdef\@mail{mailto:#3} % mail } -\newcommand{\me@starred}[2]{ +\newcommand\me@starred[2]{ \gdef\@mef{#1} % first name \gdef\@mel{#2} % last name \gdef\@mail{} % mail } -\newcommand{\me}{\@ifstar{\me@starred}{\me@unstarred}} -\newcommand{\@mef}{Alice} -\newcommand{\@mel}{Dubois} -\newcommand{\@mail}{mailto:alice.dubois@example.com} +\newcommand\me{\@ifstar{\me@starred}{\me@unstarred}} +\newcommand\@mef{Alice} +\newcommand\@mel{Dubois} +\newcommand\@mail{mailto:alice.dubois@example.com} % Titre -\renewcommand{\title}[1]{\gdef\@title{#1}} -\renewcommand{\@title}{TITRE DU RAPPORT} +\renewcommand\title[1]{\gdef\@title{#1}} +\renewcommand\@title{TITRE DU RAPPORT} % Date \newcount\lastyear \lastyear=\year \advance\lastyear by -1 -\renewcommand{\date}[1]{\gdef\@date{#1}} -\renewcommand{\@date}{\the\lastyear{}/\the\year{}} +\renewcommand\date[1]{\gdef\@date{#1}} +\renewcommand\@date{\the\lastyear{}/\the\year{}} % Tuteur pédagogique -\newcommand{\tuteurpedago@unstarred}[2]{ +\newcommand\tuteurpedago@unstarred[2]{ \gdef\@tpn{#1} % nom \gdef\@tpm{mailto:#2} % mail } -\newcommand{\tuteurpedago@starred}[1]{ +\newcommand\tuteurpedago@starred[1]{ \gdef\@tpn{#1} % nom \gdef\@tpm{} % mail } -\newcommand{\tuteurpedago}{ +\newcommand\tuteurpedago{ \@ifstar{\tuteurpedago@starred}{\tuteurpedago@unstarred}} -\newcommand{\@tpn}{John \textsc{Doe}} -\newcommand{\@tpm}{mailto:john.doe@example.com} +\newcommand\@tpn{John \textsc{Doe}} +\newcommand\@tpm{mailto:john.doe@example.com} % Tuteur entreprise -\newcommand{\tuteurentreprise@unstarred}[2]{ +\newcommand\tuteurentreprise@unstarred[2]{ \gdef\@ten{#1} % nom \gdef\@tem{mailto:#2} % mail } -\newcommand{\tuteurentreprise@starred}[1]{ +\newcommand\tuteurentreprise@starred[1]{ \gdef\@ten{#1} % nom \gdef\@tem{} % mail } -\newcommand{\tuteurentreprise}{ +\newcommand\tuteurentreprise{ \@ifstar{\tuteurentreprise@starred}{\tuteurentreprise@unstarred}} -\newcommand{\@ten}{Bob \textsc{Dupont}} -\newcommand{\@tem}{mailto:bob.dupont@example.com} +\newcommand\@ten{Bob \textsc{Dupont}} +\newcommand\@tem{mailto:bob.dupont@example.com} % Directeurice université -\newcommand{\directeur}[1]{\gdef\@directeur{#1}} -\newcommand{\@directeur}{Carole \textsc{Delporte}} +\newcommand\directeur[1]{\gdef\@directeur{#1}} +\newcommand\@directeur{Carole \textsc{Delporte}} % Sous-titre -\newcommand{\subtitle}[1]{\gdef\@subtitle{#1}} -\newcommand{\@subtitle}{Rapport de Stage de Master 2} +\newcommand\subtitle[1]{\gdef\@subtitle{#1}} +\newcommand\@subtitle{Rapport de Stage de Master 2} % Fichier de la bibliographie -\newcommand{\bibliofile}[1]{\gdef\@refile{#1}} +\newcommand\bibliofile[1]{\gdef\@refile{#1}} % Mise en page \RequirePackage{titlesec} @@ -137,7 +138,7 @@ \pagestyle{fancy} \fancyhf{} \cfoot{\makebox[\textwidth][c]{\thepage/\totalpages}} -\renewcommand{\headrulewidth}{0pt} +\renewcommand\headrulewidth{0pt} % Liens cliquable et métadonnées \RequirePackage{hyperref} @@ -157,7 +158,7 @@ % Figures \RequirePackage[font=it,labelsep=colon]{caption} -\addto{\captionsfrench}{\renewcommand{\figurename}{Illustration}} +\renewcommand\frenchfigurename{Illustration} % Listes \AtBeginDocument{\def\labelitemi{\scriptsize$\bullet$} @@ -165,7 +166,7 @@ \def\labelitemiii{\scriptsize$\bullet$} \def\labelitemiv{\scriptsize$\bullet$}} -\renewcommand{\maketitle}{ +\renewcommand\maketitle{ \begin{titlepage} \begin{center} \includegraphics[alt={Logo},height=27mm]{images/logo.png} @@ -231,26 +232,26 @@ % Permet d'ajouter la bibliographie \RequirePackage{etoolbox} -\newcommand{\@reference}{ +\newcommand\@reference{ \newpage - \addcontentsline{toc}{section}{\refname} + \addcontentsline{toc}{section}{\@bib} \bibliography{\@refile} \newpage \pagestyle{empty} } -\newcommand{\reference@unstarred}{\@reference} -\newcommand{\reference@starred}[1]{ +\newcommand\reference@unstarred{\@reference} +\newcommand\reference@starred[1]{ \patchcmd{\thebibliography}{\list}{#1 \\ \list}{}{} \@reference } -\newcommand{\reference}{\@ifstar{\reference@starred}{\reference@unstarred}} +\newcommand\reference{\@ifstar{\reference@starred}{\reference@unstarred}} % Annexe -\addto{\captionsfrench}{\renewcommand{\appendixname}{\hspace{4em}Annexe}} +\renewcommand\frenchappendixname{\hspace{4em}Annexe} % Souligne mieux les mots -\newcommand{\ul}[1]{\underline{\smash{#1}}} +\newcommand\ul[1]{\underline{\smash{#1}}} % Ne déborde pas sur la marge \AtBeginDocument{