# Bibliography per chapter with continuous numbering

I would like to create a document with two chapters. After the first chapter there should be a bibliography. The next chapter should be able to reference items of the former chapter, but only show the new items in its bibliography, starting with the next number from the first bibliography.

Example:

Chapter 1 - The Fu
Fu has been done by Bar [1]. Early versions ...
Bibliography
[1] Bar et. al., Doning the Fu

Chapter 2 - Compining Fu with Herp
Doning Fu as described in [1] neglects the advantages of Herp pointed out by Derp [2]. Consequently ....
Bibliography
[2] Derp et. al., The Advantages of Using Herp

Please not too much discussion about if that is a friendly-to-use idea, it is not my own demand :)

-
–  mankoff Apr 30 at 13:02

Use of refsegment will continue label numbering for you. To print a reference in just one sub-bibliography (and completely frustrate most readers), you can track the continuation number for each refsegment and skip any items whose label is less than that number.

In the example below the default sorting scheme is used, but it could be changed. To get the label numbers right, this approach will require a couple additional passes with latex. biblatex gives you a message whenever another pass is needed.

\documentclass{report}
\usepackage[sorting=none,style=numeric,refsegment=chapter,defernumbers=true]{biblatex}
\usepackage{filecontents}

\section*{Bibliography}}

\makeatletter

% Overall entry counter
\csnumgdef{blx@entrycount}{0}
\AtEveryBibitem{%
\csnumgdef{blx@entrycount}{\csuse{blx@entrycount}+1}}

% Continued from this label number
\appto{\newrefsegment}{%
\csnumgdef{blx@entrycount@\the\c@refsegment}{\csuse{blx@entrycount}+1}}

% Skip entries with label numbers less than the continued number
\defbibcheck{onlynew}{%
\ifnumless{\thefield{labelnumber}}{\csuse{blx@entrycount@\the\c@refsegment}}
{\skipentry}
{}}

\makeatother

\begin{filecontents}{\jobname.bib}
@Book{companion,
author = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander},
title = {The LaTeX Companion},
edition = {1},
date = {1994}}
@Article{gillies,
author = {Gillies, Alexander},
title = {Herder and the Preparation of Goethe's Idea of World Literature},
journaltitle = {Publications of the English Goethe Society},
volume = {9},
date = {1933},
pages = {46--67}}
@Article{bertram,
author = {Bertram, Aaron and Wentworth, Richard},
title = {Gromov invariants for holomorphic maps on Riemann surfaces},
journaltitle = {J.~Amer. Math. Soc.},
volume = {9},
number = {2},
date = {1996},
pages = {529--571}}
@Book{poetics,
author = {Aristotle},
editor = {Lucas, D. W.},
title = {Poetics},
series = {Clarendon Aristotle},
publisher = {Clarendon Press},
location = {Oxford},
date = {1968}}
@Book{rhetoric,
author = {Aristotle},
editor = {Cope, Edward Meredith},
commentator = {Cope, Edward Meredith},
title = {The Rhetoric of Aristotle with a commentary by the late Edward Meredith Cope},
volumes = {3},
publisher = {Cambridge University Press},
date = {1877}}
\end{filecontents}

\begin{document}
\chapter{First}
\cites{companion}{rhetoric}
\chapter{Second}
\cites{companion}{bertram}{poetics}
\chapter{Third}
\cites{companion}{bertram}{gillies}{rhetoric}

I've edited to add sorting=none to the biblatex option, necessary for this to work on TexLive 2013. It would be nice to get an example that did not rely on chapters. Simply each time \printbibliography is called, only new bib items are printed. I'm working on that change, but I am not proficient in TeX. –  mankoff Apr 30 at 12:55