Initial commit
This commit is contained in:
40
thuthesis-bachelor.cbx
Normal file
40
thuthesis-bachelor.cbx
Normal file
@@ -0,0 +1,40 @@
|
||||
\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}}}}
|
||||
Reference in New Issue
Block a user