5 % Copyright 1997 David carlisle
6 % This file may be distributed under the terms of the LPPL.
7 % See 00readme.txt for details.
9 % 1997/09/28 David Carlisle
11 % LaTeX includes a command \@addtoreset that is used to declare that
12 % a counter should be reset every time a second counter is incremented.
14 % For example the book class has a line
15 % \@addtoreset{footnote}{chapter}
16 % So that the footnote counter is reset each chapter.
18 % If you wish to bas a new class on book, but without this counter
19 % being reset, then standard LaTeX gives no simple mechanism to do
22 % This package defines |\@removefromreset| which just undoes the effect
23 % of \@addtorest. So for example a class file may be defined by
26 % \@removefromreset{footnote}{chapter}
29 \def\@removefromreset#1#2{{%
30 \expandafter\let\csname c@#1\endcsname\@removefromreset
32 \expandafter\ifx\csname c@##1\endcsname\@removefromreset
36 \expandafter\xdef\csname cl@#2\endcsname{%
37 \csname cl@#2\endcsname}}}