You may want to try using the chapterbib
package. (There's also the bibunits
package, but since you state that your chapters are contained in separate .tex
files, it may be easiest to proceed with the chapterbib
package.) This package is designed to create bibliographies separately for each chapter, regardless of the number of bib files you have.
The following MWE demonstrates the usage of this package with a very basic setup. It loads the packages natbib
, chapterbib
, hyperref
, and backref
as well as the bibliography style file plainnat.bst
. The file demo.bib
contains:
@article{abadir:1993a,
author = "Karim M. Abadir",
title = "{OLS} bias in a nonstationary autoregression",
journal = "Econometric Theory",
year = 1993,
volume = 9,
number = 1,
pages = "81--93"
}
The "chapter" files demo-1.tex
, demo-2.tex
, and demo-3.tex
each contain (they're identical):
\chapter{Hello}
\citet{abadir:1993a}\clearpage\citet{abadir:1993a}
\bibliographystyle{plainnat}
\bibliography{demo}
(Note that each chapter issues two citation calls.) The overall driver file, demo.tex
, contains:
\documentclass{book}
\usepackage{natbib,chapterbib,hyperref,backref}
\begin{document}
\include{demo-1}
\include{demo-2}
\include{demo-3}
\end{document}
Run (pdf)latex twice on demo.tex
; run bibtex once each on demo1.tex
, demo2.tex
, and demo3.tex
; and run (pdf)latex twice more on demo.tex
. The compiled document, demo.pdf
, should contain 11 pages (4 pages each for chapters 1 and 2, and 3 pages for chapter 3). The typeset bibliography of chapter 3, on page 11, looks like this:
The back references for the bibliographies of chapters 1 and 2 should be "pages 1, 2" and "pages 5, 6", respectively.
You can, of course, adjust the appearance of the back references; see the manual of the backref
package for details.
As you're "on a deadline", switching to biblatex
is somewhat risky. Instead, use multibib
as shown in the following MWE (it works with the unsrt
style). Optionally, use the resetlabels
package option.
Note: Unless you're using tools like latexmk
, compile the example with
(pdf)latex <filename>
bibtex <filename>
bibtex further
(pdf)latex <filename>
(pdf)latex <filename>
using the command line (standard compiling routines of editors like TeXnicCenter won't do).
\documentclass{report}
\usepackage[resetlabels]{multibib}
\newcites{further}{Further Reading}
\usepackage{etoolbox}
\makeatletter
\newcommand{\sectionbiblio}{%
\patchcmd{\std@thebibliography}{\chapter*}{\section*}{}{}
}
\makeatother
\usepackage{filecontents}
\begin{filecontents}{biblio.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
\end{filecontents}
\begin{document}
Some text \cite{A01,B02}.
\nocitefurther{C03}
\bibliographystyle{unsrt}
\bibliography{biblio}
\sectionbiblio
\bibliographystylefurther{unsrt}
\bibliographyfurther{biblio}
\end{document}
Best Answer
It seems that you want chapterwise bibliographies.
This can be done with
bibunits
which works together withnatbib
. Just put\putbib
where you want the chapter bibliography and add the following to the preamble.This makes sure that you can use
\putbib
in the\section
s;\bibliography*{\jobname}
specifies the.bib
source file while\bibliographystyle*{plainnat}
specifies the bibliography style (.bst
file)You can also use
biblatex
,biblatex
has anatbib
compatibility mode (see § 3.7.9, p.88, of the documentation). For more about multiple bibliographies, see §3.6.4 and 3.11.3 of thebiblatex
documentation. Put this in your preamblebut do not load
natbib
or other citation packages. Withrefsection=section
every\section
is a refsection in its own right, so you can put\printbibliography[heading=subbibliography]
where you want the bibliography for that particluar section to go.