summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/cntperchap
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-06-16 21:21:59 +0000
committerKarl Berry <karl@freefriends.org>2015-06-16 21:21:59 +0000
commit1533fd06f8be031b9db6baf261cd9931923ae063 (patch)
tree2c635e9e718cafc3424b3eb29609550dc99156a8 /Master/texmf-dist/tex/latex/cntperchap
parent46dee2b7c9853952780c7e8b4ab9ed66d819002a (diff)
cntperchap (1jun15)
git-svn-id: svn://tug.org/texlive/trunk@37572 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/cntperchap')
-rw-r--r--Master/texmf-dist/tex/latex/cntperchap/cntperchap.sty9
1 files changed, 7 insertions, 2 deletions
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}{%