
alo@0: %%
alo@0: %% This is file `aliascnt.sty',
alo@0: %% generated with the docstrip utility.
alo@0: %%
alo@0: %% The original source files were:
alo@0: %%
alo@0: %% aliascnt.dtx  (with options: `package')
alo@0: %% 
alo@0: %% This is a generated file.
alo@0: %% 
alo@0: %% Project: aliascnt
alo@0: %% Version: 2009/09/08 v1.3
alo@0: %% 
alo@0: %% Copyright (C) 2006, 2009 by
alo@0: %%    Heiko Oberdiek <heiko.oberdiek at googlemail.com>
alo@0: %% 
alo@0: %% This work may be distributed and/or modified under the
alo@0: %% conditions of the LaTeX Project Public License, either
alo@0: %% version 1.3c of this license or (at your option) any later
alo@0: %% version. This version of this license is in
alo@0: %%    http://www.latex-project.org/lppl/lppl-1-3c.txt
alo@0: %% and the latest version of this license is in
alo@0: %%    http://www.latex-project.org/lppl.txt
alo@0: %% and version 1.3 or later is part of all distributions of
alo@0: %% LaTeX version 2005/12/01 or later.
alo@0: %% 
alo@0: %% This work has the LPPL maintenance status "maintained".
alo@0: %% 
alo@0: %% This Current Maintainer of this work is Heiko Oberdiek.
alo@0: %% 
alo@0: %% This work consists of the main source file aliascnt.dtx
alo@0: %% and the derived files
alo@0: %%    aliascnt.sty, aliascnt.pdf, aliascnt.ins, aliascnt.drv.
alo@0: %% 
alo@0: \NeedsTeXFormat{LaTeX2e}
alo@0: \ProvidesPackage{aliascnt}%
alo@0:   [2009/09/08 v1.3 Alias counter (HO)]%
alo@0: \newcommand*{\newaliascnt}[2]{%
alo@0:   \begingroup
alo@0:     \def\AC@glet##1{%
alo@0:       \global\expandafter\let\csname##1#1\expandafter\endcsname
alo@0:         \csname##1#2\endcsname
alo@0:     }%
alo@0:     \@ifundefined{c@#2}{%
alo@0:       \@nocounterr{#2}%
alo@0:     }{%
alo@0:       \expandafter\@ifdefinable\csname c@#1\endcsname{%
alo@0:         \AC@glet{c@}%
alo@0:         \AC@glet{the}%
alo@0:         \AC@glet{theH}%
alo@0:         \AC@glet{p@}%
alo@0:         \expandafter\gdef\csname AC@cnt@#1\endcsname{#2}%
alo@0:         \expandafter\gdef\csname cl@#1\expandafter\endcsname
alo@0:         \expandafter{\csname cl@#2\endcsname}%
alo@0:       }%
alo@0:     }%
alo@0:   \endgroup
alo@0: }
alo@0: \newcommand*{\aliascntresetthe}[1]{%
alo@0:   \@ifundefined{AC@cnt@#1}{%
alo@0:     \PackageError{aliascnt}{%
alo@0:       `#1' is not an alias counter%
alo@0:     }\@ehc
alo@0:   }{%
alo@0:     \expandafter\let\csname the#1\expandafter\endcsname
alo@0:       \csname the\csname AC@cnt@#1\endcsname\endcsname
alo@0:   }%
alo@0: }
alo@0: \newcommand*{\AC@findrootcnt}[1]{%
alo@0:   \@ifundefined{AC@cnt@#1}{%
alo@0:     #1%
alo@0:   }{%
alo@0:     \expandafter\AC@findrootcnt\csname AC@cnt@#1\endcsname
alo@0:   }%
alo@0: }
alo@0: \def\AC@patch#1{%
alo@0:   \expandafter\let\csname AC@org@#1reset\expandafter\endcsname
alo@0:     \csname @#1reset\endcsname
alo@0:   \expandafter\def\csname @#1reset\endcsname##1##2{%
alo@0:     \csname AC@org@#1reset\endcsname{##1}{\AC@findrootcnt{##2}}%
alo@0:   }%
alo@0: }
alo@0: \RequirePackage{remreset}
alo@0: \AC@patch{addto}
alo@0: \AC@patch{removefrom}
alo@0: \endinput
alo@0: %%
alo@0: %% End of file `aliascnt.sty'.




