3

I'm using Chapterbib to write my bibliography separately after each chapter. It does work but bibtex is still giving me plenty of errors and warnings:

Illegal, another \bibstyle command
I'm skipping whatever remains of this command.

Illegal, another \bibdata command
I'm skipping whatever remains of this command.

Warning--I didn't find a database entry for "druhy".

etc. Basically I'm getting 2 error messages per file and 1 warning message per citation. Since the final publication will be quite large, I'd rather not have tens of errors and hundreds of warnings when I compile it all together. Is there any way around it? I'd be happy with just silencing these particular error and warning messages. I did follow the instructions for the build order (latex, bibtex on individual files, latex, latex).

Minimal working example:

Test.tex

\documentclass{article}
\usepackage{chapterbib}
\begin{document}
\include{chapter1}
\include{chapter2}
\end{document}

Chapter1.tex

blabla \cite{prvni}
\bibliographystyle{plain}
\bibliography{jedna}

Chapter2.tex

bleble \cite{druhy}
\bibliographystyle{plain}
\bibliography{dva}

jedna.bib

@article{prvni,
author = "A. Aa",
title = "blahblah",
year = "2000",
journal = "tojefuk"
}

dva.bib

@article{druhy,
author = "B. Bb",
title = "blehbleh",
year = "2001",
journal = "tojejedno"
}
lockstep
  • 250,273
Michal
  • 31

1 Answers1

3

The problem is due to a build profile in TeXnicCenter, which included a run of bibtex on the main file. Turning off this profile removes the error messages.

Andrew Swann
  • 95,762