# Per-chapter bibliographies with global list at the end

I would like to create a bibliography for each chapter. Each chapter needs to use a citation number from the global citation number.

for example

Chapter1
this is chapter1 \cite{A}

chapter2
this is chapter2 \cite{B}

\printbibliography


the result should be

Chapter 1

this is chapter1[1]

ref

[1] AuthorA

Chapter 2

this is chapter2 [2]

ref

[2] AuthorB

Bibliography

[1] authorA

[2] authorB

I don't need each chapter to reset the citation number.

This is easily possible with refsegments. The most convenient way to use them is probably by passing segment=chapter, to biblatex at loading time. Then biblatex will start a new refsegment for every \chapter. Per-chapter bibliographies are produced with

\printbibliography[heading=subbibliography, segment=\therefsegment]


and only contain citations from the current refsegment/chapter. The complete bibliography is produced without a segment filter and prints all citations.

For a scheme like this you probably want to use sorting=none, defernumbers=true, to get continuous numbering of the references.

\documentclass[british]{report}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[backend=biber, style=numeric,
sorting=none, defernumbers=true,
refsegment=chapter]{biblatex}

\begin{document}
\chapter{Lorem}
Lorem \autocite{sigfridsson,worman}

\chapter{Ipsum}
Ipsum \autocite{nussbaum,geer}

• @PisitNakjai You can of course just leave out the \printbibliography[heading=subbibliography, segment=\therefsegment] in chapter 3. But then citations that only occur in chapter 3 will only be listed in the global bibliography. – moewe Feb 16 at 15:15
• @PisitNakjai Remove the option defernumbers=true,. If you don't see the desired effect after recompilation, remove the temporary files (.aux, .bbl, .bcf, ...) and compile again. – moewe Feb 16 at 15:25