summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-ms/doc/examples/13-references-by-keyword-ms.tex
blob: fa40662463367b7d71a479c8869d9c25f439a7f5 (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
%
% 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 are set up like this:
% 
%   @Type{key,
%     keywords = {primary},
%     ...
%   }
%
%   @Type{key,
%     keywords = {secondary},
%     ...
%   }
%
\documentclass[a4paper,oneside]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=authortitle,backend=biber]{biblatex-ms}
\usepackage{hyperref}
\addbibresource{biblatex-examples.bib}
\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}

\printbibheading
\printbibliography[keyword=primary,heading=subbibliography,title={Primary Sources}]
\printbibliography[keyword=secondary,heading=subbibliography,title={Secondary Sources}]

\end{document}