summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/biblatex/examples/13-references-by-keyword.tex
blob: aa2b126c9f6da79fc8e5b1244367cfcd0daec951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
%
% It is common requirement to subdivide a bibliography by certain
% criteria. This example demonstrates how to use keyword filters to
% subdivide the list of references into primary and secondary
% sources.
%
% The keyword filter depends on the `keywords' fields in the bib
% file. The entries cited in this example look like this:
% 
%   @Type{key,
%     keywords = {primary},
%     ...
%   }
%
%   @Type{key,
%     keywords = {secondary},
%     ...
%   }
%
\documentclass[a4paper,oneside]{book}
\usepackage[T1]{fontenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=authortitle]{biblatex}
\usepackage{hyperref}
\bibliography{biblatex-examples}
\defbibheading{primary}{\section*{Primary Sources}}
\defbibheading{secondary}{\section*{Secondary Sources}}
\begin{document}

\chapter{References by keyword}

This is just filler text.\footcite{aristotle:anima}
This is just filler text.\footcite{nussbaum}
This is just filler text.\footcite{averroes/bland}
This is just filler text.\footcite{hyman}
This is just filler text.\footcite{aristotle:physics}
This is just filler text.\footcite{moraux}
This is just filler text.\footcite{pines}

\chapter*{Bibliography}
\printbibliography[heading=primary,keyword=primary]
\printbibliography[heading=secondary,keyword=secondary]

\end{document}