diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.bbx')
-rw-r--r-- | Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.bbx | 117 |
1 files changed, 71 insertions, 46 deletions
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} |