Simplest way to have chapter bibliographies in Latex documents

When writing long documents in LateX like Thesis or books you might want to implement bibliographies on a chapter by chapter basis. This end of chapter bibliographies can be achieved using the bibunits1 package. Here’s an example

\documentclass{article}
\usepackage{bibunits}
\defaultbibliography{references}
 
\begin{document}
\bibliographyunit[\section]
 
\section{Introduction}
References to some work~\cite{Rodrigues:2014}
that is of the most scientific interest and
is based on his previous work~\cite{Rodrigues:2012}.
\putbib
 
\section{The End}
A new section with a new bibligaphy~\cite{Rodrigues:2013} 
at the end, but all the science of complexity
any human could have~\cite{Rodrigues:2010}.
\putbib
 
\end{document}

The main trick is to define how to divide the bibliographies and to compile each of the sub bibliography files generated by latex. Read the documentation for details!

Latex Tip: back references in bibliography

Latex

When writing long texts, articles or you know… thesis, in latex I find very useful to have automatic links between references and the entries that show up in the bibliography. That is easily accomplished by using the hyperref package in the preamble of the latex document by including the package hyperref

\usepackage{hyperref}

Now, this is cool, but sometimes I’m seeing a reference on the bibliography and I’d just like to know where it was used in the text so I could check what I wrote about it quickly. But this normally involves a search box and it is a pain. It would be easier if you just included backlinks at the end of each reference with the pages where that reference was used.

The hyperref package allows that by setting the option pagebackref=true on the package options. Now you just have to use

\usepackage[pagebackref=true]{hyperref}

and it will give you those nice links at the end of each reference, back to the pages where you first inserted them.

If only bibliographic styles for major publications would be like that! The solution is to remove the option after writing, but even so it is a nice productivity feature to have while writing.