summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/caption/totalcount.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/caption/totalcount.sty')
-rw-r--r--Master/texmf-dist/tex/latex/caption/totalcount.sty87
1 files changed, 87 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/caption/totalcount.sty b/Master/texmf-dist/tex/latex/caption/totalcount.sty
new file mode 100644
index 00000000000..350bbb2f815
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/caption/totalcount.sty
@@ -0,0 +1,87 @@
+%%
+%% This is file `totalcount.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% totalcount.dtx (with options: `package')
+%%
+%% Copyright (C) 1994-2013 Axel Sommerfeldt
+%%
+%% http://sourceforge.net/projects/latex-caption/
+%%
+%% --------------------------------------------------------------------------
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2003/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% This Current Maintainer of this work is Axel Sommerfeldt.
+%%
+%% This work consists of the files
+%% CHANGELOG, README, SUMMARY, caption.ins,
+%% caption.dtx, caption2.dtx, caption3.dtx,
+%% bicaption.dtx, ltcaption.dtx, subcaption.dtx,
+%% newfloat.dtx, and totalcount.dtx
+%% the derived files
+%% caption.sty, caption2.sty, caption3.sty,
+%% bicaption.sty, ltcaption.sty, subcaption.sty,
+%% newfloat.sty, and totalcount.sty
+%% and the user manuals
+%% caption-deu.tex, caption-eng.tex, and caption-rus.tex.
+%%
+\NeedsTeXFormat{LaTeX2e}[1994/12/01]
+\ProvidesPackage{totalcount}[2008/02/27 v0.7 Total values of counters (AR)]
+\newcommand*\DeclareTotalCounter[1]{%
+ \@ifundefined{c@#1}%
+ {\PackageError{totalcount}{Undefined counter `#1'}\@ehc}%
+ {\newcounter{total@#1}%
+ \@namedef{total#1s}{\nfss@text{\reset@font\bfseries ??}}%
+ \@namedef{total#1es}{\nfss@text{\reset@font\bfseries ??}}%
+ \@cons\total@counters{{#1}}}}
+\@onlypreamble\DeclareTotalCounter
+\let\total@counters\@empty
+\newcommand*\total@xspace{}
+\DeclareOption{xspace}{\renewcommand*\total@xspace{\xspace}}
+\DeclareOption*{\expandafter\DeclareTotalCounter\expandafter{\CurrentOption}}
+\ProcessOptions\relax
+\ifx\total@xspace\@empty\else
+ \RequirePackage{xspace}
+\fi
+\newcommand*\total@addtocounter[1]{%
+ \@ifundefined{c@total@#1}{}{%
+ \addtocounter{total@#1}{\value{#1}}}}
+\let\total@stpelt@ORI\@stpelt
+\renewcommand*\@stpelt[1]{%
+ \total@addtocounter{#1}\total@stpelt@ORI{#1}}
+\AtBeginDocument{\AtEndDocument{%
+ \begingroup
+ \@tempswafalse
+ \def\@elt#1{%
+ \total@addtocounter{#1}%
+ \xdef\total@tempa{\the\value{total@#1}}%
+ \xdef\total@tempb{\total@tempa\noexpand\total@xspace}%
+ \expandafter\ifx\csname total#1s\endcsname\total@tempb \else
+ \@tempswatrue
+ \fi
+ \if@filesw
+ \immediate\write\@mainaux{%
+ \string\gdef\string\total#1s{\total@tempa\string\total@xspace}%
+ \string\gdef\string\total#1es{\total@tempa\string\total@xspace}}%
+ \fi}%
+ \total@counters
+ \if@tempswa
+ \PackageWarningNoLine{totalcount}{%
+ Total counter(s) have changed.\MessageBreak
+ Rerun to get them right}%
+ \fi
+ \endgroup}}%
+\endinput
+%%
+%% End of file `totalcount.sty'.