I want to generate the bibliography for each section, and have it at the end of the section. When I do this at the moment it generates the full bibliography and places it after each section.
Is there a way that this can be done?
The advice here says
"The chapterbib package provides an option sectionbib that puts the bibliography in a \section* instead of \chapter*, something that makes sense if there is a bibliography in each chapter. This option will not work when natbib is also loaded; instead, add the option to natbib. "
I don't understand what this means, and I've tried experimenting with what I thought the options are. Specifically, what does "add the option to natbib" mean?
My subsequent question (which evolved after my first one was solved) is to not have pagebreaks between the references, and the next section.
Thank you for your help.
If you want to cite multiple references within the same brackets, you just need to separate the labels with a comma. In addition, you'll need to load the cite package which will automatically check if your labels are part of an ordered list and reduce the list by replacing all the “in-betweens” with a hyphen.
You can reference labels in LaTeX by placing a \label{key} command behind a sectioning command, chapter, or image. You should then assign a unique key to it. Following this, you can use \ref{key} and \pageref{key} commands to reference them.
Separate each chapter by going to Insert --> Section Break. Go to Tools --> EndNote --> Configure Bibliography making sure the style is set to the one you just modified, such as APA 6th Bibliography. The Word document will automatically update the references and display them after each chapter.
In addition to
\usepackage[sectionbib]{natbib}
\usepackage{chapterbib}
You will have to put each section in a separate .tex file which you then \include
. You will have to run bibtex
on each .tex file separately.
N.B. Using \input
rather than \include
avoids unwanted page breaks, but it will not create the .aux file that BibTeX needs to do its work. I looked at the definition of \include
, and I don't see how to disable the page-breaking function except by disabling \clearpage
entirely. You could try
\let\originalclearpage=\clearpage
\def\clearpage{\relax}
right after your \begin{document}
, but you may have to put some \originalclearpage
in by hand.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With