diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/biblatex/examples/42-style-alphabetic-template.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/biblatex/examples/42-style-alphabetic-template.tex | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex/examples/42-style-alphabetic-template.tex b/Master/texmf-dist/doc/latex/biblatex/examples/42-style-alphabetic-template.tex new file mode 100644 index 00000000000..1c8bf652dad --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex/examples/42-style-alphabetic-template.tex @@ -0,0 +1,28 @@ +% +% This file presents the 'alphabetic' style with labels formatted with +% '\DeclareLabelalphaTemplate'. +% +\documentclass[a4paper]{article} +\usepackage[T1]{fontenc} +\usepackage[american]{babel} +\usepackage{csquotes} +\usepackage[backend=biber,style=alphabetic]{biblatex} +\usepackage{hyperref} +\addbibresource{biblatex-examples.bib} + +\DeclareLabelalphaTemplate{ + \labelelement{ + \field[final]{shorthand} + \field{label} + \field[strwidth=3,strside=left,ifnames=1]{labelname} + \field[strwidth=1,strside=left]{labelname} + } + \labelelement{ + \field[strwidth=2,strside=right]{year} + } +} + +\begin{document} +Filler text \parencite{wassenberg,cicero,companion,kant:kpv,kant:ku,cms,ctan}. +\printbibliography +\end{document} |