Discussion:
Chapterbib & natbib
Nuno S.L.S. Ferreira
2007-03-27 18:33:42 UTC
Permalink
Hi *

Just started to learn Latex few days ago, to write my PhD thesis, with
this GUI TexNic. This is just a great tool ;-)

After reading some info, I choose the book document class to write the
thesis. Moreover, I read about using command \include{} in order to
have chapters in external files, which makes things easier for big
chapters.

After that, I built a .bib repository, using JabRef tool.

Now I'm trying to understand how I could have a bibliographic section
at the end of each chapter, though I'm having some problems getting it
right. For that, I'm using the package chapterbib along with natbib to
handle the citations as author-year references in the text.

In my usepackage section, I added the following:

\usepackage[sectionbib,sort]{natbib} % natural sciences citations/ref.
\usepackage{chapterbib} % multiple bibliographies in one document

Think this is correct for what I want. The problem comes later.

In each external chapter files (presently working with only one file
for testing purposes), I added the following accordingly with natbib
tips at the end of the chapter file:

\bibliographystyle{plainnat}
\bibliography{jabref}

But I never get a final document with a bibliographic section at the
end, neither the citations are substituted in the text (using the
cimmand \citep{key} )

The TexNic log file says:
Package natbib Warning: Citation `Correia2006' on page 3 undefined on
input line 16.
No file chapter1.bbl.
[...snip...]
Package natbib Warning: There were undefined citations.

Can you guys give any hint? I hit the F7 key (build output) several
times, at least 4 or 5, but I'm not getting there. For sure it's a
newbie question ...

Cheers,
Nuno
michael nganda
2007-03-30 12:58:40 UTC
Permalink
Hi,

The easiest way I know without any complications is to
write each chapter as an independent document; it is a
bit cumbersome since you have to have the preamble for
each chapter but it works well. After generating all
these independent pdf chapters with the bib at the end
of each you then merge them together using "PDFill PDF
Editor". This you can download from the net and the
tools for merging, splitting, etc are free! Try it.

Michael.
Post by Nuno S.L.S. Ferreira
Hi *
Just started to learn Latex few days ago, to write
my PhD thesis, with
this GUI TexNic. This is just a great tool ;-)
After reading some info, I choose the book document
class to write the
thesis. Moreover, I read about using command
\include{} in order to
have chapters in external files, which makes things
easier for big
chapters.
After that, I built a .bib repository, using JabRef
tool.
Now I'm trying to understand how I could have a
bibliographic section
at the end of each chapter, though I'm having some
problems getting it
right. For that, I'm using the package chapterbib
along with natbib to
handle the citations as author-year references in
the text.
\usepackage[sectionbib,sort]{natbib} % natural
sciences citations/ref.
\usepackage{chapterbib} % multiple bibliographies in
one document
Think this is correct for what I want. The problem
comes later.
In each external chapter files (presently working
with only one file
for testing purposes), I added the following
accordingly with natbib
\bibliographystyle{plainnat}
\bibliography{jabref}
But I never get a final document with a
bibliographic section at the
end, neither the citations are substituted in the
text (using the
cimmand \citep{key} )
Package natbib Warning: Citation `Correia2006' on
page 3 undefined on
input line 16.
No file chapter1.bbl.
[...snip...]
Package natbib Warning: There were undefined
citations.
Can you guys give any hint? I hit the F7 key (build
output) several
times, at least 4 or 5, but I'm not getting there.
For sure it's a
newbie question ...
Cheers,
Nuno
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

Loading...