From 170c76072a2b68eeeb23fa4a9e3dfbdee131e29c Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Tue, 25 Oct 2022 03:01:19 +0000 Subject: CTAN sync 202210250301 --- .../biblatex-contrib/biblatex-publist/publist.cbx | 37 +++++++++++++++++++--- 1 file changed, 32 insertions(+), 5 deletions(-) (limited to 'macros/latex/contrib/biblatex-contrib/biblatex-publist/publist.cbx') diff --git a/macros/latex/contrib/biblatex-contrib/biblatex-publist/publist.cbx b/macros/latex/contrib/biblatex-contrib/biblatex-publist/publist.cbx index 2de500984f..3aaaedacf7 100644 --- a/macros/latex/contrib/biblatex-contrib/biblatex-publist/publist.cbx +++ b/macros/latex/contrib/biblatex-contrib/biblatex-publist/publist.cbx @@ -26,8 +26,8 @@ % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\def\bpl@version{1.27} -\def\bpl@rdate{2022/10/03} +\def\bpl@version{2.0} +\def\bpl@rdate{2022/10/24} \ProvidesFile{publist.cbx}[\bpl@rdate\space v.\bpl@version\space biblatex citation style (JSP)] @@ -66,14 +66,41 @@ } \providebool{@bpl@reversenum} +\providebool{@bpl@numberreset} +\providebool{plnumgroup} \AtEndOfPackage{% \if@bpl@reversenum + \newcounter{prevcrefsection}% \renewrobustcmd{\mkrefdesc}[1]{% - % Print the labelnumber as the total number of entries in the - % current refsection, minus the actual labelnumber, plus one - \number\numexpr\csuse{bpl@itemtotal}-#1+1% + \ifbool{@bpl@numberreset}{% + % Print the labelnumber as the total number of entries in the + % current refsection, minus the actual labelnumber, plus one + \ifbool{plnumgroup}{% + \number\numexpr\csuse{bpl@itemtotal}-#1+1% + +\csuse{bpl@secstartshift}\relax% + }{% + \ifcsdef{bpl@secitems:\therefsection}{% + \number\numexpr\csuse{bpl@secitems:\therefsection}-#1+1% +\csuse{bpl@secstartshift}\relax% + }{% + \number\numexpr\csuse{bpl@itemtotal}-#1+1% + +\csuse{bpl@secstartshift}\relax% + }% + }% + }{% + % Use decreasing counter + \setcounter{prevcrefsection}{\therefsection}% + \addtocounter{prevcrefsection}{-1}% + \ifcsdef{bpl@items:\theprevcrefsection}{% + \number\numexpr\csuse{bpl@itemtotal}-#1+1% + -\csuse{bpl@items:\theprevcrefsection}% + +\csuse{bpl@secstartshift}\relax% + }{% + \number\numexpr\csuse{bpl@itemtotal}-#1+1% + +\csuse{bpl@secstartshift}\relax% + }% + }% }% \fi% } -- cgit v1.2.3