summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/thuthesis/thuthesis-inline.cbx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/thuthesis/thuthesis-inline.cbx')
-rw-r--r--macros/latex/contrib/thuthesis/thuthesis-inline.cbx12
1 files changed, 11 insertions, 1 deletions
diff --git a/macros/latex/contrib/thuthesis/thuthesis-inline.cbx b/macros/latex/contrib/thuthesis/thuthesis-inline.cbx
index bec04d1d44..d268a5b96a 100644
--- a/macros/latex/contrib/thuthesis/thuthesis-inline.cbx
+++ b/macros/latex/contrib/thuthesis/thuthesis-inline.cbx
@@ -7,6 +7,16 @@
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}}%
@@ -15,4 +25,4 @@
{}
{%[
\usebibmacro{cite:dump}]%
- \mkbibsuperscript{\printfield{postnote}}}
+ \mkbibsuperscriptusp{\printfield{postnote}}}