summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/carlisle/remreset.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:52:42 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:52:42 +0000
commit1eac51abebfe200d850284bf921c8012083ff2f9 (patch)
treebb78fe11f1f768ce29bd25f60052c5ea587509d2 /Master/texmf-dist/tex/latex/carlisle/remreset.sty
parente981a6612f28cfef515e09e1ab000e49d496f335 (diff)
carlisle
git-svn-id: svn://tug.org/texlive/trunk@738 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/carlisle/remreset.sty')
-rw-r--r--Master/texmf-dist/tex/latex/carlisle/remreset.sty39
1 files changed, 39 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/carlisle/remreset.sty b/Master/texmf-dist/tex/latex/carlisle/remreset.sty
new file mode 100644
index 00000000000..b53de583573
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/carlisle/remreset.sty
@@ -0,0 +1,39 @@
+
+% remreset package
+%%%%%%%%%%%%%%%%%%
+
+% Copyright 1997 David carlisle
+% This file may be distributed under the terms of the LPPL.
+% See 00readme.txt for details.
+
+% 1997/09/28 David Carlisle
+
+% LaTeX includes a command \@addtoreset that is used to declare that
+% a counter should be reset every time a second counter is incremented.
+
+% For example the book class has a line
+% \@addtoreset{footnote}{chapter}
+% So that the footnote counter is reset each chapter.
+
+% If you wish to bas a new class on book, but without this counter
+% being reset, then standard LaTeX gives no simple mechanism to do
+% this.
+
+% This package defines |\@removefromreset| which just undoes the effect
+% of \@addtorest. So for example a class file may be defined by
+
+% \LoadClass{book}
+% \@removefromreset{footnote}{chapter}
+
+
+\def\@removefromreset#1#2{{%
+ \expandafter\let\csname c@#1\endcsname\@removefromreset
+ \def\@elt##1{%
+ \expandafter\ifx\csname c@##1\endcsname\@removefromreset
+ \else
+ \noexpand\@elt{##1}%
+ \fi}%
+ \expandafter\xdef\csname cl@#2\endcsname{%
+ \csname cl@#2\endcsname}}}
+
+