summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/biblatex-ms/doc/examples/92-bibliographylists-ms.tex
blob: e366706368f12e78602c2972abccb9d9d3dff573 (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
45
\documentclass[a4paper]{article}
\usepackage{fontspec}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=authoryear,backend=biber]{biblatex-ms}
\usepackage{hyperref}
\addbibresource{biblatex-examples.bib}

% This is needed as printbiblist looks for a driver named after the biblist
% name
\DeclareBibliographyDriver{shorttitle}{%
  \printfield{title}}

% This is optional. If no sorting scheme is specified to \printbiblist, a
% sorting scheme with the same name as the biblist is used if found.
% Otherwise as a last resort the global sorting scheme is used
\DeclareSortingTemplate{shorttitle}{
  \sort{
    \field{shorttitle}
  }
}

% This is optional and in fact equivalent to the automatically created
% filter for all fields like "shorttitle" which are declared as "label
% fields" in the data model. However, if you define it, you can overwrite
% the default definition which is shown here
\DeclareBiblistFilter{shorttitle}{
  \filter[type=field,filter=shorttitle]
}

% biblatex also creates automatically a "shorttitle" bibliography
% environment (using \defbibenvironment) which is used by default. You can
% either redefine this or use the "env" option to \printbiblist to use
% another one instead.

% The default "biblist" heading is used for all bibliography lists. This
% can be changed using the "heading" option to \printbiblist

\begin{document}
\nocite{*}

\printshorthands% With biber, just an alias for \printbiblist{shorthand}
\printbiblist[title={Title Shorthands}]{shorttitle}
\printbibliography
\end{document}