summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/carlisle/remreset.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/carlisle/remreset.sty')
-rw-r--r--Master/texmf-dist/tex/latex/carlisle/remreset.sty18
1 files changed, 13 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/carlisle/remreset.sty b/Master/texmf-dist/tex/latex/carlisle/remreset.sty
index b53de583573..0d987ec1850 100644
--- a/Master/texmf-dist/tex/latex/carlisle/remreset.sty
+++ b/Master/texmf-dist/tex/latex/carlisle/remreset.sty
@@ -2,10 +2,11 @@
% remreset package
%%%%%%%%%%%%%%%%%%
-% Copyright 1997 David carlisle
+% Copyright 1997, 2018 David carlisle
% This file may be distributed under the terms of the LPPL.
-% See 00readme.txt for details.
+% See README.txt for details.
+% 2018/04/01 David Carlisle
% 1997/09/28 David Carlisle
% LaTeX includes a command \@addtoreset that is used to declare that
@@ -15,17 +16,19 @@
% \@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
+% If you wish to base 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
+% of \@addtoreset. So for example a class file may be defined by
% \LoadClass{book}
% \@removefromreset{footnote}{chapter}
+% 2018: package obsoleted as the command is defined in the LaTeX format.
+\@ifundefined{@removefromreset}{%
\def\@removefromreset#1#2{{%
\expandafter\let\csname c@#1\endcsname\@removefromreset
\def\@elt##1{%
@@ -34,6 +37,11 @@
\noexpand\@elt{##1}%
\fi}%
\expandafter\xdef\csname cl@#2\endcsname{%
- \csname cl@#2\endcsname}}}
+ \csname cl@#2\endcsname}}}%
+}{%
+\PackageWarningNoLine{remreset}
+ {The remreset package is obsolete:\MessageBreak
+ \noexpand\@removefomresset is defined}%
+}