fix bib, with ability to add a preface
This commit is contained in:
parent
86455999fe
commit
207ea64ecb
1 changed files with 9 additions and 2 deletions
11
rapstage.cls
11
rapstage.cls
|
@ -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}}}
|
||||
|
|
Loading…
Reference in a new issue