Debian Codegraph @

texmf-dist/doc/latex/biblatex-ms/examples/92-bibliographylists-ms.tex

raw
1 \documentclass[a4paper]{article}
2 \usepackage{fontspec}
3 \usepackage[american]{babel}
4 \usepackage{csquotes}
5 \usepackage[style=authoryear,backend=biber]{biblatex-ms}
6 \usepackage{hyperref}
7 \addbibresource{biblatex-examples.bib}
8
9 % This is needed as printbiblist looks for a driver named after the biblist
10 % name
11 \DeclareBibliographyDriver{shorttitle}{%
12 \printfield{title}}
13
14 % This is optional. If no sorting scheme is specified to \printbiblist, a
15 % sorting scheme with the same name as the biblist is used if found.
16 % Otherwise as a last resort the global sorting scheme is used
17 \DeclareSortingTemplate{shorttitle}{
18 \sort{
19 \field{shorttitle}
20 }
21 }
22
23 % This is optional and in fact equivalent to the automatically created
24 % filter for all fields like "shorttitle" which are declared as "label
25 % fields" in the data model. However, if you define it, you can overwrite
26 % the default definition which is shown here
27 \DeclareBiblistFilter{shorttitle}{
28 \filter[type=field,filter=shorttitle]
29 }
30
31 % biblatex also creates automatically a "shorttitle" bibliography
32 % environment (using \defbibenvironment) which is used by default. You can
33 % either redefine this or use the "env" option to \printbiblist to use
34 % another one instead.
35
36 % The default "biblist" heading is used for all bibliography lists. This
37 % can be changed using the "heading" option to \printbiblist
38
39 \begin{document}
40 \nocite{*}
41
42 \printshorthands% With biber, just an alias for \printbiblist{shorthand}
43 \printbiblist[title={Title Shorthands}]{shorttitle}
44 \printbibliography
45 \end{document}