-
Notifications
You must be signed in to change notification settings - Fork 394
/
ustcthesis-bachelor.bbx
56 lines (48 loc) · 1.16 KB
/
ustcthesis-bachelor.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
\ProvidesFile{ustcthesis-bachelor.bbx}[2021/01/19 v1.0 USTCThesis biblatex
bibliography style]
\RequireBibliographyStyle{gb7714-2015}
\ExecuteBibliographyOptions{
gbnamefmt = lowercase,
gbtype = false,
gbpub = false,
gbalign = left,
maxbibnames = 3, %将文献列表和引用中最大名字数量区分开
minbibnames = 1,
}
\renewrobustcmd*{\bibinitdelim}{}
\DeclareDelimFormat[bib,biblist]{andothersdelim}{%
\iffieldequalstr{userd}{english}{\addcomma\addspace}{}%
}
\DeclareFieldFormat{title}{%
\iffieldequalstr{userd}{english}{%
\mkbibemph{#1}%
}{%
#1%
}%
}
\DeclareFieldFormat
[inbook,incollection,inproceedings,patent,thesis,unpublished]
{title}{#1}
\DeclareFieldFormat[article]{title}{%
\iffieldequalstr{userd}{english}{}{#1}%
}
\DeclareFieldFormat{booktitle}{%
\iffieldequalstr{userd}{english}{%
\mkbibemph{#1}%
}{%
#1%
}%
}
\DeclareFieldFormat{journaltitle}{%
\iffieldequalstr{userd}{english}{%
\mkbibemph{#1}%
}{%
#1\isdot
}%
}
\DefineBibliographyExtras{english}{%
\renewcommand*{\bibrangedash}{%
\iffieldequalstr{userd}{chinese}{~}{--}%
}%
}
\renewcommand*{\finentrypunct}{}