summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/biblatex/examples/92-bibliographylists.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/biblatex/examples/92-bibliographylists.tex')
-rw-r--r--Master/texmf-dist/doc/latex/biblatex/examples/92-bibliographylists.tex49
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/92-bibliographylists.tex b/Master/texmf-dist/doc/latex/biblatex/examples/92-bibliographylists.tex
new file mode 100644
index 00000000000..829d87be6e5
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/biblatex/examples/92-bibliographylists.tex
@@ -0,0 +1,49 @@
+%
+% This file demonstrates the facilities for printing arbitrary bibliography
+% lists containing information about abbreviations etc.
+%
+\documentclass[a4paper]{article}
+\usepackage[T1]{fontenc}
+\usepackage[american]{babel}
+\usepackage{csquotes}
+\usepackage[style=authoryear,backend=biber]{biblatex}
+\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
+\DeclareSortingScheme{shorttitle}{
+ \sort{
+ \field{shorttitle}
+ }
+}
+
+% This is optional and in fact equivalent to the automatically created
+% filter for all field 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}