summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-ms/doc/examples/13-references-by-keyword-ms.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/biblatex-ms/doc/examples/13-references-by-keyword-ms.tex')
-rw-r--r--macros/latex/contrib/biblatex-ms/doc/examples/13-references-by-keyword-ms.tex44
1 files changed, 44 insertions, 0 deletions
diff --git a/macros/latex/contrib/biblatex-ms/doc/examples/13-references-by-keyword-ms.tex b/macros/latex/contrib/biblatex-ms/doc/examples/13-references-by-keyword-ms.tex
new file mode 100644
index 0000000000..fa40662463
--- /dev/null
+++ b/macros/latex/contrib/biblatex-ms/doc/examples/13-references-by-keyword-ms.tex
@@ -0,0 +1,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}