[Tex/LaTex] Is it possible to have back references after each chapter with a single main.bib file


I'm using LaTeX + BibTeX to write my dissertation. I have one separate .tex file for each chapter. And I'll generate one bibliography for each chapter. But all the references are from the same file (main.bib).

So, there are many situations in which different chapters will cite the same reference. Thus, one reference can appear more than once in the bibliographies of the whole dissertation (but in different chapters). I'd like to use back references from the hyperref package. I'm just wondering whether it would be possible to do so?

% chapter 1
[1]. A and B, Nature, 1991. 15, 20.

% chapter 2
[3]. A and B, Nature, 1991. 55, 67.

Best Answer

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:

    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):


(Note that each chapter issues two citation calls.) The overall driver file, demo.tex, contains:


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:

enter image description here

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.

Related Question