I have several categories of bibliographic entries which I would like to present satisfying the following requirements:
-
Each category goes into its own subsection (for example, journal articles, books, etc.) of my "Bibliography" section.
-
I would like to have entries in each category numbered separately and in reverse, for example [J10]-[J1], [B3]-[B1] etc.
-
Different types of my entries do not necessarily correspond to different
bibtex
types (for example,@article
entries may be split into two categories). I find it easiest to keep the entries of each category in a separate.bib
file. -
References to the various bibliographic entries may appear anywhere in the text.
All requirements apart from (4) can be satisfied if each category corresponds to a separate refsection
(see here for requirement (2), just add the option prefixnumbers
when printing each bibliography). Unfortunately, refsection
s seem only to produce local labels and therefore each entry can only be referenced inside its own refsection
.
If the above is correct, refsection
s cannot be used, and some other way of segregating entries will be required, for example by keywords or using biblatex
categories. But then I don't see how the solution to (2) can be applied since it seems tied to refsection
s.
Any ideas?
Best Answer
Assuming that the categories are indicated in the
usera
field, the following document demonstrates how you can meet requirements 1, 2 and 4.Thanks to a previous answer from PLK, requirement 3 can be supported with biber. The following
sourcemap
adds the data needed in theusera
field. Just save this in a separate file calledbiber.conf
.Some caveats:
The new format typically needs an extra
latex
run to get the label numbers right, even if biblatex doesn't tell you to "rerun LaTeX".The new format will generally screw up citation labels with the
sortcites=true
orstyle=numeric-comp
option settings, unless all citation lists are limited to a single category. The citation list in the sample document, for example, doesn't meet this condition.