diff options
Diffstat (limited to 'macros/latex/contrib/biblatex-contrib')
11 files changed, 37 insertions, 21 deletions
diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/ChangeLog.txt b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/ChangeLog.txt index 2de15cc139..3d308fe078 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/ChangeLog.txt +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/ChangeLog.txt @@ -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: diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector-ay.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector-ay.pdf Binary files differindex ddf54b7c8f..262076de2e 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector-ay.pdf +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector-ay.pdf diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.pdf b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.pdf Binary files differindex 62da3d0589..4fe8a1d3bf 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.pdf +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.pdf diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.tex b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.tex index d67aee127a..601cef3f8b 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.tex +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/doc/caspervector.tex @@ -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@gmail.com}{\texttt{CasperVector@gmail.com}}.% }% } -\date{2020/11/02} +\date{2022/10/30} \maketitle \section{引言} @@ -518,7 +518,9 @@ biblatex 3.0--3.3 的功能调整导致分类排序失效。% 这两种方法中更加推荐使用前者,因为前者只须手动实现出版年和期号的排版。 \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 = {% diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-base.def b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-base.def index c23b4b1dad..4d326af7ce 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-base.def +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-base.def @@ -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@citebcomma}{\finallistdelim}} \renewcommand*{\multinamedelim}{\ifcitation{\bbx@citebcomma}{\multilistdelim}} \renewcommand*{\postnotedelim}{\bbx@citecomma} -\renewcommand*{\finentrypunct}% - {\iffieldundef{addendum}{\bbx@cepunct{\bbx@cnperiod}{.}}{}} +\renewcommand*{\finentrypunct}{\ifboolexpr{ + test {\iffieldundef{addendum}} and test {\iflistundef{pageref}} +}{\bbx@cepunct{\bbx@cnperiod}{.}}{}} \DefineBibliographyExtras{english}{% \renewcommand*{\finalandcomma}{}% } @@ -135,6 +136,7 @@ {\ifinteger{#1}{{\bbx@cnnr} {#1} {\bbx@cnedition}}{#1}}% {\ifinteger{#1}{\mkbibordedition{#1}~\bibstring{edition}}{#1\isdot}}% } +\DeclareFieldFormat*{mypageref}{\mkbibbrackets{\^{}\,#1}} \newcommand*{\bbx@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@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@ceperiod}\newblock \usebibmacro{eid+url+urldate}\printunit{\bbx@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@ceperiod}\newblock \usebibmacro{eid+url+urldate}\printunit{\bbx@ceperiod}\newblock - \printfield{addendum}\usebibmacro{finentry}% + \usebibmacro{addendum+pageref}\usebibmacro{finentry}% } \DeclareBibliographyDriver{periodical}{% @@ -290,7 +299,7 @@ \printlist{location}\setunit*{\bbx@cecolon}% \printlist{publisher}\printunit{\bbx@ceperiod}\newblock \usebibmacro{eid+url+urldate}\printunit{\bbx@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@ceperiod}\newblock \usebibmacro{eid+url+urldate}\printunit{\bbx@ceperiod}\newblock - \printfield{addendum}\usebibmacro{finentry}% + \usebibmacro{addendum+pageref}\usebibmacro{finentry}% } \DeclareBibliographyDriver{patent}{% @@ -320,12 +329,12 @@ \usebibmacro{date}\setunit*{\bbx@cecomma}% \printfield{note}\printunit{\bbx@ceperiod}\newblock \usebibmacro{eid+url+urldate}\printunit{\bbx@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} diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-gbk.def b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-gbk.def index 429ee5db47..83650ccb5d 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-gbk.def +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-gbk.def @@ -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@cnldquot{} \newcommand*\bbx@cnrdquot{} diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-utf8.def b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-utf8.def index 872d40567f..571291605d 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-utf8.def +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/blx-caspervector-utf8.def @@ -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@cnldquot{“} \newcommand*\bbx@cnrdquot{”} diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.bbx index 139b83551f..690d19fe9d 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.bbx +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.bbx @@ -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} diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.cbx index 12133338a9..a58fecebe3 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.cbx +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector-ay.cbx @@ -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@citebcomma} diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.bbx b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.bbx index 80682d4e05..9647c575da 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.bbx +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.bbx @@ -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} diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.cbx index 5a3ac392cf..da4f7b5a70 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.cbx +++ b/macros/latex/contrib/biblatex-contrib/biblatex-caspervector/tex/caspervector.cbx @@ -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} |