diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 66 |
1 files changed, 26 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty index 9ed825dc708..9cd838e8215 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty +++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty @@ -9,10 +9,10 @@ %% hyperref.dtx (with options: `packageEnd') %% %% Copyright -%% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek, -%% 2001-2015 Heiko Oberdiek. +%% 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek +%% 2001-2015 Heiko Oberdiek %% 2016-2019 Oberdiek Package Support Group -%% 2019-2022 LaTeX Project +%% 2019-2023 LaTeX Project %% https://github.com/latex3/hyperref/issues %% %% This file is part of the `Hyperref Bundle'. @@ -36,7 +36,7 @@ %% File: hyperref.dtx \NeedsTeXFormat{LaTeX2e}[2020/10/01] \ProvidesPackage{hyperref} - [2023-05-16 v7.00y % + [2023-06-25 v7.01a % Hypertext links for LaTeX] \begingroup \@makeother\`% @@ -6651,16 +6651,20 @@ } \ExplSyntaxOff \let\Hy@saved@refstepcounter\refstepcounter -\@ifpackageloaded{amsmath}{}{\newif\ifmeasuring@\measuring@false} +\newif\ifmeasuring@\measuring@false +\newcommand\Hy@ifnotmeasuring[1]{#1} +\AddToHook{package/amsmath/after} + { + \renewcommand\Hy@ifnotmeasuring[1] + {\ifmeasuring@ \else #1\fi} + } \def\hyper@refstepcounter#1{% \HyCnt@ProvideTheHCounter{#1}% \hyper@makecurrent{#1}% - \ifmeasuring@ - \else - \Hy@raisedlink{% + \Hy@ifnotmeasuring + {\Hy@raisedlink{% \hyper@anchorstart{\@currentHref}\hyper@anchorend - }% - \fi + }}% } \def\HyCnt@ProvideTheHCounter#1{% \@ifundefined{theH#1}{% @@ -6909,26 +6913,7 @@ \let\H@equation\equation \let\H@endequation\endequation \@ifundefined{hyper@nopatch@mathenv}{% - \@ifpackageloaded{amsmath}{% - \long\def\Hy@temp{% - \incr@eqnum - \mathdisplay@push - \st@rredfalse \global\@eqnswtrue - \mathdisplay{equation}% - }% - \ifx\Hy@temp\equation - \expandafter\ifx\csname if@fleqn\expandafter\endcsname - \csname iftrue\endcsname - \else - \long\def\equation{% - \mathdisplay@push - \st@rredfalse \global\@eqnswtrue - \mathdisplay{equation}% - \incr@eqnum - }% - \fi - \fi - }{% + \@ifpackageloaded{amsmath}{}{% \def\equation{% \let\refstepcounter\H@refstepcounter \H@equation @@ -7012,17 +6997,18 @@ }% \endgroup } -\ifcsname subequations\endcsname - \let\HyOrg@subequations\subequations - \def\subequations{% +\AddToHook{cmd/subequations/before} + {% \stepcounter{equation}% \protected@edef\theHparentequation{\theHequation}% \addtocounter{equation}{-1}% - \HyOrg@subequations - \def\theHequation{\theHparentequation\alph{equation}}% - \ignorespaces - }% -\fi + } + +\AddToHook{cmd/subequations/after} + {% + \def\theHequation{\theHparentequation\alph{equation}}% + \ignorespaces + } \newcommand\Hy@theorem@refstepcounter[1] {% \H@refstepcounter{#1}% @@ -7739,7 +7725,7 @@ }{} \@ifundefined{hyper@nopatch@amsmath@tag} {% - \@ifpackageloaded{amsmath}{% + \AddToHook{package/amsmath/after}{% \def\Hy@make@anchor{% \Hy@MakeCurrentHrefAuto{AMS}% \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% @@ -7777,7 +7763,7 @@ }{} \@ifundefined{hyper@nopatch@counter} { - \@ifpackageloaded{amsmath}{% + \AddToHook{package/amsmath/after}{% \renewcommand*{\numberwithin}[3][\arabic]{% \@ifundefined{c@#2}{\@nocounterr{#2}}{% \@ifundefined{c@#3}{\@nocnterr{#3}}{% |