From 84249d4dc81711f62063f22d3b65c6bb43d92223 Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Mon, 15 Apr 2024 16:11:05 +0200 Subject: [PATCH] Fix biblatex --- main.tex | 19 +++++++++---------- biblio/biblio.bib => references.bib | 0 thesis.cls | 4 ++-- 3 files changed, 11 insertions(+), 12 deletions(-) rename biblio/biblio.bib => references.bib (100%) diff --git a/main.tex b/main.tex index 985a685..59e0bb1 100644 --- a/main.tex +++ b/main.tex @@ -1,8 +1,16 @@ %% Template +\PassOptionsToPackage{backref=true, doi=false, style=ieee}{biblatex} + \documentclass{thesis} \geometry{inner=30mm, outer=25mm, top=30mm, bottom=25mm} %% Content +\addbibresource{references.bib} +\AtEveryBibitem{\clearfield{day}} +\AtEveryBibitem{\clearfield{location}} +\AtEveryBibitem{\clearfield{month}} +\AtEveryBibitem{\clearfield{series}} + \hypersetup{ % pdfauthor = {XYZ}, % pdftitle = {Th\`{e}se de doctorat de XYZ}, @@ -63,16 +71,7 @@ \input{./Conclusion/conclusion} \clearemptydoublepage -\phantomsection % To have a correct link in the table of contents -\addcontentsline{toc}{chapter}{Bibliography} - -% nocite: Pour citer la totalit\'{e} des r\'{e}f\'{e}rences contenues dans le fichier biblio -% nocite: In order to cite all the references included biblio -\nocite{*} -\printbibliography[heading=primary,keyword=primary] -\newpage -\nocite{*} -\printbibliography[heading=secondary,keyword=secondary] +\printbibliography[heading=bibintoc] \clearemptydoublepage \cleartoevenpage[\thispagestyle{empty}] % To have the back cover on an even page diff --git a/biblio/biblio.bib b/references.bib similarity index 100% rename from biblio/biblio.bib rename to references.bib diff --git a/thesis.cls b/thesis.cls index 7dd8ccc..be3f19f 100644 --- a/thesis.cls +++ b/thesis.cls @@ -159,7 +159,7 @@ \RequirePackage[hyperref,backend=biber, % Exemples de styles: alphabetic, ieee, nature, numeric, verbose-trad1 (en utilisant \footcite{}). % https://www.overleaf.com/learn/latex/Biblatex_bibliography_styles - style=verbose-trad1 + %style=verbose-trad1 ]{biblatex} % Style biblatex avec gestion des mots clés des entrées bibliographiques @@ -178,7 +178,7 @@ %\DeclareFieldFormat{pages}{page(s): #1} % page(s) en toutes lettres, si on veut... % Locutions latines en italique (comme ibid, loc.cit. , etc.) Merci à Josquin Debaz -\renewcommand{\mkibid}[1]{\emph{#1}} +%\renewcommand{\mkibid}[1]{\emph{#1}} % Et pour mettre le in en italique dans la reférence biblio (merci encore à Josquin Debaz) \DefineBibliographyStrings{english}{%