My question is similar to that of: Bibliographies as a numbered sections in each chapter But the proposed solution doesn't work for me.
I'm trying to write my thesis manuscript, I use Overleaf, \documentclass{book}, \usepackage{biblatex} and \include{Chapter}. The bibliography file is mainb.bib but If necessary I can create a .bib file for each chapter.
Could someone please help me to put the bibliography of each chapter as a section at the end of each chapter, change the name "Bibliography" to "Références," and put the hyperlinks and page numbers in different colors as in the following example picture:
The first part shows that the "Référence" section is displayed in the table of contents
The second part shows section 3 "Référence" in Chapter 2.
This is my attempt:
\documentclass[12pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{fancyhdr}
\usepackage{amssymb}
\usepackage[dvipsnames]{xcolor}
\usepackage{hyperref}
\usepackage{booktabs}
\usepackage{decorule}
\usepackage[french]{minitoc}
\mtcselectlanguage{french}
\usepackage[language=french,style=authoryear,sorting=none,refsection=section]{biblatex}
\addbibresource{mainb.bib}
\begin{document}
\setcounter{mtc}{5}
\part{titre de la partie 1}
\include{Chapters/Chapter1}
\setcounter{mtc}{6}
\part{Titre de la partie 2}
\include{Chapters/Chapter2}
The file chapter1.tex contains :
\section{Introduction}
Text \cite{cite1}.
\cleardoublepage
\section{Références}
\printbibliography
I tried also in chapter1.tex:
\begin{refsection}
\printbibliography % or \addbibresource
\end{refsection}
it doesn't give me the expected result.
Thank you for your Help!