diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-22 21:06:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-22 21:06:55 +0000 |
commit | d34d7c190abdd90d69e29619eb6660f0e039279f (patch) | |
tree | c19e66cfe96895b7d2c34b25603c5bb06f98f070 /Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx | |
parent | b934a78f7689c165efe1150c31acdf0937e8ca5a (diff) |
biblatex-gb7714-2015 (22feb22)
git-svn-id: svn://tug.org/texlive/trunk@62139 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx index 8ce01ed8729..0f695be5d36 100644 --- a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx +++ b/Master/texmf-dist/tex/latex/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}}} +}{} |