blob: d268a5b96aabd7696598cf97834f5e4a3eaf3a0c (
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
|
\ProvidesFile{thuthesis-inline.cbx}[2020/08/01 v1.0 ThuThesis biblatex
citation style]
\RequireCitationStyle{gb7714-2015}
\ExecuteBibliographyOptions{
autocite = inline ,
}
% 修改 \mkbibsuperscript 宏在最后加上一个空白使得 xeCJK 不会自动在引用标签后面加上中英文之间的空白
\DeclareRobustCommand{\mkbibsuperscriptusp}[1]{%
\unspace\allowhyphens\textsuperscript{%
\begingroup
\protected\long\def\mkbibsuperscriptusp##1{%
\blx@warning{Nested superscript}%
\mkbibbrackets{##1}}%
#1\endgroup}}
% 这里把 gb7714-2015.cbx 中 \parencite 定义借鉴过来
\DeclareCiteCommand{\cite}%[\mkbibbrackets]
{[\usebibmacro{cite:init}%]
\usebibmacro{prenote}}%
{\usebibmacro{citeindex}%
\usebibmacro{cite:comp}}
{}
{%[
\usebibmacro{cite:dump}]%
\mkbibsuperscriptusp{\printfield{postnote}}}
|