summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/biblatex-publist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-07-21 21:47:11 +0000
committerKarl Berry <karl@freefriends.org>2013-07-21 21:47:11 +0000
commite084e4f8235d8fa63be506f6a53b9cf7cdedc2cf (patch)
tree507901689b52219883362f45809c37c1d6eb29d2 /Master/texmf-dist/tex/latex/biblatex-publist
parent3738f8dc8f88f44be7bbd74d9fb3a31aba4a48f8 (diff)
biblatex-publist (21jul13)
git-svn-id: svn://tug.org/texlive/trunk@31258 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/biblatex-publist')
-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}%
}