I am running the following bibliography setup:
\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
\addbibresource{Chap1.bib}
With Chap1.bib including all references of the book. However, I am currently only able to print a single bibliography at the end of my thesis and would like to produce separate bibliographies for each chapter, replacing the single one at the end.
I am more of a starter with LaTex and not able to adapt the code accordingly even though I am trying so for a few days now. Help would be much appreciated :)
\documentclass[
11pt,
english,
onehalfspacing,
nolistspacing,
liststotoc,
toctotoc,
headsepline]{MastersDoctoralThesis}
\usepackage[utf8]{inputenc} characters
\usepackage[T1]{fontenc}
\usepackage{awesomebox}
\usepackage{lmodern}
\usepackage{framed}
\definecolor{shadecolor}{named}{Snow2}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[
hyperref=auto,
mincrossrefs=999,
backend=biber,
sorting = none,
style=numeric-comp,
firstinits=true,
clearlang=true,
refsegment=chapter,
defernumbers=true
]{biblatex}
\addbibresource{Chap1.bib}
\geometry{
paper=a4paper,
inner=2.5cm,
outer=3.8cm,
bindingoffset=.5cm,
top=1.5cm,
bottom=1.5cm,
showframe,}
\begin{document}
\frontmatter
\pagestyle{plain}
\begin{titlepage}
\begin{center}
\end{center}
\end{titlepage}
\pagestyle{thesis}
\include{Chapters/Chapter1}
\printbibliography[heading=bibintoc]
\end{document}
The MastersDoctoralThesis.cls file has not been changed and was downloaded from http://latextemplates.com/template/masters-doctoral-thesis
Citation example \cite{}, \citep{} using .bib file (Chap1.bib):
@article{giguere2019increased,
title={Increased vulnerability of nigral dopamine neurons after expansion of their axonal arborization size through D2 dopamine receptor conditional knockout},
author={Gigu{\`e}re, Nicolas and Delignat-Lavaud, Beno{\^\i}t and Herborg, Freja and Voisin, Aurore and Li, Yuan and Jacquemet, Vincent and Anand-Srivastava, Madhu and Gether, Ulrik and Giros, Bruno and Trudeau, Louis-{\'E}ric},
journal={PLoS genetics},
volume={15},
number={8},
pages={e1008352},
year={2019},
publisher={Public Library of Science}
}
Chapter1.tex:
\chapter{Parkinson's Disease}
\label{Chapter1}
\newcommand{\keyword}[1]{\textbf{#1}}
\newcommand{\tabhead}[1]{\textbf{#1}}
\newcommand{\code}[1]{\texttt{#1}}
\newcommand{\file}[1]{\texttt{\bfseries#1}}
\newcommand{\option}[1]{\texttt{\itshape#1}}
\section{thank}
you for your patience \citep{giguere2019increased}.

biblatex. Have a look atrefsections (in particular the optionrefsection=chapter,orrefsection=section,may be interesting for you). Note that you'll have a much smoother experience withrefsections if you are using Biber instead of BibTeX. With BibTeX you'll have to run BibTeX on one.auxfile for eachrefsection. With Biber you still run Biber only on the main.bcffile. – moewe Jun 19 '20 at 13:34mincrossrefs=999, backend=biber, sorting = none, % to have references appear as they are cited style=numeric-comp, firstinits=true, %added new clearlang=true, %added new refsegment=chapter, defernumbers=true ]{biblatex} with: \printbibliography[heading=subbibliography] – poebelchen Jun 19 '20 at 15:16
.blgfile (the log of the Biber run) and the relevant bits of the.logfile. Such things are really hard to investigate without a proper example and log infos and double hard if there are only code snippets in the comments. – moewe Jun 19 '20 at 15:18MastersDoctoralThesisis one of the many LaTeX templates one can find on the web today. It is available in many different (outdated and not so outdated) versions on various sites. Can you please point us to the specific version you used. If you haven't yet fully committed to the class you may want to consider dropping it and using a more conventional setup. In my experiencesMastersDoctoralThesisworks OK-ish as long as you don't need to change a lot, but then it usually falls apart quickly. Older versions also had 'interesting' coding. – moewe Jun 20 '20 at 07:00article,reportorbook), the KOMA-Script classes (scrartcl,scrreprtorscrbookin analogy to the three standard classes) ormemoir(which has a book and article mode). KOMA-Script classes andmemoiroffer some nice customisation features out of the box for which the standard classes need additional code/packages. ... – moewe Jun 20 '20 at 09:25articlefor shorter works (essays, research papers), report for medium length works (technical reports, theses) and book for long books (long theses). See also https://tex.stackexchange.com/q/782/35864 and https://tex.stackexchange.com/q/36988/35864 – moewe Jun 20 '20 at 09:28refsections work w/ standard classes). There is a chance we could debug this issue even withMastersDoctoralThesisbut in any case it is crucial that we get to see a compilable example document (that we can run on our machines) that reproduces the issue. (As mentioned above, the code that is currently in the question is a step forward, but unfortunately not sufficient. There are many guides to writing an MWE, one of which is http://tex.meta.stackexchange.com/q/228/ on this site.) – moewe Jun 20 '20 at 09:58Chapters/Chapter1.tex. So if you could add some dummy content resembling the file content directly where you have\include{Chapters/Chapter1}in your code, we might get there. Note that you must at least\citeone entry fromChap1.bibin the dummy text, otherwise we won't see any bibliography output. – moewe Jun 20 '20 at 10:15\iinDelignat-Lavaud, Beno{\^\i}tcould be problematic. Replace it withDelignat-Lavaud, Beno{\^{i}}tor even betterDelignat-Lavaud, Benoît. – moewe Jun 20 '20 at 10:26%that would hide a closing brace and thus cause an error that might have been just a copy-and-paste issue. Note also that with your setting you should say\autociteor\parenciteinstead of\citep. I also get an error about the colourSnow2being undefined, so I removed\definecolor{shadecolor}{named}{Snow2}in my tests. – moewe Jun 20 '20 at 10:30