Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Multiple bibliographies

I'm trying to write a book with references in each chapter and I would like to use chapterbib and natbib packages.

I can't really understand how to make things work.

My book is organized as follows:

  • settings.tex which contains all the packages, commands etc that I use in my document (among the others: \usepackage{natbib}, \usepackage{chapterbib})

  • Chapter_01.tex (in which I'd like the references stored in references_01.bib)

  • Chapter_02.tex (in which I'd like the references stored in references_02.bib).

I then have a Book.tex file that is made like this:






What should I put at the end of each chapter in order to get the references and how should I compile the document to produce a pdf document?

share|improve this question
@lockstep: using natbib or not is not the same ... –  Herbert Sep 28 '12 at 15:21
@Herbert Comparing Gonzalo's and your answer the only difference is that you also recommend bibtex <file>. Maybe the linked question could be rewritten to be more general. –  lockstep Sep 28 '12 at 15:24
I have deleted your "Thank you". Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. And accepting of course (see your accepting rate of 75%). –  Kurt Sep 28 '12 at 15:28
add comment

marked as duplicate by lockstep, zeroth, Tom Bombadil, diabonas, Paul Gaborit Sep 28 '12 at 21:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 1 down vote accepted

your structure is correct. You have to run bibtex for the document and each chapter:

pdflatex <file>
bibtex <file>
bibtex Chapter_01
bibtex Chapter_02
pdflatex <file>
pdflatex <file>

The first bibtex run will report an error multiple bibdata commands, which is not of interest, ignore it.

share|improve this answer
Herbert thanks, can you tell me how to include the specific bibliography at the end of each chapter? I think that I make some mistakes there, because I use bibtex separately for each chapter... –  lucacerone Sep 28 '12 at 15:27
Here you'll find example documents: mirrors.ctan.org/info/examples/LaTeX-Bib/02-03-1.ltx2 and also 02-03-2.ltx2 and 02-03-2.ltx3 –  Herbert Sep 28 '12 at 15:33
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.