diff options
author | Karl Berry <karl@freefriends.org> | 2023-05-18 20:06:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-05-18 20:06:36 +0000 |
commit | 8764827c580a6fc346b394ba3fae06d0a819dfaf (patch) | |
tree | 00ccdac65b2254ba75ce08bbd666dfdace6a1eb6 /Master/texmf-dist/tex/latex | |
parent | 7071b2a856a3fad52bed993cba367b9264dca238 (diff) |
biblatex-publist (18may23)
git-svn-id: svn://tug.org/texlive/trunk@67148 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
3 files changed, 32 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx b/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx index cdb4ea966fb..4d9a50efa2b 100644 --- a/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx +++ b/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx @@ -25,8 +25,8 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\def\bpl@version{2.3} -\def\bpl@rdate{2023/03/18} +\def\bpl@version{2.4} +\def\bpl@rdate{forthcoming} \ProvidesFile{publist.bbx}[\bpl@rdate\space v.\bpl@version\space biblatex bibliography style (JSP)] @@ -49,6 +49,7 @@ % \newif\if@marginyear\@marginyearfalse \newif\if@hlyear\@hlyeartrue +\newif\if@fixyear\@fixyeartrue \newif\if@pubstateextra\@pubstateextrafalse \newif\if@hlauthor\@hlauthorfalse \newif\if@givenfirst\@givenfirstfalse @@ -101,6 +102,9 @@ % hlyear=<true|false> % Set year highlighted hlyear.legacy_if_set:n = @hlyear, + % fixyear=<true|false> + % Fix year at first position + fixyear.legacy_if_set:n = @fixyear, % pubstateextra=<true|false> % Extra label for pubstates pubstateextra.legacy_if_set:n = @pubstateextra, @@ -429,6 +433,7 @@ \DeclareBibliographyOption{plnumbering}[global]{\ExecutePublistOptions{plnumbering=#1}} \DeclareBibliographyOption{marginyear}[true]{\ExecutePublistOptions{marginyear=#1}} \DeclareBibliographyOption{hlyear}[true]{\ExecutePublistOptions{hlyear=#1}} +\DeclareBibliographyOption{fixyear}[true]{\ExecutePublistOptions{fixyear=#1}} \DeclareBibliographyOption{pubstateextra}[true]{\ExecutePublistOptions{pubstateextra=#1}} \DeclareBibliographyOption{jifinfo}[true]{\ExecutePublistOptions{jifinfo=#1}} \DeclareBibliographyOption{oainfo}[simple]{\ExecutePublistOptions{oainfo=#1}} @@ -1185,6 +1190,9 @@ \apptocmd{\abx@macro@endrelated}{\global\togglefalse{isinrelated}}{}% {\PackageWarning{biblatex-publist}{Patching endrelated failed!}} +\providecommand*\bplopenoa{\bibopenparen} +\providecommand*\bplcloseoa{\bibcloseparen} + % Omission/highlighting routine % (common code for authors and editors) % \usebibmacro{bpl:handlenames}[author|editor] @@ -1251,7 +1259,7 @@ \else% \if@hlauthor false \ifthenelse{\value{listcount}=1}% {\ifthenelse{\value{nonpl#1s}>0\AND{\value{pl#1s}}>0}% - {\iftoggle{isinrelated}{}{\bibopenparen\bibstring{with}\addspace}}% + {\iftoggle{isinrelated}{}{\bplopenoa\bibstring{with}\addspace}}% {}% \iftoggle{isplauthor}% {\global\toggletrue{plauthorprecedes}}% @@ -1291,7 +1299,7 @@ % \usebibmacro{bpl:name:andothers}% \ifthenelse{\value{nonpl#1s}>0\AND{\value{pl#1s}}>0\AND\value{listcount}=\value{liststop}}% - {\unspace\iftoggle{isinrelated}{}{\bibcloseparen}}% + {\unspace\iftoggle{isinrelated}{}{\bplcloseoa}}% {}% \fi% end of \if@hlauthor else condition } @@ -1366,13 +1374,19 @@ }% }% }% - \adddot\addspace\usebibmacro{bpl:year+labelyear}% + \if@fixyear% + \adddot\addspace% + \usebibmacro{bpl:year+labelyear}% + \fi% \else% \if@hlauthor false \ifnameundef{author} {} {% \usebibmacro{bpl:marginyear}% - \usebibmacro{bpl:year+labelyear}\addspace% + \if@fixyear% + \usebibmacro{bpl:year+labelyear}% + \addspace% + \fi% \printnames[][-\value{listtotal}]{author}% \setunit{\addspace}% \iffieldundef{nameaddon} @@ -1397,16 +1411,20 @@ \setunit{\printdelim{editortypedelim}}% \usebibmacro{editorstrg}% }% - \adddot\addspace% - \usebibmacro{bpl:year+labelyear}% + \if@fixyear% + \adddot\addspace% + \usebibmacro{bpl:year+labelyear}% + \fi% \clearname{editor}% \else% \if@hlauthor false \ifnameundef{editor} {} {% \usebibmacro{bpl:marginyear}% - \usebibmacro{bpl:year+labelyear}% - \addspace% + \if@fixyear + \usebibmacro{bpl:year+labelyear}% + \addspace% + \fi% \printnames[][-\value{listtotal}]{editor}% \setunit{\printdelim{editortypedelim}}% \usebibmacro{editorstrg}% @@ -1538,7 +1556,7 @@ }% \fi } - + \newbibmacro*{bpl:year+labelyear}{% \iffieldundef{year}{% \iffieldundef{pubstate}% diff --git a/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx b/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx index ee07e698c34..5587789cc40 100644 --- a/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx +++ b/Master/texmf-dist/tex/latex/biblatex-publist/publist.cbx @@ -26,8 +26,8 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\def\bpl@version{2.3} -\def\bpl@rdate{2023/03/18} +\def\bpl@version{2.4} +\def\bpl@rdate{forthcoming} \ProvidesFile{publist.cbx}[\bpl@rdate\space v.\bpl@version\space biblatex citation style (JSP)] diff --git a/Master/texmf-dist/tex/latex/biblatex-publist/publist.dbx b/Master/texmf-dist/tex/latex/biblatex-publist/publist.dbx index 3ebf0da52ef..ccc929ac45c 100644 --- a/Master/texmf-dist/tex/latex/biblatex-publist/publist.dbx +++ b/Master/texmf-dist/tex/latex/biblatex-publist/publist.dbx @@ -1,5 +1,5 @@ % publist.dbx, biblatex data model specification for the biblatex-publist -% package, version 2.3 (2023/03/18). +% package, version 2.4 (2023/05/18). % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 |