I have a document in which the bibliography is splitted via categories. I would like to reference to the elements by numbers [1]. Inside each bibliography, the entries should be sorted by year-name-title (ynt), but the numbers in the first bibliography should be smaller than the numbers in the second one.
MWE:
\documentclass{article}
\usepackage[sorting = ynt,bibstyle=numeric]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{a,
author = "I",
year = "1973"
}
@book{a2,
author = "I",
year = "1923"
}
@book{b,
author = "You",
year = "1959"
}
\end{filecontents}
\addbibresource{\jobname.bib}
\DeclareBibliographyCategory{own}
\begin{document}
\nocite{a,a2}
\addtocategory{own}{a,a2}
\nocite{b}
\printbibliography[category=own,title={A}]
\printbibliography[notcategory=own,title={B}]
\end{document}
Now, the order of the numbers in the bibliography is "[1],[3]" in the first list, and "[2]" in the second list. This looks odd and if there are more items, one has to search through both lists in order to find a reference. I would like to have "[1],[2]" in the first list and "[3]" in the second list.
An option is to add a "presort" key to the corresponding entries in the bib-file, but I would like to not touch the bib-file. Is there, e.g., any possibility to add the "presort" key afterwards in the tex-file? Or can biblatex sort by category (I searched the manual but did not found any clue)?
Best Answer
Follow
biblatex
's advice in the.log
fileand use
defernumbers=true
.edit: Newer versions of
biblatex
do not recommenddefernumbers
in the.log
file any more following https://github.com/plk/biblatex/issues/493. In most cases it is still a very good idea to usedefernumbers
with split numeric bibliographies.The
biblatex
documentation explains on p. 53and notes in ยง3.12.5 Bibliography Filters and Citation Labels, p. 121, that