-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrwth-gib.bbx
63 lines (53 loc) · 1.63 KB
/
rwth-gib.bbx
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
% Create a new bibliography style
% Style template: authoryear
\ProvidesFile{rwth-gib.bbx}
\RequireBibliographyStyle{authoryear}
% #####################################
% Adjustments
% #####################################
% Name format: Surname, N.
\DeclareNameAlias{sortname}{family-given}
% Collon after author listing
\renewcommand*{\labelnamepunct}{\addcolon\addspace}
% Comma as separator between the listings
\renewcommand*{\newunitpunct}{\addcomma\addspace}
% Suppress that the titel is set in quotation marks
\DeclareFieldFormat*{citetitle}{#1\midsentence}
\DeclareFieldFormat*{title}{#1\midsentence}
% Set margin between two entrys
\setlength\bibitemsep{0.5\baselineskip}
% Authors and Year bold in bibliography
\renewbibmacro*{author}{\begingroup\bfseries%
\ifboolexpr{
test \ifuseauthor
and
not test {\ifnameundef{author}}
}
{\usebibmacro{bbx:dashcheck}
{\bibnamedash}
{\usebibmacro{bbx:savehash}%
\printnames{author}%
\iffieldundef{authortype}
{\setunit{\printdelim{nameyeardelim}}}
{\setunit{\printdelim{authortypedelim}}}}%
\iffieldundef{authortype}
{}
{\usebibmacro{authorstrg}%
\setunit{\printdelim{nameyeardelim}}}}%
{\global\undef\bbx@lasthash
\usebibmacro{labeltitle}%
\setunit*{\printdelim{nonameyeardelim}}}%
\usebibmacro{date+extradate}\endgroup}
\renewbibmacro*{doi+eprint+url}{%
\iftoggle{bbx:doi}
{\printfield{doi}}
{}%
\newunit\newblock
\iftoggle{bbx:eprint}
{\usebibmacro{eprint}}
{}%
\newunit\newblock
\iftoggle{bbx:url}
{\iffieldundef{doi}{\usebibmacro{url+urldate}}{}}
{}}
\endinput