[Tex/LaTex] Question marks instead of citations when using \include

bibliographiesnatbib

I have been struggling a lot with this problem now. Hopefully somebody can help me.
I want to create a document with chapterwise bibliography, so I use \usepackage{chapterbib} together with \usepackage[sectionbib]{natbib}:

\documentclass{report}

\usepackage{chapterbib}
\usepackage[sectionbib]{natbib}

\begin{document}

\include{chapter1}

\end{document}

where the file chapter1.tex (in the same folder) is

\chapter{Chapter 1}
this is chapter 1~\cite{Article1}

\bibliographystyle{plain}
\bibliography{references}

and the file references.bib (also in the same folder) reads

@article{Article1,
    author = {Author1},
    journal = {J. Art.},
    pages = {1906--1911},
    title = {{This is the first article}},
    volume = {12},
    number = {3},
    year = {2012}
}

While the second citation (Article2) is displayed as expected, there is a question mark where the first citation should be: https://www.dropbox.com/s/zhtuz9nw0otuw6i/Include.pdf?dl=0

What am I doing wrong?

Best Answer

You should use \include with all the chapters and run bibtex separately on each chapter to generate the separate bibliographies, one for each chapter.

Related Question