summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/refstyle/refconfig.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/refstyle/refconfig.dtx')
-rw-r--r--Master/texmf-dist/source/latex/refstyle/refconfig.dtx33
1 files changed, 15 insertions, 18 deletions
diff --git a/Master/texmf-dist/source/latex/refstyle/refconfig.dtx b/Master/texmf-dist/source/latex/refstyle/refconfig.dtx
index 1d646e4a921..22a675b8ac2 100644
--- a/Master/texmf-dist/source/latex/refstyle/refconfig.dtx
+++ b/Master/texmf-dist/source/latex/refstyle/refconfig.dtx
@@ -1,7 +1,7 @@
% \iffalse
%
% refconfig.dtx
-% Copyright (C) 2002--2010 Danie Els
+% Copyright (C) 2002--2024 Danie Els
%
% -------------------------------------------------------------------
% The refstyle package
@@ -13,10 +13,11 @@
% of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
+% version 2008/12/01 or later.
%
-% This work is "maintained" (as per LPPL maintenance status)
-% by Danie Els (dnjels@sun.ac.za).
+% This work has the LPPL maintenance status 'maintained'.
+%
+% This Current Maintainer of this work is Danie Els (dnjels@gmail.com)
%
% This package consists of the files: refstyle.dtx
% refconfig.dtx
@@ -25,7 +26,6 @@
% refstyle.cfg
% -------------------------------------------------------------------
%
-%
%<*driver>
\documentclass[a4paper]{ltxdoc}
\EnableCrossrefs
@@ -91,7 +91,7 @@
%</driver>
% \fi
%
-% \CheckSum{1098}
+% \CheckSum{1092}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -114,6 +114,7 @@
% \changes{v0.3}{2006/09/07}{Documentation update}
% \changes{v0.4}{2010/10/21}{Add \cmd{\RSlsttwotxt} for lists}
% \changes{v0.5}{2010/11/02}{Bug fixes}
+% \changes{v0.6}{2024/01/31}{robustification of AMS' \cmd{\eqref}}
%
% \DoNotIndex{
% \",\@chapapp,\@ifpackageloaded,\AtBeginDocument,
@@ -131,9 +132,7 @@
% \fileversion, last revised
% \filedate.}}
% \author{Danie Els\\[1ex]
-% \small Department of Mechanical and Mechatroncs Engineering\\
-% \small University of Stellenbosch, South Africa.\\
-% \normalsize e-mail: \texttt{dnjels@sun.ac.za}}
+% \normalsize e-mail: \texttt{dnjels@gmail}}
% \date{\filedate}
% \maketitle
%
@@ -185,8 +184,8 @@
% \subsection{Identification}
% \begin{RSframed}
% \begin{macrocode}
-\ProvidesFile{refstyle.cfg}[2010/11/02\space
- 0.5\space
+\ProvidesFile{refstyle.cfg}[2024/01/31\space
+ v0.6\space
Configuration file for refstyle (DNJ Els)]
% \end{macrocode}
% \end{RSframed}
@@ -996,10 +995,9 @@
% If \pkg{amsmath.sty} is loaded, store \cmd{\eqref}
% and then undefine it before the template is created.
% \begin{macrocode}
-\@ifpackageloaded{amsmath}%
- {\let\AMSeqref\eqref
- \let\eqref\relax}%
- {}
+\AddToHook{package/amsmath/after}%
+ {\NewCommandCopy\AMSeqref\eqref
+ \RS@removedef{eqref}}%
% \end{macrocode}
% \begin{macrocode}
\newref{eq}{%
@@ -1023,9 +1021,8 @@
% \begin{macrocode}
\AtBeginDocument{%
\@ifpackageloaded{amsmath}%
- {\RS@ifundefined{AMSeqref}{\let\AMSeqref\eqref}{}%
- \let\RSeqrefform\AMSeqref}%
- {}%
+ {\DeclareCommandCopy\RSeqrefform\AMSeqref}%
+ {}%
\let\eqref=\RSeqref
}
% \end{macrocode}