wzl-citation.sty 906 Bytes
Newer Older
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
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
\ProvidesPackage{wzl-citation}[2018/09/21]

\RequirePackage[autostyle]{csquotes}
\RequirePackage[
    backend=biber,
    style=alphabetic,
    maxalphanames=1,
    maxnames=50
]{biblatex}

% Bibliography name
\DefineBibliographyStrings{ngerman}{
    bibliography = {Literaturverzeichnis}
}

% Citation style
\DeclareLabelalphaTemplate[]{
    \labelelement{
        \field[uppercase,final]{shorthand}
	    \field[uppercase]{label}
	    \field[uppercase,strwidth=4]{labelname}
	}
	\labelelement{
	    \field[strwidth=2,strside=right]{year}
	}
}
\renewcommand*{\labelalphaothers}{}

% Name format
\DeclareNameFormat{default}{{\usebibmacro{name:family-given}{\namepartfamily}{\namepartgiveni}{\namepartprefix}{\namepartsuffix}}}

% Name delimiters
\renewcommand{\labelnamepunct}{\addcolon\space}
\renewcommand{\multinamedelim}{\addsemicolon\space}
\renewcommand{\finalnamedelim}{\addsemicolon\space}

\endinput