I'm making a document that has a bibliography at the end of each section and a global bibliography at the end. Logically, the bibliography at the end of each section should only contain citations that were referenced in that section. The global bibliography should contain every reference that is cited throughout the document. This is my code:
\documentclass[10pt]{article}
\usepackage{bibentry}
\usepackage[sectionbib]{chapterbib}
\usepackage{natbib}
\begin{document}
\bibliographystyle{plainnat}
\begin{cbunit}
\section{something}
First discuss \cite{goossens93}.
\bibliographystyle{plainnat}
\bibliography{mwecitations}
\end{cbunit}
\begin{cbunit}
\section{something else}
Now discuss \cite{rothstein2011unemployment} and \cite{fujita2010economic}.
\bibliographystyle{plainnat}
\bibliography{mwecitations}
\end{cbunit}
\renewcommand{\refname}{Global bibliography}
\bibliography{mwecitations}
\end{document}
This outputs:
The citations file mwecitations.bib is:
@book{goossens93,
author = "Frank Mittelbach and Michel Goossens and Johannes Braams and David Carlisle and Chris Rowley",
title = "The {LaTeX} Companion",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@article{fujita2010economic,
title={Economic effects of the unemployment insurance benefit},
author={Fujita, Shigeru},
journal={FRB Phil. Business Review},
volume={4},
year={2010}
}
@article{rothstein2011unemployment,
title={Unemployment insurance and job search in the {Great Recession}},
author={Rothstein, Jesse},
journal={NBER},
volume={w17534},
year={2011}
}
Why are all citations from the entire document included in the bibliography that follows each section? The document should look like this (pardon my less-than-elegant edits).
I compile these files with Xelatex and Biblatex. From the documentation, I think I'm using cbunit correctly.


\include. You could try bibunits instead, but I would suggest to use biblatex/biber. – Ulrike Fischer Sep 01 '17 at 19:16\include: If you can’t use\include... , then you can use\begin{cbunit} ... \end{cbunit}(for everything in one file)." Am I interpreting this incorrectly? – Michael A Sep 01 '17 at 19:26