summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fragments/removefr.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/fragments/removefr.tex')
-rw-r--r--macros/latex/contrib/fragments/removefr.tex13
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/latex/contrib/fragments/removefr.tex b/macros/latex/contrib/fragments/removefr.tex
new file mode 100644
index 0000000000..2a58ebf2d7
--- /dev/null
+++ b/macros/latex/contrib/fragments/removefr.tex
@@ -0,0 +1,13 @@
+%Date: Sat, 30 Jul 1994 17:58:55 PST
+%From: Donald Arseneau <asnd@erich.triumf.ca>
+%
+% \@removefromreset{FOO}{BAR} : Removes counter FOO from the list of
+% counters \cl@BAR to be reset when counter BAR
+% is stepped. The opposite of \@addtoreset.
+
+\def\@removefromreset#1#2{\let\@tempb\@elt
+ \expandafter\let\expandafter\@tempa\csname c@#1\endcsname
+ \def\@elt##1{\expandafter\ifx\csname c@##1\endcsname\@tempa\else
+ \noexpand\@elt{##1}\fi}%
+ \expandafter\edef\csname cl@#2\endcsname{\csname cl@#2\endcsname}%
+ \let\@elt\@tempb}