summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hyperref.sty13
1 files changed, 9 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index de4746a2f90..55099959f13 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
@@ -36,7 +36,7 @@
%% File: hyperref.dtx
\NeedsTeXFormat{LaTeX2e}[2020/10/01]
\ProvidesPackage{hyperref}
- [2023-04-20 v7.00w %
+ [2023-04-22 v7.00x %
Hypertext links for LaTeX]
\begingroup
\@makeother\`%
@@ -7049,10 +7049,15 @@
\global\let\@currentHref\Hy@tempa
}%
}
+\@ifundefined{hyper@nopatch@thm}{%
\AtBeginDocument{%
-\ifpatchable\@thm{\refstepcounter}
- {\patchcmd\@thm{\refstepcounter}{\Hy@theorem@refstepcounter}{}{}}
- {}}
+ \@ifpackageloaded{cleveref}
+ {\AddToHook{cmd/@thm/before}{\ifhmode\unskip\fi}}
+ {%
+ \ifpatchable\@thm{\refstepcounter}
+ {\patchcmd\@thm{\refstepcounter}{\Hy@theorem@refstepcounter}{}{}}
+ {}%
+ }}}{}
\@ifundefined{hyper@nopatch@footnote}{%
\ifHy@hyperfootnotes
\newcounter{Hfootnote}%