summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx23
1 files changed, 13 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx b/Master/texmf-dist/tex/latex/biblatex-publist/publist.bbx
index 4427c866d8b..60549436043 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{0.5}
-\def\bpl@rdate{2013/05/03}
+\def\bpl@version{0.6}
+\def\bpl@rdate{2013/07/21}
\ProvidesFile{publist.bbx}[\bpl@rdate\space v.\bpl@version\space
biblatex bibliography style (JSP)]
@@ -108,20 +108,22 @@
\csnumgdef{bbx@itemtotal}{0}
\csnumgdef{bbx@currentitem}{0}
\csnumgdef{bbx@saverefsection}{0}
-\newbool{started}
+\newbool{newsection}
+
+\preto\blx@refsection{\global\setbool{newsection}{true}}
\defbibenvironment{bibliography}
{\list
{\printtext[labelnumberwidth]{%
- \printfield{prefixnumber}%
- \printfield{labelnumber}}}
+ \printfield{prefixnumber}%
+ \printfield{labelnumber}}}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\addtolength{\leftmargin}{\labelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
- \renewcommand*{\makelabel}[1]{\hss##1}}
+ \renewcommand*{\makelabel}[1]{\hss##1}}%
{\endlist
\ifnumgreater{\c@refsection}{\bbx@saverefsection}%
{\csnumgdef{bbx@itemtotal}{\csuse{bbx@itemtotal}+\csuse{bbx@currentitem}}}{}%
@@ -130,10 +132,11 @@
{\item}
\DeclareFieldFormat{labelnumber}{%
- \ifbool{started}{}{%
- % Assure we really start at 0.
- \csnumgdef{bbx@itemtotal}{-#1+1}%
- \global\setbool{started}{true}}%
+ \ifbool{newsection}{%
+ % Fix start counter value
+ \csnumgdef{bbx@itemtotal}{\csuse{bbx@itemtotal}-#1+1}%
+ \global\setbool{newsection}{false}%
+ }{}%
\mkbibdesc{#1}%
\csnumgdef{bbx@currentitem}{#1}%
}