summaryrefslogtreecommitdiff
path: root/info/dtk-bibliography/dtk-authoryear.bbx
blob: 0f7be0ecb6403049454cef3614dec193f7b27e74 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
%% ---------------------------------------------------------------
%% Rolf Niepraschk, Rolf.Niepraschk@dante.de
%%
%% Released under the LaTeX Project Public License v1.3c or later
%% See http://www.latex-project.org/lppl.txt
%% ---------------------------------------------------------------

\ProvidesFile{dtk-authoryear.bbx}
  [2019/02/09 v0.2 biblatex bibliography style for DTK bibliography]

% Load the standard style to avoid copy-pasting unnecessary material
\RequireBibliographyStyle{authoryear}

\setlength{\bibinitsep}{\baselineskip}
\setlength{\bibnamesep}{.25\baselineskip}
\setlength{\bibhang}{0pt}

\renewcommand*{\newunitpunct}{\addcomma\space}
\DeclareDelimFormat[bib]{nametitledelim}{\addcolon\space}

\DeclareNameAlias{sortname}{family-given}

\DeclareFieldFormat[article]{title}{\mkbibemph{#1\isdot}}
\DeclareFieldFormat{journaltitle}{#1}
\DeclareFieldFormat[article]{volume}{%
  \mkbibparens{\mkbibmascord{#1}~\bibstring{jourvol}}}

\NewBibliographyString{license}
\DefineBibliographyStrings{german}{
  license = {Lizenz},
}

\DeclareFieldFormat{license}{%
  \bibstring{license}: #1\isdot}


\renewbibmacro*{journal+issuetitle}{%
  \usebibmacro{journal}%
  \setunit*{\addspace}%
  \usebibmacro{volume+number+eid}%
  %\setunit{\addspace}%
  %\usebibmacro{issue+date}%
  %\setunit{\addcolon\space}%
  %\usebibmacro{issue}%
  \newunit}

\renewbibmacro*{volume+number+eid}{%
  \printfield{number}%
  \setunit{\addnbthinspace\slash\addnbthinspace}%
  \printfield{year}%
  \setunit{\addspace}%
  \printfield{volume}%
}

\renewbibmacro*{note+pages}{%
  \printfield{note}%
  \setunit{\bibpagespunct}%
  \printfield{pages}%
  \setunit{\addcomma\space}%
  \printfield{license}%
  \newunit
}

\defbibfilter{hinterderbuehne_ohne_grusswort}{
  keyword=hinterbuehne
  and not keyword=grusswort
}

\defbibfilter{artikel}{
  not keyword=hinterbuehne
}


\endinput