summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/uni-wtal-ger/uni-wtal-ger.bbx
blob: 8209580e60fbddea9577b9842c4121c69c5b1233 (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
% uni-wtal-ger.bbx, v 0.2 2013-08-30, Carsten A. Dahlmann (Ace@Dahlmann.net)
% based on authortitle-dw by Dominik Waßenhoven

\ProvidesFile{uni-wtal-ger.bbx}

%% requires authortitle-dw
\RequireBibliographyStyle{authortitle-dw}

%% last name always first
\DeclareNameAlias{sortname}{last-first}

%% titles in italics
\DeclareFieldFormat{title}{\mkbibemph{#1\isdot}}
\DeclareFieldFormat{booktitle}{\mkbibemph{#1\isdot}}
\DeclareFieldFormat{maintitle}{\mkbibemph{#1\isdot}}
\DeclareFieldFormat{journaltitle}{\mkbibemph{#1}}

%% some punctation changes
\renewcommand*{\newunitpunct}{\addperiod\space}
\renewcommand*{\bibpagespunct}{\addperiod\space}
\renewcommand*{\finentrypunct}{\addperiod}

%% set delimiter between names
\renewcommand*{\bibmultinamedelim}{\addspace\slash\space}
\renewcommand*{\bibfinalnamedelim}{\addspace\slash\space}

%% vertical spacing between entrys
\setlength{\bibitemsep}{0.8\baselineskip}

%% change of abbreviations
\DefineBibliographyStrings{german}{%
  and={u\adddot},
  editor={Hg\adddot},
  editors={Hg\adddot},
  byeditor={hg\adddot\thinspace v\adddotspace},
  thiscite={hier\addcolon\thinspace},
  number={H\adddot},
  }

%% quotation marks for article, inbook, ...
\DeclareFieldFormat
  [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
  {title}{\mkbibquote{#1}}

%% idem for inbook, if author the same -- no \midsentence
\renewbibmacro*{bybookauthor}{%
  \ifnamesequal{author}{bookauthor}
    {\ifbool{bbx:edbyidem}
      {\bibstring[\mkidem]{idem\thefield{gender}}\addcolon}
      {\printnames{bookauthor}%
       \newunit\newblock}}
    {\printnames{bookauthor}%
     \newunit\newblock}}

%% magazines: date in brackets, also if volume empty
\renewbibmacro*{journal+issuetitle+afteryear}{%
  \setunit{\addcomma\space}%
  \printfield{eid}%
  \setunit{\addspace}%
  \iffieldundef{volume}
    {\iffieldundef{month}
      {}
      {\setunit{\addspace}}%
     \printtext[parens]{\usebibmacro{issue+date}}%
     \iffieldundef{number}
      {}
      {\setunit*{\addcomma\space\journumstring}%
       \printfield{number}}}%
    {\printtext[parens]{\usebibmacro{issue+date}}%
     \iffieldundef{number}
       {}
       {\setunit*{\journumstring}%
        \printfield{number}}}%
  \newunit\newblock
  \usebibmacro{issue}%
  \newunit
  \usebibmacro{ifuse:byeditor+others}%
  \newunit}

%% load style defaults
\ExecuteBibliographyOptions{
  journalnumber=afteryear,
  idembibformat=dash,
  maxnames=2,
  xref=true,
  bibwarn=false,
}

%\endinput