wzl.bbx 3.36 KB
Newer Older
1
\ProvidesFile{wzl.bbx}[2018/09/28]
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
2

3
\RequireBibliographyStyle{alphabetic}
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
4

5
6
7
8
% New strings
\NewBibliographyString{standard}

% German strings
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
9
\DefineBibliographyStrings{ngerman}{
10
11
    bibliography = {Literaturverzeichnis},
    standard = {Norm},
12
13
14
15
    patent = {Schutzrecht},
    part = {Teil},
    url = {URL},
    urlseen = {Stand},
16
    % Months
17
18
19
20
21
22
23
24
25
26
27
28
    january = {Januar},
    february = {Februar},
    march = {März},
    april = {April},
    may = {Mai},
    june = {Juni},
    july = {Juli},
    august = {August},
    september = {September},
    october = {Oktober},
    november = {November},
    december = {December}
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
29
30
31
}

% Name format
32
33
34
35
36
\DeclareNameFormat{default}{%
    \usebibmacro{name:family-given}%
        {\namepartfamily}{\namepartgiveni}%
        {\namepartprefix}{\namepartsuffix}%
}
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
37
38
39
40
41

% Name delimiters
\renewcommand{\labelnamepunct}{\addcolon\space}
\renewcommand{\multinamedelim}{\addsemicolon\space}
\renewcommand{\finalnamedelim}{\addsemicolon\space}
42
\renewcommand*{\finentrypunct}{}
Lukas Janek Körfer's avatar
Lukas Janek Körfer committed
43

44
45
46
47
48
49
50
51
52
% 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
53
54
\DeclareFieldFormat*{url}{\bibstring{url}\addcolon\addspace\url{#1}}
\DeclareFieldFormat*{urldate}{[\bibstring{urlseen}\addcolon\addspace#1]}
55

56
% Volume format
57
58
\DeclareFieldFormat*{part}{\bibstring{part}\addspace#1}
\DeclareFieldFormat*{volume}{Bd\adddot\addspace#1}
59

60
61
62
63
64
65
% Norm / Guideline driver
\DeclareBibliographyDriver{standard}{%
    \usebibmacro{bibindex}%
    \usebibmacro{begentry}%
    \iffieldundef{type}{\bibstring{standard}}{\printfield{type}}%
    \setunit{\addspace}%
66
    \printlist{institution}%
67
68
    \setunit{\addspace}%
    \printfield{number}%
69
70
    \setunit{\addspace}%
    \printfield{part}%
71
    \addspace%
72
    \mkbibparens{\mkbibmonth{\thefield{month}}\addspace\printfield{year}}%
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
    \setunit{\adddot\addspace}%
    \usebibmacro{title}%
    \usebibmacro{finentry}%
}

% Patent driver
\DeclareBibliographyDriver{patent}{%
    \usebibmacro{bibindex}%
    \usebibmacro{begentry}%
    \bibstring{patent}%
    \setunit{\addspace}%
    \printlist{location}
    \setunit{\addspace}%
    \printfield{number}%
    \addspace%
88
    \mkbibparens{\usebibmacro{date}}%
89
90
91
92
93
94
95
96
97
98
99
    \setunit{\adddot\addspace}%
    \usebibmacro{author}%
    \setunit{\addcolon\addspace}%
    \usebibmacro{title}%
    \usebibmacro{finentry}%
}

% Web / Online driver
\DeclareBibliographyDriver{online}{%
    \usebibmacro{bibindex}%
    \usebibmacro{begentry}%
100
    \usebibmacro{author}%
101
102
103
104
105
106
107
108
109
    \setunit{\addcolon\addspace}%
    \usebibmacro{title}%
    \setunit{\adddot\addspace}%
    \printfield{url}%
    \setunit{\addspace}%
    \usebibmacro{urldate}%
    \usebibmacro{finentry}%
}

110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
% Misc driver (for brochures etc.)
\DeclareBibliographyDriver{misc}{%
    \usebibmacro{bibindex}%
    \usebibmacro{begentry}%
    \usebibmacro{author}%
    \setunit{\addcolon\addspace}%
    \usebibmacro{title}%
    \setunit{\adddot\addspace}%
    \printlist{location}%
    \setunit{\addcomma\addspace}%
    \printfield{year}%
    \setunit{\adddot\addspace}%
    \printfield{type}%
    \usebibmacro{finentry}%
}

126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
\DeclareBibliographyDriver{inbook}{
    
}

\DeclareBibliographyDriver{article}{
    
}

\DeclareBibliographyDriver{thesis}{
    
}

\DeclareBibliographyDriver{inproceedings}{
    
}

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