texlive[64866] Master/texmf-dist: biblatex-caspervector (30oct22)

commits+karl at tug.org commits+karl at tug.org
Sun Oct 30 21:42:52 CET 2022


Revision: 64866
          http://tug.org/svn/texlive?view=revision&revision=64866
Author:   karl
Date:     2022-10-30 21:42:52 +0100 (Sun, 30 Oct 2022)
Log Message:
-----------
biblatex-caspervector (30oct22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt
    trunk/Master/texmf-dist/doc/latex/biblatex-caspervector/caspervector-ay.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex-caspervector/caspervector.pdf
    trunk/Master/texmf-dist/doc/latex/biblatex-caspervector/caspervector.tex
    trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-base.def
    trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-gbk.def
    trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-utf8.def
    trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector-ay.bbx
    trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector-ay.cbx
    trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx
    trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.cbx

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt	2022-10-30 20:39:39 UTC (rev 64865)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-caspervector/ChangeLog.txt	2022-10-30 20:42:52 UTC (rev 64866)
@@ -1,3 +1,8 @@
+2022-10-30, v0.3.6
+
+	* API changes:
+	- Add support for backrefs.
+
 2020-11-02, v0.3.5
 
 	* Changes to documentation:

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

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

Modified: trunk/Master/texmf-dist/doc/latex/biblatex-caspervector/caspervector.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/biblatex-caspervector/caspervector.tex	2022-10-30 20:39:39 UTC (rev 64865)
+++ trunk/Master/texmf-dist/doc/latex/biblatex-caspervector/caspervector.tex	2022-10-30 20:42:52 UTC (rev 64866)
@@ -1,6 +1,6 @@
 % Documentation for biblatex-caspervector
 %
-% Copyright (c) 2012-2016,2018-2019 Casper Ti. Vector
+% Copyright (c) 2012-2016,2018-2019,2022 Casper Ti. Vector
 %
 % This work may be distributed and/or modified under the conditions of the
 % LaTeX Project Public License, either version 1.3 of this license or (at
@@ -22,7 +22,7 @@
 \usepackage[margin = 2cm, centering, includefoot]{geometry}
 \usepackage[
 	backend = biber, style = caspervector, utf8,
-	giveninits = true, sortgiveninits = true
+	giveninits = true, sortgiveninits = true, backref = true
 ]{biblatex}
 \usepackage{iftex, fancyhdr, hyperref, enumitem, fancyvrb, hologo}
 
@@ -48,13 +48,13 @@
 \addbibresource{caspervector.bib}
 
 \begin{document}
-\title{\textbf{biblatex 参考文献和引用样式:\texttt{caspervector} v0.3.5}}
+\title{\textbf{biblatex 参考文献和引用样式:\texttt{caspervector} v0.3.6}}
 \author{%
 	Casper Ti.\ Vector\thanks{\ %
 		\href{mailto:CasperVector at gmail.com}{\texttt{CasperVector at gmail.com}}.%
 	}%
 }
-\date{2020/11/02}
+\date{2022/10/30}
 \maketitle
 
 \section{引言}
@@ -518,7 +518,9 @@
 这两种方法中更加推荐使用前者,因为前者只须手动实现出版年和期号的排版。
 
 \begin{refcontext}[sorting = none]
-\printbibliography[category = cited, heading = bibnumbered, title = {本文参考文献}]
+\printbibliography[category = cited, heading = bibnumbered, title = {%
+	本文参考文献(反向引用页码是设定 \texttt{backref = true} 产生的)%
+}]
 \end{refcontext}
 \begin{refcontext}[sorting = ecnyt]
 \printbibliography[notcategory = cited, heading = bibnumbered, title = {%

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-base.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-base.def	2022-10-30 20:39:39 UTC (rev 64865)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-base.def	2022-10-30 20:42:52 UTC (rev 64866)
@@ -1,6 +1,6 @@
 % Casper Ti. Vector's biblatex style
 %
-% Copyright (c) 2012-2019 Casper Ti. Vector
+% Copyright (c) 2012-2019,2022 Casper Ti. Vector
 %
 % This work may be distributed and/or modified under the conditions of the
 % LaTeX Project Public License, either version 1.3 of this license or (at
@@ -23,7 +23,7 @@
 %   blx-caspervector-utf8.def
 
 \ProvidesFile{blx-caspervector-base.def}%
-	[2020/11/02 v0.3.5 Casper Ti. Vector's biblatex library]
+	[2022/10/30 v0.3.6 Casper Ti. Vector's biblatex library]
 
 \RequireBiber[3]
 \newtoggle{bbx:gbk}
@@ -113,8 +113,9 @@
 \renewcommand*{\finalnamedelim}{\ifcitation{\bbx at citebcomma}{\finallistdelim}}
 \renewcommand*{\multinamedelim}{\ifcitation{\bbx at citebcomma}{\multilistdelim}}
 \renewcommand*{\postnotedelim}{\bbx at citecomma}
-\renewcommand*{\finentrypunct}%
-	{\iffieldundef{addendum}{\bbx at cepunct{\bbx at cnperiod}{.}}{}}
+\renewcommand*{\finentrypunct}{\ifboolexpr{
+	test {\iffieldundef{addendum}} and test {\iflistundef{pageref}}
+}{\bbx at cepunct{\bbx at cnperiod}{.}}{}}
 \DefineBibliographyExtras{english}{%
 	\renewcommand*{\finalandcomma}{}%
 }
@@ -135,6 +136,7 @@
 		{\ifinteger{#1}{{\bbx at cnnr} {#1} {\bbx at cnedition}}{#1}}%
 		{\ifinteger{#1}{\mkbibordedition{#1}~\bibstring{edition}}{#1\isdot}}%
 }
+\DeclareFieldFormat*{mypageref}{\mkbibbrackets{\^{}\,#1}}
 \newcommand*{\bbx at print}[1]{\iffieldundef{#1}{}{\printfield{#1}}}
 \newbibmacro*{cntypedelim}[1]{\ifandothers{#1}{}{\printtext{\andothersdelim}}}
 \newbibmacro*{cein:}%
@@ -243,6 +245,13 @@
 		\printurldate%
 	}%
 }
+\newbibmacro*{addendum+pageref}{%
+	\printfield{addendum}%
+	\iflistundef{pageref}{}{%
+		\bbx at cepunct{}{\setunit{\addspace}}%
+		\printtext[mypageref]{\printlist[pageref][-\value{listtotal}]{pageref}}%
+	}%
+}
 
 \DeclareBibliographyDriver{book}{%
 	\usebibmacro{bibindex}\usebibmacro{begentry}%
@@ -256,7 +265,7 @@
 	\usebibmacro{location+publisher+date+note+pages}%
 	\printunit{\bbx at ceperiod}\newblock
 	\usebibmacro{eid+url+urldate}\printunit{\bbx at ceperiod}\newblock
-	\printfield{addendum}\usebibmacro{finentry}%
+	\usebibmacro{addendum+pageref}\usebibmacro{finentry}%
 }
 
 \DeclareBibliographyDriver{incollection}{%
@@ -274,7 +283,7 @@
 	\usebibmacro{location+publisher+date+note+pages}%
 	\printunit{\bbx at ceperiod}\newblock
 	\usebibmacro{eid+url+urldate}\printunit{\bbx at ceperiod}\newblock
-	\printfield{addendum}\usebibmacro{finentry}%
+	\usebibmacro{addendum+pageref}\usebibmacro{finentry}%
 }
 
 \DeclareBibliographyDriver{periodical}{%
@@ -290,7 +299,7 @@
 	\printlist{location}\setunit*{\bbx at cecolon}%
 	\printlist{publisher}\printunit{\bbx at ceperiod}\newblock
 	\usebibmacro{eid+url+urldate}\printunit{\bbx at ceperiod}\newblock
-	\printfield{addendum}\usebibmacro{finentry}%
+	\usebibmacro{addendum+pageref}\usebibmacro{finentry}%
 }
 
 \DeclareBibliographyDriver{article}{%
@@ -304,7 +313,7 @@
 	\usebibmacro{date+volume+number+note+pages}%
 	\printunit{\bbx at ceperiod}\newblock
 	\usebibmacro{eid+url+urldate}\printunit{\bbx at ceperiod}\newblock
-	\printfield{addendum}\usebibmacro{finentry}%
+	\usebibmacro{addendum+pageref}\usebibmacro{finentry}%
 }
 
 \DeclareBibliographyDriver{patent}{%
@@ -320,12 +329,12 @@
 	\usebibmacro{date}\setunit*{\bbx at cecomma}%
 	\printfield{note}\printunit{\bbx at ceperiod}\newblock
 	\usebibmacro{eid+url+urldate}\printunit{\bbx at ceperiod}\newblock
-	\printfield{addendum}\usebibmacro{finentry}%
+	\usebibmacro{addendum+pageref}\usebibmacro{finentry}%
 }
 
 \DeclareBibliographyDriver{customf}{%
 	\usebibmacro{bibindex}\usebibmacro{begentry}%
-	\printfield{addendum}\usebibmacro{finentry}%
+	\usebibmacro{addendum+pageref}\usebibmacro{finentry}%
 }
 
 \DeclareBibliographyAlias{booklet}{book}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-gbk.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-gbk.def	2022-10-30 20:39:39 UTC (rev 64865)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-gbk.def	2022-10-30 20:42:52 UTC (rev 64866)
@@ -23,7 +23,7 @@
 %   blx-caspervector-utf8.def
 
 \ProvidesFile{blx-caspervector-gbk.def}%
-	[2020/11/02 v0.3.5 Chinese punctuations and captions in GBK]
+	[2022/10/30 v0.3.6 Chinese punctuations and captions in GBK]
 
 \newcommand*\bbx at cnldquot{\xA1\xB0}
 \newcommand*\bbx at cnrdquot{\xA1\xB1}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-utf8.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-utf8.def	2022-10-30 20:39:39 UTC (rev 64865)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/blx-caspervector-utf8.def	2022-10-30 20:42:52 UTC (rev 64866)
@@ -23,7 +23,7 @@
 %   blx-caspervector-utf8.def
 
 \ProvidesFile{blx-caspervector-utf8.def}%
-	[2020/11/02 v0.3.5 Chinese punctuations and captions in UTF-8]
+	[2022/10/30 v0.3.6 Chinese punctuations and captions in UTF-8]
 
 \newcommand*\bbx at cnldquot{“}
 \newcommand*\bbx at cnrdquot{”}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector-ay.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector-ay.bbx	2022-10-30 20:39:39 UTC (rev 64865)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector-ay.bbx	2022-10-30 20:42:52 UTC (rev 64866)
@@ -23,7 +23,7 @@
 %   blx-caspervector-utf8.def
 
 \ProvidesFile{caspervector-ay.bbx}%
-	[2020/11/02 v0.3.5 Casper Ti. Vector's author-year biblatex bibstyle]
+	[2022/10/30 v0.3.6 Casper Ti. Vector's author-year biblatex bibstyle]
 
 \RequireBibliographyStyle{authoryear-comp}
 \input{blx-caspervector-base.def}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector-ay.cbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector-ay.cbx	2022-10-30 20:39:39 UTC (rev 64865)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector-ay.cbx	2022-10-30 20:42:52 UTC (rev 64866)
@@ -23,7 +23,7 @@
 %   blx-caspervector-utf8.def
 
 \ProvidesFile{caspervector-ay.cbx}%
-	[2020/11/02 v0.3.5 Casper Ti. Vector's author-year biblatex citestyle]
+	[2022/10/30 v0.3.6 Casper Ti. Vector's author-year biblatex citestyle]
 
 \RequireCitationStyle{authoryear-comp}
 \renewcommand*{\compcitedelim}{\bbx at citebcomma}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx	2022-10-30 20:39:39 UTC (rev 64865)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.bbx	2022-10-30 20:42:52 UTC (rev 64866)
@@ -23,7 +23,7 @@
 %   blx-caspervector-utf8.def
 
 \ProvidesFile{caspervector.bbx}%
-	[2020/11/02 v0.3.5 Casper Ti. Vector's numeric biblatex bibstyle]
+	[2022/10/30 v0.3.6 Casper Ti. Vector's numeric biblatex bibstyle]
 
 \RequireBibliographyStyle{numeric-comp}
 \input{blx-caspervector-base.def}

Modified: trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.cbx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.cbx	2022-10-30 20:39:39 UTC (rev 64865)
+++ trunk/Master/texmf-dist/tex/latex/biblatex-caspervector/caspervector.cbx	2022-10-30 20:42:52 UTC (rev 64866)
@@ -23,7 +23,7 @@
 %   blx-caspervector-utf8.def
 
 \ProvidesFile{caspervector.cbx}%
-	[2020/11/02 v0.3.5 Casper Ti. Vector's numeric biblatex citestyle]
+	[2022/10/30 v0.3.6 Casper Ti. Vector's numeric biblatex citestyle]
 
 \RequireCitationStyle{numeric-comp}
 \ExecuteBibliographyOptions{autocite = superscript}



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