As References before appendix points out, I can use citations both in mainmatter and appendix of a book, with only a single \printbibliography at end of mainmatter and before appendix.
In the below MWE, I would like to do the same, but with split bibliographies for each chapter in backmatter:
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage[defernumbers=true,style=ieee]{biblatex}
\bibliography{biblatex-examples}
\begin{document}
\frontmatter
\mainmatter
\newrefsegment
\chapter{First chapter}
bla bla \cite{westfahl:space} bla bla \cite{aksin} ...
\printbibliography[sorting=none,segment=\therefsegment,resetnumbers=true]
\appendix
\chapter{Second chapter}
bla bla ... \cite{angenendt} bla bla \cite{baez/article}
\backmatter
\chapter{Back chapter one}
\newrefsegment
blah blah ... \cite{baez/article} ... blah blah \cite{bertram} and blah blah \cite{doody}
\printbibliography[sorting=none,segment=\therefsegment,resetnumbers=true]
\chapter{Back chapter two}
\newrefsegment
blah blah ... \cite{doody} ... blah blah \cite{matuz:doody} and blah blah \cite{gillies}
\printbibliography[sorting=none,segment=\therefsegment,resetnumbers=true]
\end{document}
That doesn't quite work - even if I compiled with pdflatex test.tex && biber test && pdflatex test.tex && pdflatex test.tex (click for full res):
Namely,
- the main matter bibliography prints only citations [1] to [2], while I would have expected citations [3] and [4] from the appendix to be included too (as per link above).
- In the appendix,
\cite{baez/article}somehow becomes [1], even if\cite{westfahl:space}should have been [1] already - "Back chapter one" references are OK - but in "Back chapter two", the ordering is [3], [1], [2], probably because
\cite{doody}was indeed [3] in "Back chapter one". - Even if both "Back chapter one" and "Back chapter two" refer to
\cite{doody}, its bibliography entry is different in bibliography of "Back chapter one" from the one in "Back chapter two".
So how can I get:
- The main matter bibliography to show both main matter and appendix citation in order - and at the same time,
- the back chapter bibliographies to be correctly ordered (in appearance order) for each chapter, and with exactly the same bibliography entries - regardless if a citation has been used in a previous backmatter chapter?

