Skip to content

Commit

Permalink
remove test for amsmath before 1999
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed May 1, 2022
1 parent 482ee97 commit 049ba43
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
1 change: 1 addition & 0 deletions 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.
Expand Down
30 changes: 11 additions & 19 deletions hyperref.dtx
Expand Up @@ -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@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@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@WarningNoLine{%
\string\numberwithin\space of package `amsmath' %
only fixed\MessageBreak
for version 2000/06/06 v2.12 or newer%
}%
}%
}{}
% \end{macrocode}
Expand Down

0 comments on commit 049ba43

Please sign in to comment.