diff options
author | Karl Berry <karl@freefriends.org> | 2024-01-31 20:58:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-01-31 20:58:14 +0000 |
commit | d920a872558b4a7a19e0af8b459cacbe0f8e4017 (patch) | |
tree | 221d3a48e170e8827417334183542cae3954fc3e /Master/texmf-dist/tex/latex/refstyle/refstyle.cfg | |
parent | b1e27408fb0f51f342b31d7dbd3c5a9829428cf3 (diff) |
refstyle (31jan24)
git-svn-id: svn://tug.org/texlive/trunk@69648 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/refstyle/refstyle.cfg')
-rw-r--r-- | Master/texmf-dist/tex/latex/refstyle/refstyle.cfg | 18 |
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 ----------------------- |