summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hyperref.dtx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index da702f474b2..914360705a8 100644
--- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
@@ -48,7 +48,7 @@
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
%<psdextra>\ProvidesFile{psdextra.def}
-%<!none> [2016/05/21 v6.83p %
+%<!none> [2016/06/24 v6.83q %
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
@@ -11366,8 +11366,13 @@
% \end{macrocode}
%
% Support for package \texttt{amsthm} (Daniel M\"ullner):
+% also \texttt{cleveref}.
% \begin{macrocode}
\Hy@AtBeginDocument{%
+\@ifpackageloaded{cleveref}{%
+\let\Hy@savedthm\@thm
+\def\@thm{\ifhmode\unskip\fi\Hy@savedthm}%
+}{%
\@ifpackageloaded{amsthm}{%
% \end{macrocode}
% Class amsbook uses a different definition of \cs{@thm},
@@ -11508,6 +11513,7 @@
\let\Hy@savedthm\@thm
\def\@thm{\ifhmode\unskip\fi\Hy@savedthm}%
}%
+}%
}
% \end{macrocode}
%