41 lines
1.3 KiB
TeX
41 lines
1.3 KiB
TeX
\ProvidesFile{thuthesis-bachelor.cbx}[2020/08/01 v1.0 ThuThesis biblatex
|
|
citation style]
|
|
|
|
\RequireCitationStyle{gb7714-2015}
|
|
|
|
% 本科生的顺序编码制引用两个连续序号之间使用逗号分割。
|
|
\setcounter{gbrefcompress}{3}
|
|
|
|
\renewrobustcmd{\mkbibsuperscript}[1]{%
|
|
\unspace\allowhyphens\textsuperscript{%
|
|
\begingroup
|
|
\protected\long\def\mkbibsuperscript##1{%
|
|
\blx@warning{Nested superscript}%
|
|
\mkbibbrackets{##1}}%
|
|
#1\endgroup}\kern\z@}
|
|
|
|
\renewbibmacro*{citet}{%
|
|
\iffieldequals{namehash}{\cbx@lasthash}%
|
|
{\mkbibsuperscript{\usebibmacro{cite:comp}}}%
|
|
{\usebibmacro{cite:dump}%
|
|
\ifbool{cbx:parens}%
|
|
{\mkbibsuperscript{{\hspace{-0.075em}\mkbibrightborder}}%\bibclosebracket
|
|
\global\boolfalse{cbx:parens}}%\printtext
|
|
{}%
|
|
\iffirstcitekey
|
|
{}
|
|
{\textcitedelim}%
|
|
\usebibmacro{cite:init}%
|
|
\ifnameundef{labelname}
|
|
{\printfield[citetitle]{labeltitle}}
|
|
{\printnames{labelname}}%
|
|
%\setunit*{\printdelim{namelabeldelim}}%
|
|
\mkbibsuperscript{\printtext{\mkbibleftborder}%\bibopenbracket
|
|
\global\booltrue{cbx:parens}%
|
|
\ifnumequal{\value{citecount}}{1}
|
|
{\usebibmacro{prenote}}%
|
|
{}%
|
|
\usebibmacro{cite:comp}%
|
|
\stepcounter{textcitecount}%
|
|
\savefield{namehash}{\cbx@lasthash}}}}
|