wzl-citation.sty 1.33 KB
Newer Older
1
\ProvidesPackage{wzl-citation}[2018/09/25]
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
2
3

\RequirePackage[autostyle]{csquotes}
4
\RequirePackage[backend=biber,style=alphabetic]{biblatex}
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
5
6
7
8
9
10
11

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

% Citation style
12
\DeclareLabelalphaTemplate{
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
13
14
15
    \labelelement{
        \field[uppercase,final]{shorthand}
	    \field[uppercase]{label}
16
	    \field[uppercase,names=1,noalphaothers,strwidth=4]{labelname}
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
17
18
19
	}
	\labelelement{
	    \field[strwidth=2,strside=right]{year}
20
	    \field[strwidth=2,strside=right]{urlyear}
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
21
22
23
24
	}
}

% Name format
25
26
27
28
29
\DeclareNameFormat{default}{%
    \usebibmacro{name:family-given}%
        {\namepartfamily}{\namepartgiveni}%
        {\namepartprefix}{\namepartsuffix}%
}
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
30
31
32
33
34
35

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

36
37
38
39
40
41
42
43
44
45
46
47
48
49
% Title format
\DeclareFieldFormat*{title}{#1\isdot}
\DeclareFieldFormat*{journaltitle}{#1\isdot}
\DeclareFieldFormat*{booktitle}{#1\isdot}
\DeclareFieldFormat*{issuetitle}{#1\isdot}
\DeclareFieldFormat*{maintitle}{#1\isdot}
\DeclareFieldFormat*{thesistitle}{#1\isdot}

% URL format
\DeclareFieldFormat*{url}{URL\addcolon\space\url{#1}}
\DeclareFieldFormat*{urldate}{[Stand\addcolon\space#1]}

\DeclareFieldFormat*{volume}{Bd\adddot\space#1}

Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
50
\endinput