-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathustcthesis-authoryear.bbx
More file actions
29 lines (24 loc) · 922 Bytes
/
ustcthesis-authoryear.bbx
File metadata and controls
29 lines (24 loc) · 922 Bytes
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
\ProvidesFile{ustcthesis-authoryear.bbx}[2021/01/19 v1.0 USTCThesis biblatex
bibliography style]
\RequireBibliographyStyle{gb7714-2015ay}
\ExecuteBibliographyOptions{gbpub = false}
\DeclareDelimFormat{nameyeardelim}{\addperiod\space}
\DeclareDelimFormat[bib,biblist]{nameyeardelim}{\addperiod\space}
\DeclareFieldFormat{titlecase}{\iftoggle{bbx:titlelink}{%
\iffieldundef{url}{\MakeSentenceCase{#1}}{%
\href{\thefield{url}}{#1}}}{\MakeSentenceCase{#1}}}
\DeclareFieldFormat{booktitlecase}{\MakeCapital{#1}}
\renewbibmacro*{booktitle}{%
\ifboolexpr{
test {\iffieldundef{booktitle}}
and
test {\iffieldundef{booksubtitle}}
}
{}
{\printtext[booktitle]{\bibtitlefont%
\printfield[booktitlecase]{booktitle}%
\setunit{\subtitlepunct}%
\printfield[booktitlecase]{booksubtitle}}%
\newunit%标点换成下一句
\setunit{\subtitlepunct}}%
\printfield{booktitleaddon}}