| 1 |
% |
| 2 |
% This example will yield the same output as the 'keywords' example |
| 3 |
% but the approach is different. Instead of adding the filter |
| 4 |
% criteria to the bib file, we assign keys to categories in the |
| 5 |
% document preamble and use 'category' filters to create a |
| 6 |
% subdivided bibliography. |
| 7 |
% |
| 8 |
\documentclass[a4paper,oneside]{book} |
| 9 |
\usepackage[T1]{fontenc} |
| 10 |
\usepackage[utf8]{inputenc} |
| 11 |
\usepackage[american]{babel} |
| 12 |
\usepackage{csquotes} |
| 13 |
\usepackage[style=authortitle,backend=biber]{biblatex} |
| 14 |
\usepackage{hyperref} |
| 15 |
\addbibresource{biblatex-examples.bib} |
| 16 |
\DeclareBibliographyCategory{primary} |
| 17 |
\DeclareBibliographyCategory{secondary} |
| 18 |
\addtocategory{primary}{aristotle:anima,aristotle:physics,averroes/bland} |
| 19 |
\addtocategory{secondary}{hyman,moraux,nussbaum,pines} |
| 20 |
\defbibheading{primary}{\section*{Primary Sources}} |
| 21 |
\defbibheading{secondary}{\section*{Secondary Sources}} |
| 22 |
\begin{document} |
| 23 |
|
| 24 |
\chapter{References by category} |
| 25 |
|
| 26 |
This is just filler text.\footcite{aristotle:anima} |
| 27 |
This is just filler text.\footcite{nussbaum} |
| 28 |
This is just filler text.\footcite{averroes/bland} |
| 29 |
This is just filler text.\footcite{hyman} |
| 30 |
This is just filler text.\footcite{aristotle:physics} |
| 31 |
This is just filler text.\footcite{moraux} |
| 32 |
This is just filler text.\footcite{pines} |
| 33 |
|
| 34 |
\printbibheading |
| 35 |
\bibbycategory |
| 36 |
% |
| 37 |
% \bibbycategory processes the categories in the order in which they |
| 38 |
% were declared. Note that the category name also serves as a heading |
| 39 |
% identifier, i.e. you need to define a matching heading for every |
| 40 |
% category. In this document, \bibbycategory is a shorthand for: |
| 41 |
% |
| 42 |
% \printbibliography[heading=primary,category=primary] |
| 43 |
% \printbibliography[heading=secondary,category=secondary] |
| 44 |
% ... |
| 45 |
|
| 46 |
\end{document} |