| 1 |
\documentclass[a4paper]{article} |
| 2 |
\usepackage{fontspec} |
| 3 |
\usepackage[american]{babel} |
| 4 |
\usepackage{csquotes} |
| 5 |
\usepackage[style=authoryear,sortcites,sorting=ynt,backend=biber]{biblatex} |
| 6 |
\usepackage{hyperref} |
| 7 |
\addbibresource{biblatex-examples.bib} |
| 8 |
\begin{document} |
| 9 |
% This demonstrates that the sorting of citations can be different to the |
| 10 |
% bibliography. However, this is not always advisable in case of multiple |
| 11 |
% citations in the same year for the same author list. This is because |
| 12 |
% extradate (the "a", "b" etc. in "Smith 2010a" and "Smith 2010b" etc.) |
| 13 |
% depends on the sorting order and if the sorting order is different |
| 14 |
% between citations and bibliography, this can cause confusion. |
| 15 |
Filler text \parencite{wassenberg,cicero,companion,angenendt}. |
| 16 |
\newrefcontext[sorting=nyt] |
| 17 |
\printbibliography |
| 18 |
\end{document} |