texlive[74417] Master/texmf-dist: biblatex-gb7714-2015 (3mar25)

commits+karl at tug.org commits+karl at tug.org
Mon Mar 3 22:18:35 CET 2025


Revision: 74417
          https://tug.org/svn/texlive?view=revision&revision=74417
Author:   karl
Date:     2025-03-03 22:18:35 +0100 (Mon, 03 Mar 2025)
Log Message:
-----------
biblatex-gb7714-2015 (3mar25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/README.md
    trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.tex
    trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/makeall.py
    trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx
    trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx
    trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.bbx
    trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.bbx
    trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.bbx

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/makeupdateversion.py

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/README.md	2025-03-03 21:18:18 UTC (rev 74416)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/README.md	2025-03-03 21:18:35 UTC (rev 74417)
@@ -1,4 +1,4 @@
-<b>Date of last change: 2024-11-15 to version v1.1s</b>
+<b>Date of last change: 2025/03/03 v1.1t</b>
 
 
 
@@ -61,6 +61,7 @@
 * [ECNU-Undergraduate-LaTeX(华东师范大学本科毕业论文模板)](https://github.com/YijunYuan/ECNU-Undergraduate-LaTeX)
 * [fduthesis (复旦大学论文模板)](https://github.com/Stone-Zeng/fduthesis)
 * [fjnu-bathesis (福建师范大学本科毕业论文 LaTeX 模板)](https://github.com/fjnuer/fjnu-bathesis)
+* [hustthesis (华中科技大学 LaTeX 学位论文文档类)](https://github.com/hust-latex/hustthesis)
 * [LaTeX-SWUFE-Bachelor-Thesis(西南财经大学本科毕业论文 LaTeX 模板)](https://github.com/sukanka/LaTeX-SWUFE-Bachelor-Thesis)
 * [LZUthesis(兰州大学本科毕业论文 LaTeX 模板)](https://github.com/szsdk/LZUthesis)
 * [neuthesis (东北大学博士学位论文 LaTeX 模板)](https://github.com/mervin0502/neuthesis)
@@ -85,6 +86,7 @@
 * [ustcthesis(中国科学技术大学学位论文 LaTeX 模板)](https://github.com/ustctug/ustcthesis)
 * [WUTthesis(武汉理工大学研究生学位论文的 LaTeX 模板)](https://github.com/Jiayin-Gu/WUTthesis)
 * [whu-thesis(武汉大学毕业论文 LaTeX 模板)](https://github.com/whutug/whu-thesis)
+* [WHUT-Bachelor(武汉理工大学本科生毕业设计(论文)LaTeX 模板)](https://github.com/huangyxi/WHUT-Bachelor)
 * [Yet anoter BUPT Thesis LaTeX class (北邮研究生学位设计的 LaTeX 文档类)](https://github.com/qcts33/BUPTthesis-ctex)
 * [Zhejiang University thesis(浙江大学毕业设计/论文模板)](https://github.com/TheNetAdmin/zjuthesis)
 * [《经济研究》杂志 LaTeX 论文模板)](https://github.com/EthanDeng/Chinese-ERJ)
@@ -1114,9 +1116,18 @@
 * <b>在顺序编码制标签中,希望数字编码从两个连续编码就开始压缩,比如 [1,2] 压缩成 [1-2],该怎么处理?</b>
 	
 
-biblatex 中处理顺序数字编码压缩的代码默认从 3 个连续编码开始压缩,比如 [1,2,3] 压缩成 [1-3]。如果要修改为从 2 个连续编码开始压缩,只需要做一个很简单的修改即可:
+biblatex 中处理顺序数字编码压缩的代码默认从 3 个连续编码开始压缩,比如 [1,2,3] 压缩成 [1-3]。
+但biblatex-gb7714-2015 已将其修改为默认从2个连续编码开始。
+若需要修改,只需要做一个很简单的修改即可:
 
 ```tex
+\setcounter{gbrefcompress}{3} %表示连续3篇文献开始
+%\setcounter{gbrefcompress}{2} %表示连续2篇文献开始
+```
+
+对于老版本的可以直接修改宏(注意其中的注释):
+
+```tex
 % 该宏的目的是抛弃压缩内部的编号,而仅输出最后一个编号,主要通过 cbx at tempcnta 来控制
 % 一般情况下 cbx at tempcnta 为 0,所以该宏不输出任何内容。当 cbx at tempcnta在cite:comp:comp 宏中更改变大后
 % 说明开始进入需要压缩的范围,当到压缩终点时,cbx at tempcnta 必然大于 1,则输出内容。
@@ -1612,6 +1623,18 @@
 please see the file 'biblatex-gb7714-2015.pdf' for further information!
 
 
+
+
+---------------------------------------------------------
+## Update history:
+
+[update: tex](example/updatehistory.tex)
+
+[update: tex](example/updatehistoryold.tex)
+
+
+
+
 ## Version history:
 
 * 2016/05/20 v1.0  
@@ -1660,6 +1683,7 @@
 * 2024/03/27 v1.1q,ctan,github
 * 2024/05/15 v1.1r,ctan,github
 * 2024/11/15 v1.1s,ctan,github
+* 2025/03/03 v1.1t,ctan,github
 
 
 
@@ -1666,12 +1690,3 @@
 
 
 
----------------------------------------------------------
-## Update history:
-
-[update: tex](example/updatehistory.tex)
-
-[update: tex](example/updatehistoryold.tex)
-
-
-

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.tex	2025-03-03 21:18:18 UTC (rev 74416)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/biblatex-gb7714-2015.tex	2025-03-03 21:18:35 UTC (rev 74417)
@@ -1025,7 +1025,9 @@
   二是实现国标要求的相同文献不输出内容,而是用标签代替,比如同\textcircled{4} ,主要利用citetracker 选项实现对文献引用的追踪,然后利用ifciteseen 判断和对footfullcite 命令做修改实现。
   测试文档见:\href{run:./example/opt-gbfootbib.tex}{opt-gbfootbib.tex}。
 
-  同时为了方便脚注的对齐格式控制增加了两个尺寸:\verb|\footbibmargin|和\verb|\footbiblabelsep|,分别表示脚注文本的左侧缩进距离和悬挂的脚注标记标签与脚注文本的间隔距离,默认分别是1em和0.5em。如果要修改悬挂对齐为其它对齐方式,那么需要重定义\verb|\@makefntext|宏,目前悬挂对齐的实现方式见bbx文件。比如示例中重定义这两个尺寸为2em 和1em:
+  同时为了方便脚注的对齐格式控制增加了两个尺寸:\verb|\footbibmargin|和
+  \verb|\footbiblabelsep|,分别表示脚注文本的左侧缩进距离和悬挂的脚注标记标签与脚注文本的间隔距离,默认分别是1em和0.5em。如果要修改悬挂对齐为其它对齐方式,那么需要重定义
+  \verb|\@makefntext|宏,目前悬挂对齐的实现方式见bbx文件。比如示例中重定义这两个尺寸为2em 和1em:
 
   {\small
   \vspace{1ex}
@@ -1144,6 +1146,71 @@
 \end{description}
 
 
+\subsubsection{新增的开关、计数器、尺寸、间隔符等设置项}\label{sec:setting:ele}
+
+\paragraph{开关}
+
+\begin{description}
+  \pdfbookmark[4]{gbNoAfPcSpace}{gbNoAfPcSpace}
+  \item[gbNoAfPcSpace] default is false
+
+  顺序编码制的toggle开关,设置\verb|\toggletrue{gbNoAfPcSpace}|表示去除parencite后面添加的中英文之间的空格,设置\verb|\togglefalse{gbNoAfPcSpace}| 则相反,表示不处理,由ctex/xeCJK自行添加。
+  
+  \item[其他]
+
+  注意:前面的一些选项也都有对应的toggle开关,若在局部环境中调整toggle开关,可以实现文献格式的临时调整。比如:
+  \verb|\settoggle{bbx:gbtype}{false}| 局部设置不输出文献类型和载体标识符,
+  \verb|\settoggle{bbx:gbannote}{true}| 局部设置输出注释信息
+  
+\end{description}
+
+
+\paragraph{计数器}
+
+\begin{description}
+  \pdfbookmark[4]{gbrefcompress}{gbrefcompress}
+  \item[gbrefcompress] default is 2
+  
+  顺序编码制的控制文献压缩的计数器,默认设置 \verb|\setcounter{gbrefcompress}{2}|表示从2篇文献开始压缩。若设置\verb|\setcounter{gbrefcompress}{3}|则表示从3篇文献开始压缩。
+  
+  
+  \item[其他]
+
+  注意:前面的一些选项也都有对应的计数器,若在局部环境中调整,可以实现文献格式的临时调整。比如:
+  \verb|\setcounter{gbnamefmtcase}{6}| 局部设置作者的格式为familyahead格式,
+  \verb|\def\blx at maxbibnames{9}\def\blx at minbibnames{2}| 局部设置作者的最大显示数量为9,若超过则显示2个。
+
+\end{description}
+
+
+\paragraph{尺寸}
+
+\begin{description}
+  \pdfbookmark[4]{ biblabelextend}{ biblabelextend}
+  \item[biblabelextend] default is 0pt
+
+  顺序编码制文献表编码标签盒子的扩展宽度,当设置某些字体导致默认盒子宽度不足导致对齐出现问题时,可以设置该值为一个正值,比如:\verb|\setlength{\biblabelextend}{5pt}|。
+  著者年份制中若使用顺序编码的文献表,也可以设置该值来拓宽编码标签盒子。
+
+\end{description}
+
+
+\paragraph{间隔符}
+
+\begin{description}
+  \pdfbookmark[4]{titletypedelim}{titletypedelim}
+  \item[titletypedelim] default is empty
+
+  用于控制文献表中文献标题与文献类型标识符之间的间隔符,默认为空,也就是两者是紧贴在一起的。若设置:\\
+  \lstinline[breaklines=true]!\DeclareDelimFormat[bib,biblist]{titletypedelim}{\iffieldequalstr{userd}{chinese}{}{\space}}!
+  则中文文献是紧贴在一起,而英文文献两者之间存在空格。
+
+
+  
+
+\end{description}
+
+
 \subsubsection{兼容的标准选项}\label{sec:old:opt}
 绝大部分biblatex标准样式选项可与gb7714-2015样式联合使用,下面给出一些经过兼容性测试的选项说明。需要注意的是:使用gb7714-2015样式时(即style=gb7714-2015),backend选择应指定为biber,还有一些选项已经在样式设计中固定,如果要严格使用国标样式,一般不应做修改,比如sorting,maxnames,minnames,date,useprefix,giveninits等,但如果用户有自己的其它需求,则可按需修改。
 
@@ -2496,8 +2563,67 @@
 \end{texlist}
 \end{example}
 
-这些设置是样式的默认设置,用户如果没有其他需求则无需调整,若需调整详见下一节。
+这些设置是样式的默认设置,用户如果没有其他需求则无需调整,若需调整详见后续各节。
 
+
+\subsubsection{引用标注标签中的排序}\label{sec:sort:citation}
+
+当同一处同时引用多篇文献时,多篇文献的标注标签存在排序问题。
+
+顺序编码制中标注标签按引用先后顺序排序,无需调整。
+
+著者年份制中标注标签默认按照引用先后顺序进行排序,
+当设置sortcites=true时,标注标签按照参考文献表中的顺序进行排序,参考文献表中的顺序按照sorting选项设定的顺序进行排序。
+若要使标注排序与文献表排序不关联,则可以使用refcontext来设置两种排序环境,即sorting选项设置的排序环境,以及refcontext及其sorting选项提供的排序环境,使得标注和文献表可以实现两种不同的排序。例\ref{eg:sort:decouple}中,sorting=gbynta表示全局按gbynta顺序(即年份、作者、标题)排序,使得标注会先按年份进行排序(但要注意同作者压缩可能会被打破)。而newrefcontext[sorting=gb7714-2015]中的排序表示文献表按gb7714-2015排序,这是国标的默认排序。
+
+\begin{example}{标注标签排序与文献表排序去关联}{eg:sort:decouple}
+\begin{texlist}
+\documentclass[twoside]{article}
+\usepackage{ctex}
+\usepackage{xcolor}
+\usepackage{hyperref}
+\usepackage{geometry}
+\usepackage[backend=biber,style=gb7714-2015ay,sortcites=true,
+uniquelist=false,uniquename=false,sorting=gbynta]{biblatex}
+\addbibresource{biblatex-examples.bib}
+
+\begin{document}
+%如下文献的年份分别为:
+%1986,1984,1967,2000,1985,1978
+\cite{knuth:ct:e,knuth:ct:a,weinberg,westfahl:frontier,geer,chiu}
+%生成标注标签将按年份排序,注意knuth的文献压缩会打破,结果为:
+%(Weinberg, 1967; Chiu et al., 1978; Knuth, 1984; Geer, 1985; Knuth, 1986; Westfahl, 2000)
+\newrefcontext[sorting=gb7714-2015]
+\printbibliography
+\end{document} 
+\end{texlist}
+\end{example}
+
+若要使文献压缩不被打破,则可以采用手动设置顺序的方式,同时去除sortcites选项或设为false,如例\ref{eg:sort:decouple1}所示。
+
+\begin{example}{手动设置排序且去除sortcites同样与文献表排序不关联}{eg:sort:decouple1}
+\begin{texlist}
+\documentclass[twoside]{article}
+\usepackage{ctex}
+\usepackage{xcolor}
+\usepackage{hyperref}
+\usepackage{geometry}
+\usepackage[backend=biber,style=gb7714-2015ay,sortcites=false,
+uniquelist=false,uniquename=false,sorting=gb7714-2015]{biblatex}
+\addbibresource{biblatex-examples.bib}
+
+\begin{document}
+%1967,1978,1984,1986,1985,2000
+%手动设置顺序,则不会打破压缩,结果为:
+%(Weinberg, 1967; Chiu et al., 1978; Knuth, 1984, 1986; Geer, 1985; Westfahl, 2000)
+\cite{weinberg,chiu,knuth:ct:a,knuth:ct:e,geer,westfahl:frontier}
+
+\printbibliography
+\end{document} 
+\end{texlist}
+\end{example}
+
+
 \subsubsection{排序的逻辑和调整方法}\label{sec:sort:adj}
 
 文献表中文献的排序通常是由处理bib文件的后端程序实施的,比如bibtex或biber程序。通常biblatex选择biber作为后端程序来实现更灵活的排序机制。biber在处理过程中读取bib文件信息并根据biblatex宏包和文献样式在bcf文件中输出设置信息执行排序。而bibtex程序则在读取bib文件后根据bst样式进行排序,尽管可以让bibtex读入特殊格式bib文件来提供一些设置参数,但总的来说基于bibtex的文献排序是由bst样式决定的。而biber程序则是提供了一套工具,具体的排序方式是由biblatex宏包和样式文件中的设置决定的,biber根据这些设置执行特定的逻辑来实现排序。

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/makeall.py
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/makeall.py	2025-03-03 21:18:18 UTC (rev 74416)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/makeall.py	2025-03-03 21:18:35 UTC (rev 74417)
@@ -21,7 +21,7 @@
 		pwd=os.getcwd()
 		filesneedcopy=['gb7714-CCNU.bbx','gb7714-CCNU.cbx','gb7714-NWAFU.bbx','gb7714-NWAFU.cbx','gb7714-SEU.bbx','gb7714-SEU.cbx',
 		'chinese-erj.bbx','chinese-erj.cbx','chinese-css.bbx','chinese-css.cbx',
-		'chinese-jmw.bbx','chinese-jmw.cbx','chinese-cajhss.bbx','chinese-cajhss.cbx',
+		'chinese-jmw.bbx','chinese-jmw.cbx','chinese-cajhss.bbx','chinese-cajhss.cbx','chinese-cajhssay.bbx','chinese-cajhssay.cbx',
 		'example.bib', 'gb7714-1987.bbx', 'gb7714-1987.cbx', 
 		'gb7714-1987ay.bbx', 'gb7714-1987ay.cbx', 'gb7714-2005.bbx', 'gb7714-2005.cbx', 'gb7714-2005ay.bbx',
 		'gb7714-2005ay.cbx', 'gb7714-2015-gbk.def', 'gb7714-2015.bbx', 'gb7714-2015.cbx', 'gb7714-2015ay.bbx',

Added: trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/makeupdateversion.py
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/makeupdateversion.py	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/makeupdateversion.py	2025-03-03 21:18:35 UTC (rev 74417)
@@ -0,0 +1,83 @@
+#!/usr/bin/env python3
+#_∗_coding: utf-8 _∗_
+
+import os
+import shutil
+import pathlib
+import re
+import subprocess
+
+
+def updateversion(filename='',versioninfo=''):
+    
+    if filename:
+        filelist=[filename]
+    else:
+        filelist=['gb7714-2015.bbx','gb7714-2015ay.bbx','gb7714-2015ms.bbx','gb7714-2015mx.bbx','readme.md']
+        
+    for file in filelist:
+        try:
+            if 'bbx' in file:
+                f = open(file, 'r', encoding='utf-8')
+                contents= f.readlines()
+                newcontents=[]
+                i=0
+                for  line in contents:
+                    i+=1
+                    
+                    if r'\def\versionofgbtstyle' in line:
+                        linea=r'\def\versionofgbtstyle{'+versioninfo+'}\n'
+                    else:
+                        linea=line
+                    if i<20:
+                        print(line)
+                        print(linea)
+                    newcontents.append(linea)
+                
+                g=open(file, 'w', encoding='utf-8')
+                for line in newcontents:
+                    g.write(line)
+                g.close()
+                print(f'{file} has updated!')
+            elif 'md' in file:
+                f = open(file, 'r', encoding='utf-8')
+                contents= f.readlines()
+                newcontents=[]
+                i=0
+                historylineid=10000
+                flg_hisupdate=False
+                for  line in contents:
+                    i+=1
+                    
+                    if r'Date of last change' in line:
+                        linea=r'<b>Date of last change: '+versioninfo+'</b>\n'
+                    elif r'Version history' in line:
+                        historylineid=i
+                        linea=line
+                    elif not flg_hisupdate and i>historylineid+3 and line=='\n':
+                        linea=r'* '+versioninfo+',ctan,github\n'
+                        flg_hisupdate=True
+                    else:
+                        linea=line
+                    if i<20:
+                        print(line)
+                        print(linea)
+                    newcontents.append(linea)
+                
+                g=open(file, 'w', encoding='utf-8')
+                for line in newcontents:
+                    g.write(line)
+                g.close()
+                print(f'{file} has updated!')
+                
+        except ImportError:
+            print('warning: file not loaded!')
+
+    
+    return None
+
+if __name__ == '__main__':
+    
+    #compileall('all')
+    #compileall('compare')
+    updateversion(versioninfo='2025/03/03 v1.1t') 
\ No newline at end of file


Property changes on: trunk/Master/texmf-dist/doc/latex/biblatex-gb7714-2015/makeupdateversion.py
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx	2025-03-03 21:18:18 UTC (rev 74416)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.bbx	2025-03-03 21:18:35 UTC (rev 74417)
@@ -11,7 +11,7 @@
 %
 %   版本和时间信息
 %
-\def\versionofgbtstyle{2024/11/15 v1.1s}
+\def\versionofgbtstyle{2025/03/03 v1.1t}
 \def\versionofbiblatex{\abx at version}
 \ProvidesFile{gb7714-2015.bbx}[\versionofgbtstyle biblatex bibliography style]
 %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
@@ -3153,30 +3153,27 @@
     }
 
     \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
-        \ifboolexpr{%
-        test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-        }%
-        {}%更新或修改日期通常有day信息
-        {\iffieldequalstr{year}{}{%替换\iffieldundef{year},因为year总是存在,但为空
-            \iffieldundef{endyear}{%
-                \iffieldundef{eventyear}{}{\printtext{\mkbibparens{\printtext{\printfield{eventyear}}%
-                \iffieldundef{eventmonth}{}{\bibrangedash\thefield{eventmonth}}%
-                \iffieldundef{eventday}{}{\bibrangedash\printfield{eventday}}}}%
-                }%
-            }{%
-                \iffieldundef{endyear}{}{\printtext{\mkbibparens{\printtext{\printfield{endyear}}%
-                \iffieldundef{endmonth}{}{\bibrangedash\thefield{endmonth}}%
-                \iffieldundef{endday}{}{\bibrangedash\printfield{endday}}}}%
-                }%
+        %更新或修改日期通常有day信息
+        \iffieldundef{eventday}
+        {%
+            \iffieldundef{endday}
+            {%
+                \iffieldundef{day}{}{\printtext{\mkbibparens{\printtext{\printfield{year}}%
+                    \bibrangedash\thefield{month}%
+                    \bibrangedash\printfield{day}}}}%
             }%
+            {%
+                 \iffieldundef{endyear}{}{\printtext{\mkbibparens{\printtext{\printfield{endyear}}%
+                    \iffieldundef{endmonth}{}{\bibrangedash\thefield{endmonth}}%
+                    \iffieldundef{endday}{}{\bibrangedash\printfield{endday}}}}}%
+            }%
         }%
         {%
-            \iffieldundef{year}{}{\printtext{\mkbibparens{\printtext{\printfield{year}}%
-            \iffieldundef{month}{}{\bibrangedash\thefield{month}}%
-            \iffieldundef{day}{}{\bibrangedash\printfield{day}}}}%
-            }%
+            \iffieldundef{eventyear}{}{\printtext{\mkbibparens{\printtext{\printfield{eventyear}}%
+                \iffieldundef{eventmonth}{}{\bibrangedash\thefield{eventmonth}}%
+                \iffieldundef{eventday}{}{\bibrangedash\printfield{eventday}}}}}%
         }%
-    }}%
+    }%
 }
 
 %
@@ -3199,17 +3196,17 @@
     }
 
     \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
-        \ifboolexpr{%
-        test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-        }%
-        {}%更新或修改日期通常有day信息
-        {\iffieldundef{year}{%
-                \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}}%
+        %更新或修改日期通常有day信息
+        \iffieldundef{eventday}%
+           {%
+             \iffieldundef{endday}{%
+                 \iffieldundef{day}{}{\iffieldequalstr{day}{}{}%因为day存在,但为空
+                    {\printtext{\gbleftparen}\blx at edtfdate{}{}\printtext{\gbrightparen}}}%
+                 }%
                 {\printtext{\gbleftparen}\printenddate\printtext{\gbrightparen}}%
-        }{\iffieldequalstr{year}{}{%因为year存在,但为空
-            }{\printtext{\gbleftparen}\blx at edtfdate{}{}\printtext{\gbrightparen}}%
-         }%
-    }}%
+           }%
+           {\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}%
+    }%
 }
 
 %
@@ -3235,17 +3232,17 @@
 
     %
     \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
-        \ifboolexpr{%
-        test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-        }%
-        {}%更新或修改日期通常有day信息
-        {\iffieldundef{year}{%
-                \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}}%
+        %更新或修改日期通常有day信息
+        \iffieldundef{eventday}%
+           {%
+             \iffieldundef{endday}{%
+                 \iffieldundef{day}{}{\iffieldequalstr{day}{}{}%因为day存在,但为空
+                    {\printtext{\gbleftparen}\blx at gbdate{}{}\printtext{\gbrightparen}}}%
+                 }%
                 {\printtext{\gbleftparen}\printenddate\printtext{\gbrightparen}}%
-        }{\iffieldequalstr{year}{}{%因为year存在,但为空
-            }{\printtext{\gbleftparen}\blx at gbdate{}{}\printtext{\gbrightparen}}%
-         }%
-    }}%
+           }%
+           {\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}%
+    }%
 }
 
 %

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx	2025-03-03 21:18:18 UTC (rev 74416)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015.cbx	2025-03-03 21:18:35 UTC (rev 74417)
@@ -15,7 +15,7 @@
 \RequireCitationStyle{numeric-comp} %numeric
 
 %
-%   增加一个控制是否将标准标签中的作者加上超链接的选项
+%   增加一个控制是否将标注标签中的作者加上超链接的选项
 %   20210121,v1.0w,hzz
 \newtoggle{bbx:gblabelref}
 \DeclareBibliographyOption{gblabelref}[false]{%biblatex低版本
@@ -30,6 +30,8 @@
   \settoggle{bbx:gbcitecomp}{#1}}
 \ExecuteBibliographyOptions{gbcitecomp}
 
+\newtoggle{gbNoAfPcSpace}%gb-no-after-parencite-space
+\togglefalse{gbNoAfPcSpace}
 
 %
 %   增加标签包围符号格式处理选项
@@ -242,7 +244,7 @@
     \protected\long\def\mkbibsuperscriptusp##1{%
       \blx at warning{Nested superscript}%
       \mkbibleftborder{##1}\mkbibrightborder}%
-    #1\endgroup}}
+    #1\endgroup}\iftoggle{gbNoAfPcSpace}{\kern\z@}{}}
 
 
 

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.bbx	2025-03-03 21:18:18 UTC (rev 74416)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ay.bbx	2025-03-03 21:18:35 UTC (rev 74417)
@@ -10,7 +10,7 @@
 %
 %   版本和时间信息
 %
-\def\versionofgbtstyle{2024/11/15 v1.1s}
+\def\versionofgbtstyle{2025/03/03 v1.1t}
 \def\versionofbiblatex{\abx at version}
 \ProvidesFile{gb7714-2015ay.bbx}[\versionofgbtstyle biblatex bibliography style]
 %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
@@ -3040,30 +3040,27 @@
     }
 
     \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
-        \ifboolexpr{%
-        test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-        }%
-        {}%更新或修改日期通常有day信息
-        {\iffieldequalstr{year}{}{%替换\iffieldundef{year},因为year总是存在,但为空
-            \iffieldundef{endyear}{%
-                \iffieldundef{eventyear}{}{\printtext{\mkbibparens{\printtext{\printfield{eventyear}}%
-                \iffieldundef{eventmonth}{}{\bibrangedash\thefield{eventmonth}}%
-                \iffieldundef{eventday}{}{\bibrangedash\printfield{eventday}}}}%
-                }%
-            }{%
-                \iffieldundef{endyear}{}{\printtext{\mkbibparens{\printtext{\printfield{endyear}}%
-                \iffieldundef{endmonth}{}{\bibrangedash\thefield{endmonth}}%
-                \iffieldundef{endday}{}{\bibrangedash\printfield{endday}}}}%
-                }%
+        %更新或修改日期通常有day信息
+        \iffieldundef{eventday}
+        {%
+            \iffieldundef{endday}
+            {%
+                \iffieldundef{day}{}{\printtext{\mkbibparens{\printtext{\printfield{year}}%
+                    \bibrangedash\thefield{month}%
+                    \bibrangedash\printfield{day}}}}%
             }%
+            {%
+                 \iffieldundef{endyear}{}{\printtext{\mkbibparens{\printtext{\printfield{endyear}}%
+                    \iffieldundef{endmonth}{}{\bibrangedash\thefield{endmonth}}%
+                    \iffieldundef{endday}{}{\bibrangedash\printfield{endday}}}}}%
+            }%
         }%
         {%
-            \iffieldundef{year}{}{\printtext{\mkbibparens{\printtext{\printfield{year}}%
-            \iffieldundef{month}{}{\bibrangedash\thefield{month}}%
-            \iffieldundef{day}{}{\bibrangedash\printfield{day}}}}%
-            }%
+            \iffieldundef{eventyear}{}{\printtext{\mkbibparens{\printtext{\printfield{eventyear}}%
+                \iffieldundef{eventmonth}{}{\bibrangedash\thefield{eventmonth}}%
+                \iffieldundef{eventday}{}{\bibrangedash\printfield{eventday}}}}}%
         }%
-    }}%
+    }%
 }
 
 %
@@ -3086,17 +3083,17 @@
     }
 
     \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
-        \ifboolexpr{%
-        test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-        }%
-        {}%更新或修改日期通常有day信息
-        {\iffieldundef{year}{%
-                \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}}%
+        %更新或修改日期通常有day信息
+        \iffieldundef{eventday}%
+           {%
+             \iffieldundef{endday}{%
+                 \iffieldundef{day}{}{\iffieldequalstr{day}{}{}%因为day存在,但为空
+                    {\printtext{\gbleftparen}\blx at edtfdate{}{}\printtext{\gbrightparen}}}%
+                 }%
                 {\printtext{\gbleftparen}\printenddate\printtext{\gbrightparen}}%
-        }{\iffieldequalstr{year}{}{%因为year存在,但为空
-            }{\printtext{\gbleftparen}\blx at edtfdate{}{}\printtext{\gbrightparen}}%
-         }%
-    }}%
+           }%
+           {\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}%
+    }%
 }
 
 %
@@ -3121,17 +3118,17 @@
     }
 
     \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
-        \ifboolexpr{%
-        test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-        }%
-        {}%更新或修改日期通常有day信息
-        {\iffieldundef{year}{%
-                \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}}%
+        %更新或修改日期通常有day信息
+        \iffieldundef{eventday}%
+           {%
+             \iffieldundef{endday}{%
+                 \iffieldundef{day}{}{\iffieldequalstr{day}{}{}%因为day存在,但为空
+                    {\printtext{\gbleftparen}\blx at gbdate{}{}\printtext{\gbrightparen}}}%
+                 }%
                 {\printtext{\gbleftparen}\printenddate\printtext{\gbrightparen}}%
-        }{\iffieldequalstr{year}{}{%因为year存在,但为空
-            }{\printtext{\gbleftparen}\blx at gbdate{}{}\printtext{\gbrightparen}}%
-         }%
-    }}%
+           }%
+           {\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}%
+    }%
 }
 
 %

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.bbx	2025-03-03 21:18:18 UTC (rev 74416)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015ms.bbx	2025-03-03 21:18:35 UTC (rev 74417)
@@ -11,7 +11,7 @@
 %
 %   版本和时间信息
 %
-\def\versionofgbtstyle{2024/11/15 v1.1s}
+\def\versionofgbtstyle{2025/03/03 v1.1t}
 \def\versionofbiblatex{\abx at version}
 \ProvidesFile{gb7714-2015ms.bbx}[\versionofgbtstyle biblatex bibliography style]
 %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
@@ -1830,17 +1830,17 @@
     }
 
     \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
-        \ifboolexpr{%
-        test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-        }%
-        {}%更新或修改日期通常有day信息
-        {\iffieldundef{year}{%
-                \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}}%
+        %更新或修改日期通常有day信息
+        \iffieldundef{eventday}%
+           {%
+             \iffieldundef{endday}{%
+                 \iffieldundef{day}{}{\iffieldequalstr{day}{}{}%因为day存在,但为空
+                    {\printtext{\gbleftparen}\blx at gbdate{}{}\printtext{\gbrightparen}}}%
+                 }%
                 {\printtext{\gbleftparen}\printenddate\printtext{\gbrightparen}}%
-        }{\iffieldequalstr{year}{}{%因为year存在,但为空
-            }{\printtext{\gbleftparen}\blx at gbdate{}{}\printtext{\gbrightparen}}%
-         }%
-    }}%
+           }%
+           {\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}%
+    }%
 
 
     %

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.bbx	2025-03-03 21:18:18 UTC (rev 74416)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-gb7714-2015/gb7714-2015mx.bbx	2025-03-03 21:18:35 UTC (rev 74417)
@@ -11,7 +11,7 @@
 %
 %   版本和时间信息
 %
-\def\versionofgbtstyle{2024/11/15 v1.1s}
+\def\versionofgbtstyle{2025/03/03 v1.1t}
 \def\versionofbiblatex{\abx at version}
 \ProvidesFile{gb7714-2015mx.bbx}[\versionofgbtstyle biblatex bibliography style]
 %\RequireBiber[3]%显式指定用biber后端,当用bibtex时会报错,但其实不会影响编译,只是采用bibtex后无法达成格式需求
@@ -2413,17 +2413,17 @@
 
     %
     \newbibmacro*{modifydate}{%新增加一个带括号的日期,用于表示电子资源的更新和修改日期,而公告日期则按日期格式
-        \ifboolexpr{%
-        test{\iffieldundef{day}} and test{\iffieldundef{endday}} and test{\iffieldundef{eventday}}%
-        }%
-        {}%更新或修改日期通常有day信息
-        {\iffieldundef{year}{%
-                \iffieldundef{endyear}{\iffieldundef{eventyear}{}{\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}}%
+        %更新或修改日期通常有day信息
+        \iffieldundef{eventday}%
+           {%
+             \iffieldundef{endday}{%
+                 \iffieldundef{day}{}{\iffieldequalstr{day}{}{}%因为day存在,但为空
+                    {\printtext{\gbleftparen}\blx at gbdate{}{}\printtext{\gbrightparen}}}%
+                 }%
                 {\printtext{\gbleftparen}\printenddate\printtext{\gbrightparen}}%
-        }{\iffieldequalstr{year}{}{%因为year存在,但为空
-            }{\printtext{\gbleftparen}\blx at gbdate{}{}\printtext{\gbrightparen}}%
-         }%
-    }}%
+           }%
+           {\printtext{\gbleftparen}\printeventdate\printtext{\gbrightparen}}%
+    }%
 
 
 %



More information about the tex-live-commits mailing list.