diff options
author | Norbert Preining <norbert@preining.info> | 2022-02-23 03:01:16 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-02-23 03:01:16 +0000 |
commit | d529109bf475e3f1e220ce0e980e104b1a7e3c6b (patch) | |
tree | af59aa7f9553f1cb355b3d98042ffa26a2e61184 /macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx | |
parent | fb013a78d9e3aef2ecf58702d4adcec8d9ab6b28 (diff) |
CTAN sync 202202230301
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx')
-rw-r--r-- | macros/latex/contrib/biblatex-contrib/biblatex-gb7714-2015/gb7714-2015.cbx | 32 |
1 files changed, 32 insertions, 0 deletions
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 @@ -23,6 +23,15 @@ \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}}} +}{} |