diff options
10 files changed, 240 insertions, 167 deletions
diff --git a/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf b/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf Binary files differindex a0dae26ec42..c6a841b3076 100644 --- a/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf +++ b/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf diff --git a/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.tex b/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.tex index d0513bffb89..dc81acdede4 100644 --- a/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.tex +++ b/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.tex @@ -1255,7 +1255,7 @@ leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt] 对于顺序编码制文献表,由于存在数字标签,且其宽度与参考文献数量相关,所以这个宽度是动态变的,无能提前设定的,而是在文献表生成时给出,所以调整缩进需要在文献表输出环境中调整。由于顺序编码样式使用了两类输出环境,所以需要根据设定的选项区分处理: -一是采用list环境的文献表,即设置gbalign=left、right、center时(即顺序编码标签是左对齐、右对齐和居中对齐的情况),在重定义的文献表环境中,调整bibitemindent和bibhang两个尺寸,默认情况下bibhang+labelnumberwidth的长度是页边到各行起始位置的距离。 +一是采用list环境的文献表,即设置gbalign=left、right、center时(即顺序编码标签是左对齐、右对齐和居中对齐的情况),在重定义的文献表环境中,调整bibitemindent和bibhang两个尺寸,默认情况下bibhang+labelnumberwidth的长度是页边到各行起始位置的距离。当采用某些字体导致计算计算的标签宽度不足时,可以设置biblabelextend尺寸,来增加labelnumberwidth的宽度,避免缩进格式产生问题,默认情况下biblabelextend尺寸为0pt。 二是采用正常段落环境的文献表,即设置gbalign=gb7714-2015时(即项对齐情况,就是各条文献是自身对齐的情况),在重定义的命令中通过调整lengthid尺寸来设置每条参考文献第二行开始的缩进距离。 调整方法见例\ref{eg:biblist:hspace}。 @@ -1590,7 +1590,7 @@ leftrule=0pt,rightrule=0pt,toprule=0.4pt,bottomrule=0.4pt] 对于西方语言, biblatex基于 babel/polyglossia宏包,结合autolang/language等选项和langid/langidopt等域,提供了一套多语言解决方案。 \begin{itemize} -\item 首先,对不同语言的文献,设置langid域为文献所用语言,比如英文文献则设置langid域等于english,俄文文献则设置等于rassian。 +\item 首先,对不同语言的文献,设置langid域为文献所用语言,比如英文文献则设置langid域等于english,俄文文献则设置等于russian。 \item 其次,在biblatex加载时设置 autolang选项,等于none则不做多语言处理,等于hyphen则仅做不同语言的断词处理,等于other或other*则处理不同语言的断词和本地化字符串,other*选项等价于使用babel的otherlanguage*环境,与other的差别在于不忽略环境后的空白。从实践看,当要使用条目集时,使用other*选项更为合适。 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 2178050a455..f7aee9c42c0 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{2019/08/28 v1.0s} +\def\versionofgbtstyle{2020/03/20 v1.0u} \def\versionofbiblatex{\abx@version} \ProvidesFile{gb7714-2015.bbx}[\versionofgbtstyle biblatex bibliography style] %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求 @@ -1152,10 +1152,6 @@ \step[fieldsource=entrykey] \step[fieldset=keywords, origfieldval] } - \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题 - \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]% - \step[fieldset=userd, fieldvalue={chinese}] - } \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1171,14 +1167,14 @@ \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userd,fieldvalue={korean}]%韩语 } + \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题 + \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]% + \step[fieldset=userd, fieldvalue={chinese}] + } \map{%将没有设置userd,且存在title域的默认设置为英文 \step[fieldsource=title,final] \step[fieldset=userd,fieldvalue={english}] } - \map{%作者的中文判断 - \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] - \step[fieldset=userf, fieldvalue={chinese}] - } \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1194,14 +1190,14 @@ \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userf,fieldvalue={korean}]%韩语 } + \map{%作者的中文判断 + \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] + \step[fieldset=userf, fieldvalue={chinese}] + } \map{%将没有设置userf,且存在author域的默认设置为英文 \step[fieldsource=author,final] \step[fieldset=userf,fieldvalue={english}] } - \map{%译者的中文判断 - \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] - \step[fieldset=usere, fieldvalue={chinese}] - } \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1217,14 +1213,14 @@ \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=usere,fieldvalue={korean}]%韩语 } + \map{%译者的中文判断 + \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] + \step[fieldset=usere, fieldvalue={chinese}] + } \map{%将没有设置usere,且存在translator域的默认设置为英文 \step[fieldsource=translator,final] \step[fieldset=usere,fieldvalue={english}] } - \map{%编者的中文判断 - \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 - \step[fieldset=userc, fieldvalue={chinese}] - } \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1240,14 +1236,14 @@ \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userc,fieldvalue={korean}]%韩语 } + \map{%编者的中文判断 + \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 + \step[fieldset=userc, fieldvalue={chinese}] + } \map{%将没有设置userc,且存在editor域的默认设置为英文 \step[fieldsource=editor,final] \step[fieldset=userc,fieldvalue={english}] } - \map{%编者的中文判断 - \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 - \step[fieldset=userb, fieldvalue={chinese}] - } \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1263,6 +1259,10 @@ \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userb,fieldvalue={korean}]%韩语 } + \map{%编者的中文判断 + \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 + \step[fieldset=userb, fieldvalue={chinese}] + } \map{%将没有设置userc,且存在editor域的默认设置为英文 \step[fieldsource=bookauthor,final] \step[fieldset=userb,fieldvalue={english}] @@ -1680,12 +1680,15 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } + \sort{ + \field{sortkey} + } \sort{%[direction=descending] \field{sortname} \field{author} @@ -1711,13 +1714,16 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } \sort[direction=descending]{ + \field{sortkey} + } + \sort[direction=descending]{ \field{sortname} \field{author} \field{editor} @@ -1742,9 +1748,9 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } @@ -1753,6 +1759,9 @@ \field{year} } \sort{ + \field{sortkey} + } + \sort{ \field{sortname} \field{author} \field{editor} @@ -1773,9 +1782,9 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } @@ -1784,6 +1793,9 @@ \field{year} } \sort{ + \field{sortkey} + } + \sort{ \field{sortname} \field{author} \field{editor} @@ -1809,12 +1821,15 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } + \sort{ + \field{sortkey} + } \sort{%[direction=descending] \field{sortname} \field{author} @@ -1840,12 +1855,15 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } +% \sort[final]{ +% \field{sortkey} +% } \sort{ \field{lansortorder}%language } + \sort[direction=descending]{ + \field{sortkey} + } \sort[direction=descending]{% \field{sortname} \field{author} @@ -1871,9 +1889,9 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } +% \sort[final]{ +% \field{sortkey} +% } \sort{ \field{lansortorder}%language } @@ -1881,6 +1899,9 @@ \field{sortyear} \field{year} } + \sort{ + \field{sortkey} + } \sort{% \field{sortname} \field{author} @@ -1902,9 +1923,9 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } +% \sort[final]{ +% \field{sortkey} +% } \sort{ \field{lansortorder}%language } @@ -1912,6 +1933,9 @@ \field{sortyear} \field{year} } + \sort{ + \field{sortkey} + } \sort{% \field{sortname} \field{author} @@ -1946,9 +1970,12 @@ test {\iftoggle{iftlseven}}%biblatex<=3.7 % % 增加一个\bibitemindent尺寸用于控制list环境的itemindent % v1.0l,20180615,hzz +% v1.0t,20200319,hzz,增加尺寸\biblabelextend使某些字体下标签宽度不足时可增加标签宽度 \setlength{\bibhang}{\biblabelsep}% \newlength{\bibitemindent} \setlength{\bibitemindent}{0pt} +\newlength{\biblabelextend} +\setlength{\biblabelextend}{0pt} \defbibenvironment{bibliography} @@ -1956,7 +1983,8 @@ test {\iftoggle{iftlseven}}%biblatex<=3.7 {\printtext[labelnumberwidth]{% \printfield{labelprefix}% \printfield{labelnumber}}} - {\setlength{\labelwidth}{\labelnumberwidth}% + {\addtolength{\labelnumberwidth}{\biblabelextend}% + \setlength{\labelwidth}{\labelnumberwidth}% \setlength{\labelsep}{\biblabelsep}% \setlength{\leftmargin}{\bibhang}% \addtolength{\leftmargin}{\labelnumberwidth}% @@ -3473,7 +3501,8 @@ incollection,proceedings,inproceedings]{number}{% \usebibmacro{note+pages}% \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期 \iffieldundef{url}{}{%当没有网址时也不输出 - \usebibmacro{modifydate}}}%带括号的修改或更新日期, + \iftoggle{bbx:url}{%当url选项为false时,也不输出 + \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期, \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置 \newunit\newblock \iftoggle{bbx:isbn} 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 a62ca688b3c..740b23d9a14 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{2019/08/28 v1.0s} +\def\versionofgbtstyle{2020/03/20 v1.0u} \ProvidesFile{gb7714-2015.cbx}[\versionofgbtstyle biblatex citation style] % 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 d6d9a84174d..2e54a40149a 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{2019/08/28 v1.0s} +\def\versionofgbtstyle{2020/03/20 v1.0u} \def\versionofbiblatex{\abx@version} \ProvidesFile{gb7714-2015ay.bbx}[\versionofgbtstyle biblatex bibliography style] %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求 @@ -1124,10 +1124,6 @@ \step[fieldsource=entrykey] \step[fieldset=keywords, origfieldval] } - \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题 - \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]% - \step[fieldset=userd, fieldvalue={chinese}] - } \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1143,14 +1139,14 @@ \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userd,fieldvalue={korean}]%韩语 } + \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题 + \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]% + \step[fieldset=userd, fieldvalue={chinese}] + } \map{%将没有设置userd,且存在title域的默认设置为英文 \step[fieldsource=title,final] \step[fieldset=userd,fieldvalue={english}] } - \map{%作者的中文判断 - \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] - \step[fieldset=userf, fieldvalue={chinese}] - } \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1166,14 +1162,14 @@ \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userf,fieldvalue={korean}]%韩语 } + \map{%作者的中文判断 + \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] + \step[fieldset=userf, fieldvalue={chinese}] + } \map{%将没有设置userf,且存在author域的默认设置为英文 \step[fieldsource=author,final] \step[fieldset=userf,fieldvalue={english}] } - \map{%译者的中文判断 - \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] - \step[fieldset=usere, fieldvalue={chinese}] - } \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1189,14 +1185,14 @@ \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=usere,fieldvalue={korean}]%韩语 } + \map{%译者的中文判断 + \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] + \step[fieldset=usere, fieldvalue={chinese}] + } \map{%将没有设置usere,且存在translator域的默认设置为英文 \step[fieldsource=translator,final] \step[fieldset=usere,fieldvalue={english}] } - \map{%编者的中文判断 - \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 - \step[fieldset=userc, fieldvalue={chinese}] - } \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1212,14 +1208,14 @@ \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userc,fieldvalue={korean}]%韩语 } + \map{%编者的中文判断 + \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 + \step[fieldset=userc, fieldvalue={chinese}] + } \map{%将没有设置userc,且存在editor域的默认设置为英文 \step[fieldsource=editor,final] \step[fieldset=userc,fieldvalue={english}] } - \map{%编者的中文判断 - \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 - \step[fieldset=userb, fieldvalue={chinese}] - } \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1235,6 +1231,10 @@ \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userb,fieldvalue={korean}]%韩语 } + \map{%编者的中文判断 + \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 + \step[fieldset=userb, fieldvalue={chinese}] + } \map{%将没有设置userc,且存在editor域的默认设置为英文 \step[fieldsource=bookauthor,final] \step[fieldset=userb,fieldvalue={english}] @@ -1529,12 +1529,15 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } + \sort{ + \field{sortkey} + } \sort{%[direction=descending] \field{sortname} \field{author} @@ -1560,13 +1563,16 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } \sort[direction=descending]{ + \field{sortkey} + } + \sort[direction=descending]{ \field{sortname} \field{author} \field{editor} @@ -1591,9 +1597,9 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } @@ -1602,6 +1608,9 @@ \field{year} } \sort{ + \field{sortkey} + } + \sort{ \field{sortname} \field{author} \field{editor} @@ -1622,9 +1631,9 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } @@ -1633,6 +1642,9 @@ \field{year} } \sort{ + \field{sortkey} + } + \sort{ \field{sortname} \field{author} \field{editor} @@ -1658,12 +1670,15 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } + \sort{ + \field{sortkey} + } \sort{%[direction=descending] \field{sortname} \field{author} @@ -1689,12 +1704,15 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } +% \sort[final]{ +% \field{sortkey} +% } \sort{ \field{lansortorder}%language } + \sort[direction=descending]{ + \field{sortkey} + } \sort[direction=descending]{% \field{sortname} \field{author} @@ -1720,9 +1738,9 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } +% \sort[final]{ +% \field{sortkey} +% } \sort{ \field{lansortorder}%language } @@ -1730,6 +1748,9 @@ \field{sortyear} \field{year} } + \sort{ + \field{sortkey} + } \sort{% \field{sortname} \field{author} @@ -1751,9 +1772,9 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } +% \sort[final]{ +% \field{sortkey} +% } \sort{ \field{lansortorder}%language } @@ -1761,6 +1782,9 @@ \field{sortyear} \field{year} } + \sort{ + \field{sortkey} + } \sort{% \field{sortname} \field{author} @@ -3459,7 +3483,8 @@ test {\ifentrytype{conference}} \usebibmacro{note+pages}% \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期 \iffieldundef{url}{}{%当没有网址时也不输出 - \usebibmacro{modifydate}}}%带括号的修改或更新日期, + \iftoggle{bbx:url}{%当url选项为false时,也不输出 + \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期, \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置 \newunit\newblock \iftoggle{bbx:isbn} 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 9b9adf9b141..11fa65d16ef 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{2019/08/28 v1.0s} +\def\versionofgbtstyle{2020/03/20 v1.0u} \ProvidesFile{gb7714-2015ay.cbx}[\versionofgbtstyle biblatex citation style] % @@ -61,7 +61,12 @@ test {\iftoggle{iftlseven}}%3.7=biblatex }{\newbibmacro{cite:labeldate+extradate}{\usebibmacro{cite:labelyear+extrayear}}}{}%else: biblatex>3.7 %textcite标注命令中的标点设置,注意只针对textcite命令。 -\DeclareDelimFormat[textcite]{nameyeardelim}{}%\addcomma\space +% v-old +% v1.0t,20200320,hzz,修改如下 +% 在cbx中增加标注中的nameyeardelim标点定义,避免bbx使用其它样式时出现问题 +% 同时设置textcite的nameyeardelim为一个短空格,似乎原来直接连上去的不够美观 +\DeclareDelimFormat[cite,parencite,pagescite]{nameyeardelim}{\addcomma\space}%\addcomma\space +\DeclareDelimFormat[textcite]{nameyeardelim}{\addthinspace}%\addcomma\space \DeclareDelimFormat[textcite]{andothersdelim}{\iffieldequalstr{userf}{chinese}{\addthinspace}{\addspace}}% \AtEveryCitekey{% \iffieldequalstr{userf}{chinese}{\renewcommand*{\andothersdelim}{\addthinspace}}%\addthinspace 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 0efdddd18d8..012a468c0b3 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{2019/08/28 v1.0s} +\def\versionofgbtstyle{2020/03/20 v1.0u} \def\versionofbiblatex{\abx@version} \ProvidesFile{gb7714-2015ms.bbx}[\versionofgbtstyle biblatex bibliography style] %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求 @@ -913,10 +913,6 @@ \step[fieldsource=entrykey] \step[fieldset=keywords, origfieldval] } - \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题 - \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]% - \step[fieldset=userd, fieldvalue={chinese}] - } \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -932,14 +928,14 @@ \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userd,fieldvalue={korean}]%韩语 } + \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题 + \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]% + \step[fieldset=userd, fieldvalue={chinese}] + } \map{%将没有设置userd,且存在title域的默认设置为英文 \step[fieldsource=title,final] \step[fieldset=userd,fieldvalue={english}] } - \map{%作者的中文判断 - \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] - \step[fieldset=userf, fieldvalue={chinese}] - } \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -955,14 +951,14 @@ \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userf,fieldvalue={korean}]%韩语 } + \map{%作者的中文判断 + \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] + \step[fieldset=userf, fieldvalue={chinese}] + } \map{%将没有设置userf,且存在author域的默认设置为英文 \step[fieldsource=author,final] \step[fieldset=userf,fieldvalue={english}] } - \map{%译者的中文判断 - \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] - \step[fieldset=usere, fieldvalue={chinese}] - } \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -978,14 +974,14 @@ \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=usere,fieldvalue={korean}]%韩语 } + \map{%译者的中文判断 + \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] + \step[fieldset=usere, fieldvalue={chinese}] + } \map{%将没有设置usere,且存在translator域的默认设置为英文 \step[fieldsource=translator,final] \step[fieldset=usere,fieldvalue={english}] } - \map{%编者的中文判断 - \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 - \step[fieldset=userc, fieldvalue={chinese}] - } \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1001,14 +997,14 @@ \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userc,fieldvalue={korean}]%韩语 } + \map{%编者的中文判断 + \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 + \step[fieldset=userc, fieldvalue={chinese}] + } \map{%将没有设置userc,且存在editor域的默认设置为英文 \step[fieldsource=editor,final] \step[fieldset=userc,fieldvalue={english}] } - \map{%编者的中文判断 - \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 - \step[fieldset=userb, fieldvalue={chinese}] - } \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1024,6 +1020,10 @@ \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userb,fieldvalue={korean}]%韩语 } + \map{%编者的中文判断 + \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 + \step[fieldset=userb, fieldvalue={chinese}] + } \map{%将没有设置userc,且存在editor域的默认设置为英文 \step[fieldsource=bookauthor,final] \step[fieldset=userb,fieldvalue={english}] @@ -1197,9 +1197,12 @@ % % 增加一个\bibitemindent尺寸用于控制list环境的itemindent % v1.0l,20180615,hzz +% v1.0t,20200319,hzz,增加尺寸\biblabelextend使某些字体下标签宽度不足时可增加标签宽度 \setlength{\bibhang}{\biblabelsep}% \newlength{\bibitemindent} \setlength{\bibitemindent}{0pt} +\newlength{\biblabelextend} +\setlength{\biblabelextend}{0pt} \defbibenvironment{bibliography} @@ -1207,7 +1210,8 @@ {\printtext[labelnumberwidth]{% \printfield{labelprefix}% \printfield{labelnumber}}} - {\setlength{\labelwidth}{\labelnumberwidth}% + {\addtolength{\labelnumberwidth}{\biblabelextend}% + \setlength{\labelwidth}{\labelnumberwidth}% \setlength{\labelsep}{\biblabelsep}% \setlength{\leftmargin}{\bibhang}% \addtolength{\leftmargin}{\labelnumberwidth}% @@ -2383,7 +2387,8 @@ incollection,proceedings,inproceedings]{number}{% \usebibmacro{note+pages}% \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期 \iffieldundef{url}{}{%当没有网址时也不输出 - \usebibmacro{modifydate}}}%带括号的修改或更新日期, + \iftoggle{bbx:url}{%当url选项为false时,也不输出 + \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期, \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置 \newunit\newblock \iftoggle{bbx:isbn} 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 8c19244e17b..cb2f092213e 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{2019/08/28 v1.0s} +\def\versionofgbtstyle{2020/03/20 v1.0u} \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 81cf2b95b8e..0ff11167a2e 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{2019/08/28 v1.0s} +\def\versionofgbtstyle{2020/03/20 v1.0u} \def\versionofbiblatex{\abx@version} \ProvidesFile{gb7714-2015mx.bbx}[\versionofgbtstyle biblatex bibliography style] %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求 @@ -964,10 +964,6 @@ \step[fieldsource=entrykey] \step[fieldset=keywords, origfieldval] } - \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题 - \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]% - \step[fieldset=userd, fieldvalue={chinese}] - } \map{\step[fieldsource=title,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userd,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -983,14 +979,14 @@ \step[fieldsource=title,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userd,fieldvalue={korean}]%韩语 } + \map{%文献题名的中文判断,将信息保存到userd中,避免因为标签生成原因导致title域被清除而产生问题 + \step[fieldsource=title, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]% + \step[fieldset=userd, fieldvalue={chinese}] + } \map{%将没有设置userd,且存在title域的默认设置为英文 \step[fieldsource=title,final] \step[fieldset=userd,fieldvalue={english}] } - \map{%作者的中文判断 - \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] - \step[fieldset=userf, fieldvalue={chinese}] - } \map{\step[fieldsource=author,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userf,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1006,14 +1002,14 @@ \step[fieldsource=author,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userf,fieldvalue={korean}]%韩语 } + \map{%作者的中文判断 + \step[fieldsource=author, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] + \step[fieldset=userf, fieldvalue={chinese}] + } \map{%将没有设置userf,且存在author域的默认设置为英文 \step[fieldsource=author,final] \step[fieldset=userf,fieldvalue={english}] } - \map{%译者的中文判断 - \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] - \step[fieldset=usere, fieldvalue={chinese}] - } \map{\step[fieldsource=translator,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=usere,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1029,14 +1025,14 @@ \step[fieldsource=translator,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=usere,fieldvalue={korean}]%韩语 } + \map{%译者的中文判断 + \step[fieldsource=translator, match=\regexp{[\x{2FF0}-\x{9FA5}]},final] + \step[fieldset=usere, fieldvalue={chinese}] + } \map{%将没有设置usere,且存在translator域的默认设置为英文 \step[fieldsource=translator,final] \step[fieldset=usere,fieldvalue={english}] } - \map{%编者的中文判断 - \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 - \step[fieldset=userc, fieldvalue={chinese}] - } \map{\step[fieldsource=editor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userc,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1052,14 +1048,14 @@ \step[fieldsource=editor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userc,fieldvalue={korean}]%韩语 } + \map{%编者的中文判断 + \step[fieldsource=editor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 + \step[fieldset=userc, fieldvalue={chinese}] + } \map{%将没有设置userc,且存在editor域的默认设置为英文 \step[fieldsource=editor,final] \step[fieldset=userc,fieldvalue={english}] } - \map{%编者的中文判断 - \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 - \step[fieldset=userb, fieldvalue={chinese}] - } \map{\step[fieldsource=bookauthor,match=\regexp{[\x{0100}-\x{017F}]},final]%\x80-\xFF \step[fieldset=userb,fieldvalue={french}]%法语,0080开始到00ff的字符没法匹配有点奇怪 } @@ -1075,6 +1071,10 @@ \step[fieldsource=bookauthor,match=\regexp{[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]},final] \step[fieldset=userb,fieldvalue={korean}]%韩语 } + \map{%编者的中文判断 + \step[fieldsource=bookauthor, match=\regexp{[\x{2FF0}-\x{9FA5}]},final]%直接匹配cjk字符,unicode编码位置从2FF0到9FA5 + \step[fieldset=userb, fieldvalue={chinese}] + } \map{%将没有设置userc,且存在editor域的默认设置为英文 \step[fieldsource=bookauthor,final] \step[fieldset=userb,fieldvalue={english}] @@ -1346,23 +1346,24 @@ % % 排序格式,用降序,及userb域,针对biblatex3.8及以上版本 % - \DeclareSortingTemplate{gb7714-2015}{ +\DeclareSortingTemplate{gb7714-2015}{ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } + %\sort[final]{ + %\field{sortkey} + %} \sort{ \field{lansortorder}%language } + \sort{ + \field{sortkey} + } \sort{%[direction=descending] \field{sortname} \field{author} \field{editor} \field{translator} - \field{sorttitle} - \field{title} } \sort{ \field{sortyear} @@ -1383,19 +1384,20 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } +% \sort[final]{ +% \field{sortkey} +% } \sort{ \field{lansortorder}%language } + \sort[direction=descending]{ + \field{sortkey} + } \sort[direction=descending]{% \field{sortname} \field{author} \field{editor} \field{translator} - \field{sorttitle} - \field{title} } \sort{ \field{sortyear} @@ -1416,9 +1418,9 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } +% \sort[final]{ +% \field{sortkey} +% } \sort{ \field{lansortorder}%language } @@ -1426,13 +1428,14 @@ \field{sortyear} \field{year} } + \sort{ + \field{sortkey} + } \sort{% \field{sortname} \field{author} \field{editor} \field{translator} - \field{sorttitle} - \field{title} } \sort{ \field{sorttitle} @@ -1449,9 +1452,9 @@ \sort{ \field{presort} } - \sort[final]{ - \field{sortkey} - } +% \sort[final]{ +% \field{sortkey} +% } \sort{ \field{lansortorder}%language } @@ -1459,13 +1462,14 @@ \field{sortyear} \field{year} } + \sort{ + \field{sortkey} + } \sort{% \field{sortname} \field{author} \field{editor} \field{translator} - \field{sorttitle} - \field{title} } \sort{ \field{sorttitle} @@ -1485,9 +1489,12 @@ % % 增加一个\bibitemindent尺寸用于控制list环境的itemindent % v1.0l,20180615,hzz +% v1.0t,20200319,hzz,增加尺寸\biblabelextend使某些字体下标签宽度不足时可增加标签宽度 \setlength{\bibhang}{\biblabelsep}% \newlength{\bibitemindent} \setlength{\bibitemindent}{0pt} +\newlength{\biblabelextend} +\setlength{\biblabelextend}{0pt} \defbibenvironment{bibliography} @@ -1495,7 +1502,8 @@ {\printtext[labelnumberwidth]{% \printfield{labelprefix}% \printfield{labelnumber}}} - {\setlength{\labelwidth}{\labelnumberwidth}% + {\addtolength{\labelnumberwidth}{\biblabelextend}% + \setlength{\labelwidth}{\labelnumberwidth}% \setlength{\labelsep}{\biblabelsep}% \setlength{\leftmargin}{\bibhang}% \addtolength{\leftmargin}{\labelnumberwidth}% @@ -2765,7 +2773,8 @@ incollection,proceedings,inproceedings]{number}{% \usebibmacro{note+pages}% \iffieldequalstr{note}{news}{}{%当是新闻时不输出修改或更新日期 \iffieldundef{url}{}{%当没有网址时也不输出 - \usebibmacro{modifydate}}}%带括号的修改或更新日期, + \iftoggle{bbx:url}{%当url选项为false时,也不输出 + \usebibmacro{modifydate}}{}}}%带括号的修改或更新日期, \usebibmacro{doi+eprint+url}%从后面移上来,调整url和页码之间的位置 \newunit\newblock \iftoggle{bbx:isbn} 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 bf2e591f0c2..ab1dfcb1b90 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{2019/08/28 v1.0s} +\def\versionofgbtstyle{2020/03/20 v1.0u} \ProvidesFile{gb7714-2015mx.cbx}[\versionofgbtstyle biblatex citation style] % |