summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-31 19:18:57 +0000
committerKarl Berry <karl@freefriends.org>2023-10-31 19:18:57 +0000
commite6e135f4114e5097fa4ca4c4cd8915c31a0f1efb (patch)
treea511efd8e3759879132f44f292f5042ff6a793a7 /Master/texmf-dist/tex/latex/hyperref/hyperref.sty
parentf0ab9acad25437ff4907fee8f4757d96d6420df7 (diff)
hyperref (31oct23)
git-svn-id: svn://tug.org/texlive/trunk@68710 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hyperref.sty26
1 files changed, 21 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index 4a210febb04..bf1429119f1 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-10-21 v7.01c %
+ [2023-10-27 v7.01d %
Hypertext links for LaTeX]
\begingroup
\@makeother\`%
@@ -6512,7 +6512,7 @@
}
\cs_new_protected:Npn \__hyp_target_manual:nn #1 #2 %#1 prefix, #2 name
{
- \tl_gset:Nx \@currentHref {#2}
+ \tl_gset:Ne \@currentHref {#2}
\hook_use:n {__hyp/target/setname}
\@onelevel@sanitize\@currentHref
\__hyp_target_raise:n {\hyper@anchorstart{\@currentHref}\hyper@anchorend}
@@ -6531,7 +6531,7 @@
\cs_new_protected:Npn \__hyp_target_counter_anon:n #1
{
\int_gincr:N\Hy@linkcounter
- \tl_gset:Nx \@currentHref
+ \tl_gset:Ne \@currentHref
{\tl_if_blank:nTF{#1}{page}{#1}*.\int_use:N\Hy@linkcounter}
\hook_use:n {__hyp/target/setname}
\@onelevel@sanitize\@currentHref
@@ -6546,7 +6546,7 @@
don't~exist.~No~target~created.}{}
}
{
- \tl_gset:Nx \@currentHref {\tl_if_blank:nTF{#1}{#2}{#1}.\use:c{theH#2}}
+ \tl_gset:Ne \@currentHref {\tl_if_blank:nTF{#1}{#2}{#1}.\use:c{theH#2}}
\hook_use:n {__hyp/target/setname}
\@onelevel@sanitize\@currentHref
\__hyp_target_raise:n {\hyper@anchorstart{\@currentHref}\hyper@anchorend}
@@ -6556,7 +6556,7 @@
{
\hook_gput_next_code:nn {__hyp/target/setname}
{
- \tl_gset:Nx \@currentHref {#1}
+ \tl_gset:Ne \@currentHref {#1}
}
}
@@ -7026,6 +7026,22 @@
}%
}%
}
+\AddToHook{package/amsthm/after}
+ {
+ \renewcommand\Hy@theorem@refstepcounter[1]
+ {%
+ \H@refstepcounter{#1}%
+ \hyper@makecurrent{#1}%
+ \global\let\Hy@dth@currentHref\@currentHref
+ \AddToHookNext{cmd/deferred@thm@head/before}
+ {\AddToHookNext{para/begin}
+ {\let\Hy@tempa\@currentHref
+ \MakeLinkTarget*{\Hy@dth@currentHref}%
+ \global\let\@currentHref\Hy@tempa
+ }%
+ }%
+ }
+ }
\@ifundefined{hyper@nopatch@thm}{%
\AtBeginDocument{%
\@ifpackageloaded{cleveref}