diff options
Diffstat (limited to 'macros/latex/contrib/refstyle/refconfig.dtx')
-rw-r--r-- | macros/latex/contrib/refstyle/refconfig.dtx | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/macros/latex/contrib/refstyle/refconfig.dtx b/macros/latex/contrib/refstyle/refconfig.dtx index 22a675b8ac..69a04bb407 100644 --- a/macros/latex/contrib/refstyle/refconfig.dtx +++ b/macros/latex/contrib/refstyle/refconfig.dtx @@ -91,7 +91,7 @@ %</driver> % \fi % -% \CheckSum{1092} +% \CheckSum{1089} % % \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 @@ -115,6 +115,7 @@ % \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}} +% \changes{v0.6b}{2024/02/01}{Bug fix} % % \DoNotIndex{ % \",\@chapapp,\@ifpackageloaded,\AtBeginDocument, @@ -184,8 +185,8 @@ % \subsection{Identification} % \begin{RSframed} % \begin{macrocode} -\ProvidesFile{refstyle.cfg}[2024/01/31\space - v0.6\space +\ProvidesFile{refstyle.cfg}[2024/02/01\space + v0.6b\space Configuration file for refstyle (DNJ Els)] % \end{macrocode} % \end{RSframed} @@ -995,9 +996,10 @@ % If \pkg{amsmath.sty} is loaded, store \cmd{\eqref} % and then undefine it before the template is created. % \begin{macrocode} -\AddToHook{package/amsmath/after}% - {\NewCommandCopy\AMSeqref\eqref - \RS@removedef{eqref}}% +\AddToHook{package/amsmath/after}{% + \NewCommandCopy\AMSeqref\eqref + \DeclareCommandCopy\RSeqrefform\AMSeqref + \RS@removedef{eqref}} % \end{macrocode} % \begin{macrocode} \newref{eq}{% @@ -1012,19 +1014,15 @@ % \end{macrocode} % Make way for \pkg{amsmath.sty} definitions % \begin{macrocode} -\let\RSeqref\eqref -\let\eqref\relax +\NewCommandCopy\RSeqref\eqref +\RS@removedef{eqref} % \end{macrocode} % Some footwork to bring the AMS definition of % \cmd{\eqref} back if \pkg{amsmath.sty} is loaded % afterwards. % \begin{macrocode} \AtBeginDocument{% - \@ifpackageloaded{amsmath}% - {\DeclareCommandCopy\RSeqrefform\AMSeqref}% - {}% - \let\eqref=\RSeqref - } + \DeclareCommandCopy\eqref\RSeqref} % \end{macrocode} % \end{RSframed} % |