From 1533fd06f8be031b9db6baf261cd9931923ae063 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 16 Jun 2015 21:21:59 +0000 Subject: cntperchap (1jun15) git-svn-id: svn://tug.org/texlive/trunk@37572 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/cntperchap/cntperchap.sty | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/cntperchap') diff --git a/Master/texmf-dist/tex/latex/cntperchap/cntperchap.sty b/Master/texmf-dist/tex/latex/cntperchap/cntperchap.sty index 94b202903fd..93704b9a5da 100644 --- a/Master/texmf-dist/tex/latex/cntperchap/cntperchap.sty +++ b/Master/texmf-dist/tex/latex/cntperchap/cntperchap.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{cntperchap}[2015/05/09 v0.2 -- store counter values per chapter]% +\ProvidesPackage{cntperchap}[2015/06/01 v0.3 -- store counter values per chapter]% %% %% License: LaTeX Project Public License version 1.3 %% Copyright (2015) Dr. Christian Hupfer @@ -423,7 +423,7 @@ \def\cps@@trackleveltoshow{\value{cps@@totaltracklevelcount}}% }{% \def\cps@@trackleveltoshow{#1}% - } + }% \ifcsdef{#2countlist}{% \forlistcsloop{\@cps@@searchcountervalue{\cps@@trackleveltoshow}{cps@@tempcounter}}{#2countlist}% }{% @@ -431,6 +431,11 @@ }% Failure branch should be improved } +\newcommand{\FetchStoredCounterValue}[2][\number\value{cps@@currentlevelcount}]{% + \GetStoredCounterValue[#1]{#2}% + \number\value{cps@@tempcounterstorage}% +} + \newcommand{\StartCounterToc}{% \ifnumgreater{\value{\@cps@@cpscountersname}}{0}{% -- cgit v1.2.3