My university has provided a template for writing the thesis. However, it only prints the bibliography in the end of the thesis.
I would like to print bibliography per chapter. Can you please help?
Thanks a lot. Regards
Your document class is based on report, so I assume your highest level of sectioning is \chapter. If you use the option refsection=chapter and add a \printbibliography at the end of each chapter you get a bibliography for each chapter separately.
\documentclass[british]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[style=authoryear, backend=biber, refsection=chapter]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\chapter{Lorem}
Lorem ipsum \autocite{sigfridsson} dolor \autocite{geer,worman}
\printbibliography[heading=subbibliography, title=\bibname\ for \chaptername~\thechapter]
\chapter{Dolor}
Lorem ipsum \autocite{sigfridsson} dolor \autocite{knuth:ct:a,pines}
\printbibliography[heading=subbibliography, title=\bibname\ for \chaptername~\thechapter]
\chapter{Sit}
Lorem ipsum \autocite{sigfridsson} dolor \autocite{geer,cicero,companion}
\printbibliography[heading=subbibliography, title=\bibname\ for \chaptername~\thechapter]
\end{document}
The MWE uses heading=subbibliography so that the heading is typeset as a \section subordinate to the current \chapter.
Edit your MWE shows at least one problem: You have refsegment=chapter. But you should be using refsection=chapter.
refsections keep their contents completely local and completely independent of other refsections, which means that the numbers in the bibliography restart for each chapter. refsegments basically only add an attribute to entries and are usually only used to filter bibliographies: If you use refsegments, all entries still belong to one global list.
You can find a bit about the differences between refsection and refsegment in the biblatex documentation (§3.7.4 and §3.7.5), in Reset the counter of references in each chapter and Multiple bibliographies, multiple styles, discontiguous regions.
biblatex. – Bernard Sep 28 '18 at 14:32chapterbibpackage that is created for this usage. See how in the related (if not a duplicate) here: https://tex.stackexchange.com/questions/333617/how-to-use-chapterbib-package-syntax – koleygr Sep 28 '18 at 14:45.zipfiles. ... – moewe Sep 28 '18 at 20:58