fix bib, with ability to add a preface

This commit is contained in:
Mylloon 2024-07-24 12:54:22 +02:00
parent 86455999fe
commit 207ea64ecb
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -48,7 +48,7 @@
\RequirePackage[a4paper,top=35mm,bottom=33mm,left=5cm,right=5cm]{geometry}
% Style de bibliographie
\addto{\extrasfrench}{\renewcommand\refname{Bibliographie}}
\addto{\extrasfrench}{\renewcommand\refname{\hspace{4em}Bibliographie}}
\bibliographystyle{unsrt}
% Auteur
@ -230,7 +230,8 @@
}
% Permet d'ajouter la bibliographie
\newcommand{\reference}{
\RequirePackage{etoolbox}
\newcommand{\@reference}{
\newpage
\addcontentsline{toc}{section}{\refname}
\bibliography{\@refile}
@ -238,6 +239,12 @@
\newpage
\pagestyle{empty}
}
\newcommand{\reference@unstarred}{\@reference}
\newcommand{\reference@starred}[1]{
\patchcmd{\thebibliography}{\list}{#1 \\ \list}{}{}
\@reference
}
\newcommand{\reference}{\@ifstar{\reference@starred}{\reference@unstarred}}
% Souligne mieux les mots
\newcommand{\ul}[1]{\underline{\smash{#1}}}