[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: remove test for amsmath before 1999 (049ba43)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun May 1 16:54:56 CEST 2022


Repository : https://github.com/latex3/hyperref
On branch  : cleanup-patches
Link       : https://github.com/latex3/hyperref/commit/049ba4326a95d64a402792afc60cf8bb77caeb0f

>---------------------------------------------------------------

commit 049ba4326a95d64a402792afc60cf8bb77caeb0f
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun May 1 16:54:56 2022 +0200

    remove test for amsmath before 1999


>---------------------------------------------------------------

049ba4326a95d64a402792afc60cf8bb77caeb0f
 ChangeLog.txt |  1 +
 hyperref.dtx  | 30 +++++++++++-------------------
 2 files changed, 12 insertions(+), 19 deletions(-)

diff --git a/ChangeLog.txt b/ChangeLog.txt
index 13548a7..d094ccf 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,5 +1,6 @@
 XXXX-XX-XX Ulrike Fischer/David Carlisle
 
+    * remove a test for amsmath before 1999
     * removed an since 2002 unneeded definition for subfigure
     * various patches in nameref can now be disabled by package authors
       by defining a command.
diff --git a/hyperref.dtx b/hyperref.dtx
index 2ef037a..8294e59 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -12172,28 +12172,20 @@
 %</check>
 %<*package>
 \@ifpackageloaded{amsmath}{%
-  \@ifpackagelater{amsmath}{1999/12/14}{%
-    \renewcommand*{\numberwithin}[3][\arabic]{%
-      \@ifundefined{c@#2}{\@nocounterr{#2}}{%
-        \@ifundefined{c@#3}{\@nocnterr{#3}}{%
-          \HyOrg at addtoreset{#2}{#3}%
-          \@xp\xdef\csname the#2\endcsname{%
-            \@xp\@nx\csname the#3\endcsname .\@nx#1{#2}%
-          }%
-          \@xp\xdef\csname theH#2\endcsname{%
-            \@xp\@nx
-            \csname the\@ifundefined{theH#3}{}H#3\endcsname
-            .\@nx#1{#2}%
-          }%
+  \renewcommand*{\numberwithin}[3][\arabic]{%
+    \@ifundefined{c@#2}{\@nocounterr{#2}}{%
+      \@ifundefined{c@#3}{\@nocnterr{#3}}{%
+        \HyOrg at addtoreset{#2}{#3}%
+        \@xp\xdef\csname the#2\endcsname{%
+          \@xp\@nx\csname the#3\endcsname .\@nx#1{#2}%
+        }%
+        \@xp\xdef\csname theH#2\endcsname{%
+          \@xp\@nx
+          \csname the\@ifundefined{theH#3}{}H#3\endcsname
+          .\@nx#1{#2}%
         }%
       }%
     }%
-  }{%
-    \Hy at WarningNoLine{%
-      \string\numberwithin\space of package `amsmath' %
-      only fixed\MessageBreak
-      for version 2000/06/06 v2.12 or newer%
-    }%
   }%
 }{}
 %    \end{macrocode}





More information about the latex3-commits mailing list.