diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-06 20:22:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-06 20:22:49 +0000 |
commit | b564ac6302e296f459f60885a711abc04867a9ee (patch) | |
tree | 0607921fcfd7090ab74193b2b50f3e46b7a45374 /Master/texmf-dist/tex | |
parent | 33ae17c3f2d723a2be46b9f79afbbb61c76adff4 (diff) |
biblatex-gb7714-2015 (6may21)
git-svn-id: svn://tug.org/texlive/trunk@59101 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
8 files changed, 251 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx index 40065b5686a..2ebf228c61e 100644 --- a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx @@ -11,7 +11,7 @@ % % 版本和时间信息 % -\def\versionofgbtstyle{2021/04/03 v1.0x} +\def\versionofgbtstyle{2021/05/06 v1.0y} \def\versionofbiblatex{\abx@version} \ProvidesFile{gb7714-2015.bbx}[\versionofgbtstyle biblatex bibliography style] %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求 @@ -213,6 +213,22 @@ % 设置宏包选项 %===================================================================== % + % 增加一个控制是否调整日期输出位置的选项mergedate + % 为兼容性考虑,但实际不产生作用了,因为如果要使用ay样式可以直接从bibstyle进入 + % 因为使用string所以只适用于biblatex3.3以上版本 + % 20210415,v1.0y,hzz + \DeclareBibliographyOption[string]{mergedate}[none]{% + \ifcsdef{bbx@opt@mergedate@#1} + {\csuse{bbx@opt@mergedate@#1}} + {}} + \ExecuteBibliographyOptions{mergedate} + + \def\bbx@opt@mergedate@none{}%none就是正常的顺序编码样式 + \def\bbx@opt@mergedate@true{}%none就是正常的顺序编码样式 + \def\bbx@opt@mergedate@false{}%none就是正常的顺序编码样式 + + + % % 增加一个控制是否输出恢复传统crossref作用的选项 % 20210216,v1.0w,hzz \newtoggle{bbx:citexref} @@ -750,6 +766,7 @@ \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}}{} \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}}{} \ifstrequal{#1}{gb7714-2015}{\setaligngbstyle}{} + \ifstrequal{#1}{gb7714-2015ay}{\setaligngbstyleay}{} } } {% 针对biblatex<3.3版本的选项设置 @@ -793,6 +810,7 @@ \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}}{} \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}}{} \ifstrequal{#1}{gb7714-2015}{}{} + \ifstrequal{#1}{gb7714-2015ay}{\setaligngbstyleay}{} } } @@ -1356,6 +1374,24 @@ \step[fieldset=langid,fieldvalue={english}] \step[fieldset=lansortorder,fieldvalue=\lankrorder] } + \map[overwrite]{%bib中abstract和howpublished常出现特殊字符这里做一下预处理。 + \step[fieldsource={howpublished}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}] + } + \map[overwrite]{ + \step[fieldsource={abstract}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}] + } + \map[overwrite]{ + \step[fieldsource={howpublished}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}] + } + \map[overwrite]{ + \step[fieldsource={abstract}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}] + } + \map[overwrite]{%&符号处理 + \step[fieldsource={abstract}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}] + } + \map[overwrite]{%&符号处理 + \step[fieldsource={howpublished}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}] + } } } @@ -1505,7 +1541,7 @@ \map[overwrite]{ \step[fieldsource={location}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}] } - \map[overwrite]{ + \map[overwrite]{%&符号处理 \step[fieldsource={institution}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}] } \map[overwrite]{ @@ -2111,6 +2147,23 @@ test {\iftoggle{iftlseven}}%biblatex<=3.7 {\endgroup} {\itemcmd}} +% +% 增加一个作者年制文献表格式的文献表输出环境。 +% 20210411,hzz,v1.0x +\def\setaligngbstyleay{% +\setlength{\bibhang}{1em} +\setlength{\bibitemindent}{-\bibhang} +\setlength{\bibitemsep}{4.5pt} +\defbibenvironment{bibliography} + {\list + {} + {\setlength{\leftmargin}{\bibhang}% + \setlength{\itemindent}{\bibitemindent}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}} + {\endlist} + {\item} +} %===================================================================== % 设置单元或块等的标点 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 9ce600b2bfa..a407be98e05 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 @@ -7,7 +7,7 @@ %% Released under the LaTeX Project Public License v1.3c or later %% --------------------------------------------------------------- %% -\def\versionofgbtstyle{2021/04/03 v1.0x} +\def\versionofgbtstyle{2021/05/06 v1.0y} \ProvidesFile{gb7714-2015.cbx}[\versionofgbtstyle biblatex citation style] % @@ -38,6 +38,7 @@ % % 修订使可用选项gblabelref来控制是否将标准标签中的作者加上超链接 % 20210121,v1.0w,hzz +% \iftoggle{iftlatest}% {\renewbibmacro*{textcite}{% \iffieldequals{namehash}{\cbx@lasthash} @@ -88,6 +89,25 @@ \setcounter{cbx@tempcnta}{0}% \global\undef\cbx@lastprefix} +%biblatex v3.15 增加了一堆标点命令如\multiciterangedelim +%为方便用户定义,在新的版本中使用新的{cite:dump},尽管前面的定义也没有问题 +%前面的定义是适用于biblatex v2.8以后的版本的,从16年到20年都没动过 +%而且也适用于最新的版本,biblatex本身兼容性做的也还是不错的。 +\@ifpackagelater{biblatex}{2020/08/15}{%v3.15 2020-08-16 + \renewbibmacro*{cite:dump}{% + \usebibmacro{cite:dump:inset}% + % dump labelnumber (+labelprefix) + \ifnumgreater{\value{cbx@tempcnta}}{0} + {\ifnumgreater{\value{cbx@tempcnta}}{0}%1改为0,可以将压缩起始3个编号改为2个编号 + {\setunit{\multiciterangedelim}} + {\setunit{\multicitedelim}}% + \usebibmacro{cite:print:last:labelnumber}% + \global\undef\cbx@lastprefix} + {}% + \setcounter{cbx@tempcnta}{0}% + }% +}{} + % % 定义一个上标方括号wrapper % @@ -109,6 +129,14 @@ \mkbibbrackets{##1}}% #1\endgroup}\kern\z@} +\newrobustcmd{\mkbibsuperscriptusp}[1]{% + \unspace\allowhyphens\textsuperscript{% + \begingroup + \protected\long\def\mkbibsuperscriptusp##1{% + \blx@warning{Nested superscript}% + \mkbibbrackets{##1}}% + #1\endgroup}} + % % 重定义cite命令 % @@ -154,7 +182,7 @@ {} {%[ \usebibmacro{cite:dump}]% - \mkbibsuperscript{\printfield{postnote}}} + \mkbibsuperscriptusp{\printfield{postnote}}} % % 新定义pagescite命令,以满足标签带页码的国标要求 @@ -243,9 +271,11 @@ % % 重定义citet,因为前面与\authornumcite同定义的命令无法正确处理多个bibtexkey同时给出的压缩情况 -% 20200721,v1.0v,hzz +% 20200721,v1.0v,hzz % 方法:利用textcite命令进行定义 % 基本利用textcite命令来写citet,仅利用bool{cbx:incitet}做判断,进而处理不同的上标和页码形式 +% 20210416,v1.0y,hzz:将namelabeldelim标点注释掉了,因为中文环境下不需要, +% 若有需要可以用context sensitive的形式做定义 \newbool{cbx:incitet} \global\booltrue{cbx:incitet} @@ -263,7 +293,7 @@ \ifnameundef{labelname} {\printfield[citetitle]{labeltitle}} {\printnames{labelname}}% - \setunit*{\printdelim{namelabeldelim}}% + %\setunit*{\printdelim{namelabeldelim}}% \mkbibsuperscript{\printtext{\bibopenbracket}\global\booltrue{cbx:parens}% \ifnumequal{\value{citecount}}{1} {\usebibmacro{prenote}}% @@ -378,7 +408,7 @@ \newbibmacro*{citec:dump}{% \ifnumgreater{\value{cbx@tempcnta}}{0} - {\ifnumgreater{\value{cbx@tempcnta}}{1} + {\ifnumgreater{\value{cbx@tempcnta}}{0}%从1改成0就是从3个开始压缩改成2个开始压缩 {\bibrangedash} {\multicitedelim}% \bibhyperref[\cbx@lastkey]{% @@ -409,7 +439,8 @@ {} {\usebibmacro{citec:dump}% \usebibmacro{cite:init}% - \setunit{\multicitedelim}}} + \setunit{\multicitedelim}% + }} {\usebibmacro{citec:dump}% \usebibmacro{cite:init}% \setunit{\multicitedelim}% @@ -420,7 +451,8 @@ {\ifboolexpr{ test {\ifnumequal{\value{multicitecount}}{\value{multicitetotal}}} or not test {\iffieldundef{postnote}}} {\usebibmacro{citec:dump}% - \usebibmacro{postnote}} + \printfield{postnote}% + } {}} \DeclareMultiCiteCommand{\citecs}[\mkbibsuperscript]{\citec}{} diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.bbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.bbx index 098e4b9462c..2ecd604b010 100644 --- a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.bbx @@ -10,7 +10,7 @@ % % 版本和时间信息 % -\def\versionofgbtstyle{2021/04/03 v1.0x} +\def\versionofgbtstyle{2021/05/06 v1.0y} \def\versionofbiblatex{\abx@version} \ProvidesFile{gb7714-2015ay.bbx}[\versionofgbtstyle biblatex bibliography style] %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求 @@ -591,6 +591,17 @@ %为姓名格式选择增加的计数器 \newcounter{gbnamefmtcase} \def\thegbnamefmtcase{\the\c@gbnamefmtcase} + %为数字标签格式选择增加的计数器/命令 + \newcommand{\mkgbnumlabel}[1]{\mkbibbrackets{#1}} + \def\gbbiblabelopt@bracket{\renewcommand{\mkgbnumlabel}[1]{\mkbibbrackets{##1}}} + \def\gbbiblabelopt@parens{\renewcommand{\mkgbnumlabel}[1]{\mkbibparens{##1}}} + \def\gbbiblabelopt@dot{\renewcommand{\mkgbnumlabel}[1]{##1\adddot}} + \def\gbbiblabelopt@plain{\renewcommand{\mkgbnumlabel}[1]{##1}} + \def\gbbiblabelopt@box{\renewcommand{\mkgbnumlabel}[1]{\framebox{##1}}} + \def\gbbiblabelopt@circle{\renewcommand{\mkgbnumlabel}[1]{\textcircled{##1}}} + %为文献表中数字标签对齐方式选择增加的计数器/命令 + \newcounter{gbalignlabel} + \def\thegbalignlabel{\the\c@gbalignlabel} %为引用标签标注/文献表中本地化字符串中英文选择增加的计数器/命令 \newcounter{gbcitelocalcase} \newcounter{gbbiblocalcase} @@ -666,7 +677,10 @@ % 增加序号标签格式处理选项,作者年制不做处理,给出只为兼容选项考虑 % v1.0l,20180623,hzz % - \DeclareBibliographyOption[string]{gbbiblabel}[bracket]{} + \DeclareBibliographyOption[string]{gbbiblabel}[bracket]{% + \csuse{gbbiblabelopt@#1} + } + \ExecuteBibliographyOptions{gbbiblabel} % % 增加姓名大小写格式处理选项 @@ -686,7 +700,13 @@ % 增加标签对齐选项 % %因为在作者年制中,不需要使用,这里也增加,为了与顺序编码制的兼容性考虑。 - \DeclareBibliographyOption[string]{gbalign}[right]{}% + \DeclareBibliographyOption[string]{gbalign}[gb7714-2015ay]{ + \ifstrequal{#1}{right}{\setcounter{gbalignlabel}{0}\setaligngbnumeric}{} + \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}\setaligngbnumeric}{} + \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}\setaligngbnumeric}{} + \ifstrequal{#1}{gb7714-2015}{\setaligngbstyle}{} + \ifstrequal{#1}{gb7714-2015ay}{}{}%默认就是ay样式的 + }% @@ -704,7 +724,10 @@ % 增加序号标签格式处理选项,作者年制不做处理,给出只为兼容选项考虑 % v1.0l,20180623,hzz % - \DeclareBibliographyOption{gbbiblabel}[bracket]{} + \DeclareBibliographyOption{gbbiblabel}[bracket]{% + \csuse{gbbiblabelopt@#1} + } + \ExecuteBibliographyOptions{gbbiblabel} % % 增加姓名大小写格式处理选项 @@ -724,7 +747,13 @@ % 增加标签对齐选项 % %因为在作者年制中,不需要使用,这里也增加,为了与顺序年制的兼容性考虑。 - \DeclareBibliographyOption{gbalign}[right]{}% + \DeclareBibliographyOption{gbalign}[gb7714-2015ay]{% + \ifstrequal{#1}{right}{\setcounter{gbalignlabel}{0}\setaligngbnumeric}{} + \ifstrequal{#1}{left}{\setcounter{gbalignlabel}{1}\setaligngbnumeric}{} + \ifstrequal{#1}{center}{\setcounter{gbalignlabel}{2}\setaligngbnumeric}{} + \ifstrequal{#1}{gb7714-2015}{\setaligngbstyle}{} + \ifstrequal{#1}{gb7714-2015ay}{}{} + }% } @@ -1452,6 +1481,24 @@ % address,location,institution,organization}]{ % \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}] % } + \map[overwrite]{%bib中abstract和howpublished常出现特殊字符这里做一下预处理。 + \step[fieldsource={howpublished}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}] + } + \map[overwrite]{ + \step[fieldsource={abstract}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}] + } + \map[overwrite]{ + \step[fieldsource={howpublished}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}] + } + \map[overwrite]{ + \step[fieldsource={abstract}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}] + } + \map[overwrite]{%&符号处理 + \step[fieldsource={abstract}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}] + } + \map[overwrite]{%&符号处理 + \step[fieldsource={howpublished}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}] + } } } @@ -1849,8 +1896,8 @@ test {\iftoggle{iftlseven}}%biblatex<=3.7 % % 增加一个\bibitemindent尺寸用于控制list环境的itemindent % v1.0l,20180615,hzz -\setlength{\bibhang}{1em} \newlength{\bibitemindent} +\setlength{\bibhang}{1em} \setlength{\bibitemindent}{-\bibhang} \setlength{\bibitemsep}{4.5pt} \defbibenvironment{bibliography} @@ -1863,19 +1910,43 @@ test {\iftoggle{iftlseven}}%biblatex<=3.7 {\endlist} {\item} % -% 增加一个numerical环境用于自动显示数字 -% v1.0w,20210311,hzz -\newcounter{refnumerical} +% 增加一个numeric环境用于自动显示数字 +% v1.0w,20210311,hzz +% v1.0x,20210411,hzz,整合到gbalign选项中。 +\newcounter{refnumeric} \newlength{\biblabelextend} -\defbibenvironment{numerical} +\def\setaligngbnumeric{% +\defbibenvironment{bibliography} + {\setlength{\bibhang}{\biblabelsep}% + \setlength{\labelnumberwidth}{2em}% + \setlength{\bibitemindent}{0pt}% + \setlength{\biblabelextend}{0pt}% + \setlength{\biblabelextend}{0pt}% + \list + {\printtext[labelnumberwidth]{\arabic{refnumeric}}} + {\usecounter{refnumeric}% + \addtolength{\labelnumberwidth}{\biblabelextend}% + \setlength{\labelwidth}{\labelnumberwidth}% + \setlength{\labelsep}{\biblabelsep}% + \setlength{\leftmargin}{\bibhang}% + \addtolength{\leftmargin}{\labelnumberwidth}% + \setlength{\itemindent}{\bibitemindent}% + \setlength{\itemsep}{\bibitemsep}% + \setlength{\parsep}{\bibparsep}}% + \renewcommand*{\makelabel}[1]{\hss####1}} + {\endlist} + {\item} +} + +\defbibenvironment{numerical}%作者年制中数字标签的文献表环境 {\setlength{\bibhang}{\biblabelsep}% \setlength{\labelnumberwidth}{2em}% \setlength{\bibitemindent}{0pt}% \setlength{\biblabelextend}{0pt}% \setlength{\biblabelextend}{0pt}% \list - {\printtext[labelnumberwidth]{[\arabic{refnumerical}]}} - {\usecounter{refnumerical}% + {\printtext[labelnumberwidth]{\arabic{refnumeric}}} + {\usecounter{refnumeric}% \addtolength{\labelnumberwidth}{\biblabelextend}% \setlength{\labelwidth}{\labelnumberwidth}% \setlength{\labelsep}{\biblabelsep}% @@ -1888,6 +1959,65 @@ test {\iftoggle{iftlseven}}%biblatex<=3.7 {\endlist} {\item} +\DeclareFieldFormat{labelnumberwidth}{% +\ifcase\value{gbalignlabel}%右对齐,整个标签为右对齐 + \mkgbnumlabel{#1}% +\or%左对齐,整个标签为左对齐 + \mkgbnumlabel{#1}\hfill% +\or%中间对齐,比如:序号数字居于[]中间 + \hfil\mkgbnumlabel{\hfill#1\hfill}\hfil% +\fi} + +% +% 修改序号标签格式为以各条参文献为基础进行对齐的方式,即序号与条目内容间隔相等的方式。 +\def\setaligngbstyle{% +\def\blx@bibitem##1{% + \blx@ifdata{##1} + {\begingroup + \blx@getdata{##1}% + \blx@bibcheck + \iftoggle{blx@skipentry}{}{% + \blx@setdefaultrefcontext{##1}% + \global\let\blx@noitem\@empty + \blx@setoptions@type\abx@field@entrytype + \blx@setoptions@entry + \blx@thelabelnumber + \addtocounter{instcount}\@ne + \blx@initsep + \blx@namesep + \csuse{blx@item@\blx@theenv}\relax +% \blx@initsep %移动到上面去,恢复bibnamesep等的作用机制 +% \blx@namesep + \csuse{blx@hook@bibitem}% + \blx@execute + \blx@initunit + \blx@anchor + \blx@beglangbib + \bibsentence + \blx@pagetracker + \blx@driver\abx@field@entrytype + \blx@postpunct + \blx@endlangbib}% + \par\endgroup}%这里增加了一个\par + {}} +\newlength{\lengthid} +\newlength{\lengthlw} +\newcommand{\itemcmd}{% +\settowidth{\lengthid}{\mkgbnumlabel{\arabic{refnumeric}}} +\addtolength{\lengthid}{\biblabelsep} +\setlength{\lengthlw}{\textwidth} +\addtolength{\lengthlw}{-\lengthid} +\addvspace{\bibitemsep}%恢复\bibitemsep的作用 +%\parshape 2 0em \textwidth \lengthid \lengthlw +\hangindent\lengthid +\mkgbnumlabel{\arabic{refnumeric}}% +\hspace{\biblabelsep}} +% +% 简单的段落环境 +\defbibenvironment{bibliography} +{\begingroup\setcounter{refnumeric}{0}\setlength{\parindent}{0em}} +{\endgroup} +{\stepcounter{refnumeric}\itemcmd}} %===================================================================== diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx index b5c3a34dd86..e965dc84f8c 100644 --- a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.cbx @@ -7,7 +7,7 @@ %% Released under the LaTeX Project Public License v1.3c or later %% --------------------------------------------------------------- %% -\def\versionofgbtstyle{2021/04/03 v1.0x} +\def\versionofgbtstyle{2021/05/06 v1.0y} \ProvidesFile{gb7714-2015ay.cbx}[\versionofgbtstyle biblatex citation style] % diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.bbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.bbx index 635eeed2a8a..f3258300196 100644 --- a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.bbx @@ -11,7 +11,7 @@ % % 版本和时间信息 % -\def\versionofgbtstyle{2021/04/03 v1.0x} +\def\versionofgbtstyle{2021/05/06 v1.0y} \def\versionofbiblatex{\abx@version} \ProvidesFile{gb7714-2015ms.bbx}[\versionofgbtstyle biblatex bibliography style] %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求 @@ -1159,14 +1159,16 @@ \step[fieldset=keywords, fieldvalue={,}, append] \step[fieldset=keywords, origfieldval, append] } - \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{ + \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,% + address,location,institution,organization,abstract,howpublished}]{ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}] } - \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{ + \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,% + address,location,institution,organization,abstract,howpublished}]{ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}] } \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,% - address,location,institution,organization}]{ + address,location,institution,organization,abstract,howpublished}]{ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}] } } diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx index f46151d4ed3..b718fde0500 100644 --- a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.cbx @@ -7,7 +7,7 @@ %% Released under the LaTeX Project Public License v1.3c or later %% --------------------------------------------------------------- %% -\def\versionofgbtstyle{2021/04/03 v1.0x} +\def\versionofgbtstyle{2021/05/06 v1.0y} \ProvidesFile{gb7714-2015ms.cbx}[\versionofgbtstyle biblatex citation style] % diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.bbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.bbx index 99b6847fde4..49a4f328c65 100644 --- a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.bbx @@ -11,7 +11,7 @@ % % 版本和时间信息 % -\def\versionofgbtstyle{2021/04/03 v1.0x} +\def\versionofgbtstyle{2021/05/06 v1.0y} \def\versionofbiblatex{\abx@version} \ProvidesFile{gb7714-2015mx.bbx}[\versionofgbtstyle biblatex bibliography style] %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求 @@ -1253,14 +1253,16 @@ \step[fieldset=keywords, fieldvalue={,}, append] \step[fieldset=keywords, origfieldval, append] } - \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{ + \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,% + address,location,institution,organization,abstract,howpublished}]{ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\#}, replace=\regexp{$1\\\#}] } - \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,address,location,institution,organization}]{ + \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,% + address,location,institution,organization,abstract,howpublished}]{ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\%}, replace=\regexp{$1\\\%}] } \map[overwrite, foreach={title,booktitle,journaltitle,journal,publisher,% - address,location,institution,organization}]{ + address,location,institution,organization,abstract,howpublished}]{ \step[fieldsource=\regexp{$MAPLOOP}, match=\regexp{([^\\])\x26}, replace=\regexp{$1\\\x26}] } } diff --git a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.cbx b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.cbx index c33d610756b..4ab0cd54278 100644 --- a/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.cbx @@ -7,7 +7,7 @@ %% Released under the LaTeX Project Public License v1.3c or later %% --------------------------------------------------------------- %% -\def\versionofgbtstyle{2021/04/03 v1.0x} +\def\versionofgbtstyle{2021/05/06 v1.0y} \ProvidesFile{gb7714-2015mx.cbx}[\versionofgbtstyle biblatex citation style] % |