1 Tokinos

## Bibliography At The End Of Each Chapter Latex

The biblatex package offers great flexibility while creating bibliographies. One of the things the package handles beautifully and can be achieved with little effort is the subdivision of a bibliography into multiple parts for per chapter/section bibliographies as well as by type or other patterns.

##### Per chapter/section bibliographies

Biblatex implements the environment to collect all citation for a chapter or section and print them at end of a chapter, section or document. Here is an example for section-wise bibliographies. It works similarly for chapters. The following code illustrates how to use the environment.

% Preamble \usepackage[sorting=none, backend=biber]{biblatex} % load the package \addbibresource{references.bib} % add a bib-reference file % Document \section{First} \begin{refsection} % refsection environment Citation section \thesection: \cite{knuth1986texbook} % collect citations \printbibliography[heading=subbibliography] % print section bibliography \end{refsection}

The following screenshot was taken from the PDF output of the complete minimal working example below. It generates section-wise bibliographies.

\documentclass{article} \usepackage[sorting=none, backend=biber]{biblatex} \usepackage{filecontents} \begin{filecontents}{references.bib} @book{knuth1986texbook, keywords = {book}, title={The texbook}, author={Knuth, D.E. and Bibby, D.}, volume={1993}, year={1986}, publisher={Addison-Wesley} } @article{knuth1977fast, keywords = {article}, title={Fast pattern matching in strings}, author={Knuth, D.E. and Morris Jr, J.H. and Pratt, V.R.}, journal={SIAM journal on computing}, volume={6}, number={2}, pages={323--350}, year={1977}, publisher={SIAM} } \end{filecontents} \addbibresource{references.bib} \begin{document} \section{First} \begin{refsection} Citation section \thesection: \cite{knuth1986texbook} \printbibliography[heading=subbibliography] \end{refsection} \section{Second} \begin{refsection} Citation section \thesection: \cite{knuth1977fast} \printbibliography[heading=subbibliography] \end{refsection} \end{document}

The biblatex package documentation has examples on how to insert bibliographies for every chapter at the end of the document.

##### Type-/keyword-specific bibliographies

Subdividing the bibliography by bib-entry type (book, article, online, etc.) or by keywords is handled slightly differently by the package, but fortunately, the solution is similarly simple.

Subdividing by bib-entry type

The command takes the optional argument , defining bib-types to include and , defining bib-types to exclude. Multiple bib-entry types can be combined for inclusion and exclusion. Suppose, for example, we would like to have three bibliographies, one for books, one for articles, and one for the everything else:

\printbibliography[title={Book references},type=book] \printbibliography[title={Article references},type=article] \printbibliography[title={Other references}, nottype=article, nottype=book]

In the following example, I am using three references by Donald E. Knuth, a book, an article and an inproceedings type.

\documentclass{report} \usepackage[sorting=none, backend=biber]{biblatex} \usepackage{filecontents} \begin{filecontents}{references.bib} @book{knuth1986texbook, title={The texbook}, author={Knuth, D.E. and Bibby, D.}, volume={1993}, year={1986}, publisher={Addison-Wesley} } @article{knuth1977fast, title={Fast pattern matching in strings}, author={Knuth, D.E. and Morris Jr, J.H. and Pratt, V.R.}, journal={SIAM journal on computing}, volume={6}, number={2}, pages={323--350}, year={1977}, publisher={SIAM} } @inproceedings{knuth1970simple, title={Simple word problems in universal algebras}, author={Knuth, D.E. and Bendix, P.B.}, booktitle={Computational problems in abstract algebra}, volume={263}, pages={297}, year={1970} } \end{filecontents} \addbibresource{references.bib} \begin{document} See \cite{knuth1986texbook} and \cite{knuth1977fast} and \cite{knuth1970simple}. \printbibliography[title={Book references},type=book] \printbibliography[title={Article references},type=article] \printbibliography[title={Other references}, nottype=book, nottype=article] \end{document}

Subdividing by keywords

In case you intend to subdivide your bibliography by another pattern than type, you may use the “keywords”-field of bib-entries for subdivision. For example, to subdivide the bibliography into “own” and other references, use the keyword “own” for each of your own publication.

article{texblog2012, keywords = {own}, % keyword for subdivided bibliography title={My fancy publication}, author={Texblog, T}, journal={TUGboat}, volume={33}, number={3}, pages={1001--1002}, year={2012}, }\printbibliography[keyword=own,...] \printbibliography[notkeyword=own,...]

By the way, TUGboat is the TeX Users Group journal. I made the publication up.

There are other ways to subdivide the bibliography of a document into several parts. See the package documentation or drop me a comment below if you have a question related to the topic.

### chapterbib | References following each Chapter

Postby JensL » Sat Dec 13, 2008 12:07 pm

Hi there,

I am trying to compile a thesis in LaTeX and I need to put in References after each chapter. I have spend hours trying to get chapterbib to work, but I can't get it right.

Can anyone give a good example how to solve this problem? My current structure, cleaned of the formatting code, is this:

This is the main document called "Thesis.tex". The three individual chapters are stored in separate sub-folders, following a suggestion from someone on this list. An example for thesis-chapter1 is:

and the bibliography for this chapter is in thesis-chapter1.bib, which looks like this:

and is also stored in the sub-folder. Accordingly, there is a thesis-chapter2.bib in sub-folder "chapter2", and a thesis-chapter3.bib in sub-folder "chapter3".

For a test, I set up chapter 2 identical to chapter 1, but citing
, which is the only reference in thesis-chapter2.bib.
In chapter 3, I want to cite by \cite{awe}, which is the only reference in "thesis-chapter3.bib".

A number of web pages suggest that you need to compile as follows

But it doesn't work, and I can't make any sense out of the error messages I get:

Can anyone give a detailed example of how to use chapterbib properly to obtain a bibliography at the end of each chapter?
There are a few comments on this topics on the web, but I can't get it to work.

Any help is greatly appreciated.
1. \documentclass[phd,tocprelim]{CU}
2. \usepackage[sectionbib]{chapterbib}
3. %\bibliographystyle{plain}
4. %\bibliographystyle{IEEEbib}
5. \include{chapter1/thesis-chapter1}
6. \include{chapter2/thesis-chapter2}
7. \include{chapter3/thesis-chapter3}
1. The text for Section 1 goes here, without brackets.
2. test \cite{Brakenridge1994}
3. \bibliographystyle{plain}
4. \bibliography{chapter1/thesis-chapter1}
1. @article{Brakenridge1994,
2. Author = {Brakenridge, G.B. and Knox, J.C. and Paylor II, E.D. and Magiligan, F.},
3. Title = {Radar Remote Sensing Aids Study of the Great Flood of 1993},
1. A level-1 auxiliary file: chapter2/thesis-chapter2.aux
2. Illegal, another \bibstyle command---line 8 of file chapter2/thesis-chapter2.aux
3. I'm skipping whatever remains of this command
4. Illegal, another \bibdata command---line 9 of file chapter2/thesis-chapter2.aux
5. : {chapter2/thesis-chapter2}
6. I'm skipping whatever remains of this command
7. A level-1 auxiliary file: chapter3/thesis-chapter3.aux
8. Illegal, another \bibstyle command---line 8 of file chapter3/thesis-chapter3.aux
9. I'm skipping whatever remains of this command
10. Illegal, another \bibdata command---line 9 of file chapter3/thesis-chapter3.aux
11. : {chapter3/thesis-chapter3}
12. I'm skipping whatever remains of this command
13. Database file #1: chapter1/thesis-chapter1.bib
14. Warning--I dind't find a database entry for "Barber1996"
Last edited by JensL on Sat Dec 13, 2008 1:52 pm, edited 1 time in total.