summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/caption
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-05-13 23:44:10 +0000
committerKarl Berry <karl@freefriends.org>2013-05-13 23:44:10 +0000
commitc0dc062c01f14cacf38aee55437d0b97571c280a (patch)
tree4c41e475cbe374028a6f3d5f1df7cbc58e5ddc9d /Master/texmf-dist/tex/latex/caption
parent124b1ee0fde140a15f9965ea59a7138e0179fe9b (diff)
caption (13may13)
git-svn-id: svn://tug.org/texlive/trunk@30449 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/caption')
-rw-r--r--Master/texmf-dist/tex/latex/caption/totalcount.sty30
1 files changed, 17 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/caption/totalcount.sty b/Master/texmf-dist/tex/latex/caption/totalcount.sty
index e609df916cf..c8e6476021d 100644
--- a/Master/texmf-dist/tex/latex/caption/totalcount.sty
+++ b/Master/texmf-dist/tex/latex/caption/totalcount.sty
@@ -37,16 +37,19 @@
%% caption-deu.tex, caption-eng.tex, and caption-rus.tex.
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{totalcount}[2008/03/09 v1.0 Total values of counters (AR)]
+\def\caption@tempa$Id: #1 #2 #3-#4-#5 #6${%
+ \def\caption@tempa{#3/#4/#5 }\def\caption@tempb{#2 }}
+\caption@tempa $Id: totalcount.sty 92 2013-05-12 09:06:59Z sommerfeldt $
+\ProvidesPackage{totalcount}[\caption@tempa v1.0-\caption@tempb Total values of counters (AR)]
\newcommand*\DeclareTotalCounter[1]{%
- \@ifundefined{c@#1}%
+ \newcounter{totalcount@#1}%
+ \@namedef{total#1s}{\nfss@text{\reset@font\bfseries ??}}%
+ \@namedef{total#1es}{\@nameuse{total#1s}}%
+ \expandafter\newif\csname iftotal#1s\endcsname
+ \@namedef{iftotal#1es}{\@nameuse{iftotal#1s}}%
+ \AtBeginDocument{\@ifundefined{c@#1}%
{\PackageError{totalcount}{Undefined counter `#1'}\@ehc}%
- {\newcounter{totalcount@#1}%
- \@namedef{total#1s}{\nfss@text{\reset@font\bfseries ??}}%
- \@namedef{total#1es}{\@nameuse{total#1s}}%
- \expandafter\newif\csname iftotal#1s\endcsname
- \@namedef{iftotal#1es}{\@nameuse{iftotal#1s}}%
- \@cons\totalcount@counters{{#1}}}}
+ {\@cons\totalcount@counters{{#1}}}}}
\@onlypreamble\DeclareTotalCounter
\let\totalcount@counters\@empty
\newcommand*\totalcount@xspace{}
@@ -64,11 +67,12 @@
\totalcount@addtocounter{#1}%
\totalcount@stpelt@ORI{#1}}
\newcommand*\totalcount@set[2]{%
- \@ifundefined{c@totalcount@#1}{}{%
- \global\@namedef{total#1s}{#2\totalcount@xspace}%
- \ifnum#2=0\relax \else
- \global\@nameuse{total#1strue}%
- \fi}}
+ \@ifundefined{c@totalcount@#1}%
+ {}%
+ {\global\@namedef{total#1s}{#2\totalcount@xspace}%
+ \ifnum#2=0\relax \else
+ \global\@nameuse{total#1strue}%
+ \fi}}
\AtBeginDocument{\AtEndDocument{%
\begingroup
\@tempswafalse