Debian Codegraph @

texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword.tex

raw
1 %
2 % It is common requirement to subdivide a bibliography by certain
3 % criteria. This example demonstrates how to use keyword filters to
4 % subdivide the list of references into primary and secondary
5 % sources.
6 %
7 % The keyword filter depends on the 'keywords' fields in the bib
8 % file. The entries cited in this example are set up like this:
9 %
10 % @Type{key,
11 % keywords = {primary},
12 % ...
13 % }
14 %
15 % @Type{key,
16 % keywords = {secondary},
17 % ...
18 % }
19 %
20 \documentclass[a4paper,oneside]{book}
21 \usepackage[T1]{fontenc}
22 \usepackage[utf8]{inputenc}
23 \usepackage[american]{babel}
24 \usepackage{csquotes}
25 \usepackage[style=authortitle,backend=biber]{biblatex}
26 \usepackage{hyperref}
27 \addbibresource{biblatex-examples.bib}
28 \begin{document}
29
30 \chapter{References by keyword}
31
32 This is just filler text.\footcite{aristotle:anima}
33 This is just filler text.\footcite{nussbaum}
34 This is just filler text.\footcite{averroes/bland}
35 This is just filler text.\footcite{hyman}
36 This is just filler text.\footcite{aristotle:physics}
37 This is just filler text.\footcite{moraux}
38 This is just filler text.\footcite{pines}
39
40 \printbibheading
41 \printbibliography[keyword=primary,heading=subbibliography,title={Primary Sources}]
42 \printbibliography[keyword=secondary,heading=subbibliography,title={Secondary Sources}]
43
44 \end{document}