summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/refstyle/refstyle.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/refstyle/refstyle.cfg')
-rw-r--r--Master/texmf-dist/tex/latex/refstyle/refstyle.cfg18
1 files changed, 8 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/refstyle/refstyle.cfg b/Master/texmf-dist/tex/latex/refstyle/refstyle.cfg
index 11ad74d2bee..031a2aac185 100644
--- a/Master/texmf-dist/tex/latex/refstyle/refstyle.cfg
+++ b/Master/texmf-dist/tex/latex/refstyle/refstyle.cfg
@@ -12,11 +12,11 @@
%% -------------------------------------------------------------------
%% This file may be customized to suit specific user requirements.
%%
-%% Original by Danie Els <dnjels@sun.ac.za>
+%% Original by Danie Els (dnjels@gmail.com)
%% -------------------------------------------------------------------
%%
-\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)]
%%-- ENGLISH ------------------------------------
\newcommand\RSukenglish{%
@@ -511,10 +511,9 @@
lsttxt = \RSlsttxt}
%%-- TEMPLATE FOR EQUATIONS ---------------------
\newcommand*{\RSeqrefform}[1]{\textup{(\ref{#1})}}
-\@ifpackageloaded{amsmath}%
- {\let\AMSeqref\eqref
- \let\eqref\relax}%
- {}
+\AddToHook{package/amsmath/after}%
+ {\NewCommandCopy\AMSeqref\eqref
+ \RS@removedef{eqref}}%
\newref{eq}{%
name = \RSeqtxt,
names = \RSeqstxt,
@@ -528,9 +527,8 @@
\let\eqref\relax
\AtBeginDocument{%
\@ifpackageloaded{amsmath}%
- {\RS@ifundefined{AMSeqref}{\let\AMSeqref\eqref}{}%
- \let\RSeqrefform\AMSeqref}%
- {}%
+ {\DeclareCommandCopy\RSeqrefform\AMSeqref}%
+ {}%
\let\eqref=\RSeqref
}
%%-- TEMPLATE FOR FIGURES -----------------------