From d529109bf475e3f1e220ce0e980e104b1a7e3c6b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Wed, 23 Feb 2022 03:01:16 +0000 Subject: CTAN sync 202202230301 --- .../biblatex-gb7714-2015/gb7714-2015.cbx | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx') diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx index 8ce01ed872..0f695be5d3 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx +++ b/macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx @@ -22,6 +22,15 @@ \settoggle{bbx:gblabelref}{#1}} \ExecuteBibliographyOptions{gblabelref} +% +% 增加一个控制是否进行标注标签压缩的选项 +% 20220212,v1.1c,hzz +\newtoggle{bbx:gbcitecomp} +\DeclareBibliographyOption{gbcitecomp}[true]{%biblatex低版本 + \settoggle{bbx:gbcitecomp}{#1}} +\ExecuteBibliographyOptions{gbcitecomp} + + % % 增加标签包围符号格式处理选项 % 20211030,1.1a,hzz @@ -519,3 +528,26 @@ \DeclareMultiCiteCommand{\citecs}[\mkbibsuperscript]{\citec}{} \DeclareMultiCiteCommand{\authornumcites}[]{\authornumcite}{\multicitedelim} + +%如果标注标签不进行压缩可以则重定义如下: +\iftoggle{bbx:gbcitecomp}% +{\newbibmacro*{cite}{% + \printtext[bibhyperref]{% + \printfield{labelprefix}% + \printfield{labelnumber}% + \ifbool{bbx:subentry} + {\printfield{entrysetcount}} + {}}} +\DeclareCiteCommand{\cite}[\mkbibsuperscript]% + {\mkbibleftborder\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\mkbibrightborder\usebibmacro{postnote}} +\DeclareCiteCommand{\parencite}% + {\mkbibleftborder\usebibmacro{prenote}} + {\usebibmacro{citeindex}% + \usebibmacro{cite}} + {\multicitedelim} + {\mkbibrightborder\mkbibsuperscriptusp{\usebibmacro{postnote}}} +}{} -- cgit v1.2.3