I'm working on a document that requires a few independent bibliographies. Some of the entries can be found in more than one bibliography. I'm using a documentclass based on memoir and using the natbib package and I'm compiling with xelatex (xelatex-bibtex-xelatex-xelatex).
I work in different documents that I \include and all seemed to work perfectly when I compiled each document on it's own using the main file and commenting out the other parts. It doesn't really work when I \include them all however. All the files are in the same folder including the bib files.
The first bibliography works fine but I can't get the second and subsequent ones to work properly. References aren't being recognized and only the items found in the first bibliography are recognized (the first bibliography also gets printed a second time instead of printing a second empty one).
I guess only the first bib file is considered when I compile? Should I call different bib files another way? I'm a bit lost.
Here is a minimal example!
Code: Select all
%This is the main file
\documentclass{memoir}
\usepackage{natbib}
\bibliographystyle{plainnat}
\begin{document}
\include{TEST1}
\include{TEST2}
\end{document}
Code: Select all
%TEST1.tex
\chapter{First chapter}
daijdwoadwa dawodwaoijdawoi. \citep{Knu86}
\bibliography{bibtest1}
Code: Select all
%TEST2.tex
\chapter{2 chapter}
daijdwoadwa dawodwaoijdawoi. \citep{MDDELCC2012}
\bibliography{bibtest2}
Code: Select all
%bibtest1.bib
@book{Knu86,
author = {Knuth, Donald E.},
year = {1986},
title = {The \TeX book},
}
Code: Select all
%bibtest2.bib
@MANUAL{MDDELCC2012,
title = {fafwafwafwafwa},
year = 2012,
author={fafafwfafwa},
organization = {afsafafwafwa},
}