summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ms/count1to.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ms/count1to.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ms/count1to.sty63
1 files changed, 26 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/latex/ms/count1to.sty b/Master/texmf-dist/tex/latex/ms/count1to.sty
index 26afd1f10d7..be52a21ce3e 100644
--- a/Master/texmf-dist/tex/latex/ms/count1to.sty
+++ b/Master/texmf-dist/tex/latex/ms/count1to.sty
@@ -6,36 +6,28 @@
%%
%% count1to.dtx (with options: `package')
%%
-%% Copyright (c) [1994..1999] by Martin Schr"oder. All rights reserved.
+%% Copyright (c) 1994..2009 by Martin Schroeder. All rights reserved.
%%
%% This file is part of the Count1to package
%%
-%% This program may be redistributed and/or modified under the terms
-%% of the LaTeX Project Public License, either version 1.0 of this
-%% license, or (at your option) any later version.
+%% 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
-%% CTAN:macros/latex/base/lppl.txt.
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
%%
-%% Happy users are requested to send me a postcard. :-)
+%% This work has the LPPL maintenance status `maintained'.
%%
-%% The Count1to package contains these files:
+%% The Current Maintainer of this work is Martin Schroeder.
%%
-%% count1to.asc
-%% count1to.dtx
-%% count1to.dvi
-%% count1to.ins
-%% count1to.bug
-%%
-%% Error Reports in case of UNCHANGED versions to
-%%
-%% Martin Schr"oder
-%% Cr"usemannallee 3
-%% D-28213 Bremen
-%% Martin.Schroeder@ACM.org
+%% This work consists of the files count1to.dtx and count1to.ins
+%% and the derived file count1to.sty.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{count1to}
- [1999/06/08 v1.22 Count1to9 Package (MS)]
+ [2009/05/24 v2.1 Count1to9 Package (MS)]
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -56,22 +48,21 @@
%% ===================================================================
%% @LaTeX-style-file{
%% author = {Martin Schr\"oder},
-%% version = "1.22",
-%% date = "8 June 1999",
+%% version = "2.1",
+%% date = "24 May 2009",
%% filename = "count1to.sty",
%% address = {Martin Schr\"oder
-%% Cr\"usemannallee 3
-%% D-28213 Bremen
-%% telephone = "+49-421-2239425",
-%% email = "Martin.Schroeder@ACM.org",
-%% pgp-Key = "2048 bit / KeyID 292814E5",
-%% pgp-fingerprint = "7E86 6EC8 97FA 2995 82C3 FEA5 2719 090E",
+%% Barmer Stra\"se 14
+%% 44137 Dortmund
+%% Germany}
+%% telephone = "+49-231-1206574",
+%% email = "martin@oneiros.de",
%% docstring = "LaTeX package which sets count1 to count9,
%% which can be used to select certain pages
%% with a driver.
%% Also provides access to the number of pages
%% of the document.
-%% Uses the everyshi package.
+%% Uses the everyshi package."
%% }
%% ===================================================================
%% \fi
@@ -92,7 +83,6 @@
\@ifundefined{c@paragraph} {}{\@have@paragraphtrue}
\@ifundefined{c@subparagraph} {}{\@have@subparagraphtrue}
}
-\AtBeginDocument{\@countItoIX@ifs\let\@countItoIX@ifs\undefined}
\newcommand*{\@countItoIX@bugfix}{
\if@have@part
\@addtoreset{section} {part}
@@ -120,7 +110,12 @@
\@addtoreset{subparagraph} {subsubsection}
\fi
}
-\AtBeginDocument{\@countItoIX@bugfix\let\@countItoIX@bugfix\undefined}
+\newcommand*{\@countItoIX@init}{%
+ \message{ABD: Count1to9 initializing macros}%
+ \@countItoIX@ifs\let\@countItoIX@ifs\undefined
+ \@countItoIX@bugfix\let\@countItoIX@bugfix\undefined
+ }
+\AtBeginDocument{\@countItoIX@init}
\newcommand*{\@countItoIX@shipout}{
\global\advance \count1 by 1
\if@have@part \count2\value{part} \fi
@@ -133,12 +128,6 @@
\ifodd\count1\count9=1 \else\count9=0 \fi
}
\EveryShipout{\@countItoIX@shipout}
-\AtBeginDocument{%
- \AtEndDocument{%
- \clearpage
- \immediate\write\@mainaux{\string\newlabel{TotalPages}{{\the\count1}{\the\count1}}}
- }%
- }
\endinput
%%
%% End of file `count1to.sty'.