Debian Codegraph @

texmf-dist/doc/latex/biblatex-ms/examples/19-alphabetic-prefixed-ms.tex

raw
1 %
2 % Prefixes also work with alphabetic the styles.
3 %
4 \documentclass[a4paper,oneside]{article}
5 \usepackage[T1]{fontenc}
6 \usepackage[utf8]{inputenc}
7 \usepackage[american]{babel}
8 \usepackage{csquotes}
9 \usepackage[style=alphabetic,defernumbers,backend=biber]{biblatex-ms}
10 \usepackage{hyperref}
11 \usepackage{nameref}
12 \addbibresource{biblatex-examples.bib}
13 % A catch-all filter for all items which are not assigned to a
14 % dedicated sub-bibliography:
15 \defbibfilter{other}{
16 not type=article
17 and
18 not type=book
19 and
20 not type=collection
21 }
22 \begin{document}
23
24 \section*{Prefixed alphabetic citations}
25
26 % Some citations:
27 \cite{angenendt, kastenholz, augustine, companion, jaffe, ctan}
28
29 \nocite{*}
30
31 % Let's print the overall heading of the bibliography first:
32 \printbibheading
33
34 % And now the sub-bibliographies: we use three of them (based on the
35 % entry type). Each sub-bibliography assigns a different prefix.
36 \newrefcontext[labelprefix={A-}]
37 \printbibliography[heading=subbibliography,title={Articles},type=article]
38 \newrefcontext[labelprefix={B-}]
39 \printbibliography[heading=subbibliography,title={Books},type=book]
40 \newrefcontext[labelprefix={C-}]
41 \printbibliography[heading=subbibliography,title={Collections},type=collection]
42
43 % The catch-all sub-bibliography for all remaining types:
44 \newrefcontext[labelprefix={O-}]
45 \printbibliography[heading=subbibliography,title={Other Sources},filter=other]
46
47 \end{document}