diff options
author | Karl Berry <karl@freefriends.org> | 2023-10-31 19:18:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-10-31 19:18:57 +0000 |
commit | e6e135f4114e5097fa4ca4c4cd8915c31a0f1efb (patch) | |
tree | a511efd8e3759879132f44f292f5042ff6a793a7 /Master/texmf-dist/source/latex/hyperref | |
parent | f0ab9acad25437ff4907fee8f4757d96d6420df7 (diff) |
hyperref (31oct23)
git-svn-id: svn://tug.org/texlive/trunk@68710 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref')
4 files changed, 29 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hluatex.dtx b/Master/texmf-dist/source/latex/hyperref/hluatex.dtx index f7289be5de7..ada09a282d8 100644 --- a/Master/texmf-dist/source/latex/hyperref/hluatex.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hluatex.dtx @@ -1,6 +1,6 @@ % \iffalse % Source File: hluatex.dtx -% 2023-10-21 v7.01c +% 2023-10-27 v7.01d % % Copyright % 2016-2019 Oberdiek Package Support Group @@ -31,7 +31,7 @@ % % \begin{macrocode} %<*luatex> -%% 2023-10-21 v7.01c +%% 2023-10-27 v7.01d %% force unicode encoding, see issue #101 %% code mostly copied from hxetex.def \HyPsd@LoadUnicode diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref-linktarget.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref-linktarget.dtx index 409d6e3c620..58ff089276a 100644 --- a/Master/texmf-dist/source/latex/hyperref/hyperref-linktarget.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hyperref-linktarget.dtx @@ -53,7 +53,7 @@ % }^^A % } % -% \date{Version 2023-10-21 v7.01c} +% \date{Version 2023-10-27 v7.01d} % % \maketitle % \begin{documentation} @@ -488,7 +488,7 @@ % \begin{macrocode} \cs_new_protected:Npn \@@_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 \@@_target_raise:n {\hyper@anchorstart{\@currentHref}\hyper@anchorend} @@ -520,7 +520,7 @@ \cs_new_protected:Npn \@@_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 @@ -541,7 +541,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 {@@/target/setname} \@onelevel@sanitize\@currentHref \@@_target_raise:n {\hyper@anchorstart{\@currentHref}\hyper@anchorend} @@ -557,7 +557,7 @@ { \hook_gput_next_code:nn {@@/target/setname} { - \tl_gset:Nx \@currentHref {#1} + \tl_gset:Ne \@currentHref {#1} } } diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref-patches.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref-patches.dtx index 4b380a32241..1e8213d5997 100644 --- a/Master/texmf-dist/source/latex/hyperref/hyperref-patches.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hyperref-patches.dtx @@ -55,7 +55,7 @@ % }^^A % } % -% \date{Version 2023-10-21 v7.01c} +% \date{Version 2023-10-27 v7.01d} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx index 228069a9ee8..0c5340d50b1 100644 --- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx @@ -51,7 +51,7 @@ %<puvnenc>\ProvidesFile{puvnenc.def} %<puarenc>\ProvidesFile{puarenc.def} %<psdextra>\ProvidesFile{psdextra.def} -%<!none&!packageEnd> [2023-10-21 v7.01c % +%<!none&!packageEnd> [2023-10-27 v7.01d % %<package> Hypertext links for LaTeX] %<nohyperref> Dummy hyperref (SR)] %<driver> Hyperref documentation driver file] @@ -10990,6 +10990,26 @@ }% }% } +% \end{macrocode} +% amsthm doesn't issue an item in the theorem, we delay the target into +% \cs{deferred@thm@head} and hope that it always begins a paragraph. +% \begin{macrocode} +\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} |