I am trying to split my bibliography into two parts. The first part is local to a special section of the document, the other takes care of the rest of the citations. The two bibliographies may have citations in common, in which case I would like to have the entry repeated. The problem is that I also would like the global bibliography (which comes after the local one) to be numbered starting from the last number used in the local bibliography.
An MWE that shows an approach to do this is as follows:
\documentclass{scrartcl}
\usepackage[
backend=biber,
bibencoding=utf8,
style=numeric,
firstinits=true,
isbn=false,
doi=true,
url=false,
clearlang=true,
defernumbers=true,
]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
@misc{D04,
author = {Duthor, D.},
year = {2004},
title = {Delta},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\section{First}
\begin{refsection}
Some text \autocite{A01,C03,D04}.
\printbibliography[heading=subbibliography]
\end{refsection}
\section{Second}
Some text \autocite{A01,B02}.
\printbibliography[resetnumbers=4,heading=subbibliography]
\end{document}
The behaviour is the one I would like to have but the price is that I have to manually set the resetnumbers option to whichever number happens to be the last of the local bibliography, plus one.
Question: is there a way to avoid setting the restart number manually?
Ideally, I would like to see a solution which uses Biblatex's options as they are intended, instead of fetching the value of the counter for the last reference in the local bibliography and stick it into the resetnumbers option.
EDIT: I would accept any of these two ways to deal with duplicate entries in the two bibliographies (like A01 in the MWE):
- The entry is shown in both bibliographies but with different numberings, as dictated by the sequence in each bbliography. Or,
- The entry is only shown in the first bibliography and the relevant number is used for all subsequent citations.
resetnumbers. That is whatdefernumbers=truedoes. If I set it to false, it starts over with 1. – Andy Apr 27 '16 at 15:38resetnumbers? I do not. I do get it if I removeresetnumbersafter compiling it with theresetnumbers=4, but then if I chang the document the build system properly recompiles everything and I get 1,2,3 and 1,2,3 – Bordaigorl Apr 28 '16 at 08:21biblatexmanual: "An important thing to note is that if you change the value of this option in your document (or the value of options which depend on this like some of the options to the \printbibliography macro, see § 3.6.2), then it is likely that you will need to delete your current aux file and re-run LaTeX to obtain the correct numbering." – Andy Apr 28 '16 at 09:15