Skip to content

Commit

Permalink
remove test for theHequation as it is always defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Feb 7, 2023
1 parent 5d6ab40 commit 1686ecb
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions hyperref.dtx
Expand Up @@ -10423,13 +10423,6 @@
% \begin{macro}{\hyper@refstepcounter}
% \begin{macrocode}
\def\hyper@refstepcounter#1{%
\edef\This@name{#1}%
\ifx\This@name\name@of@eq
\@ifundefined{theHequation}{%
\make@stripped@name{\theequation}%
\let\theHequation\newname
}{}%
\fi
\HyCnt@ProvideTheHCounter{#1}%
\hyper@makecurrent{#1}%
\ifmeasuring@
Expand Down Expand Up @@ -10836,10 +10829,6 @@
\def\equation{%
\let\refstepcounter\H@refstepcounter
\H@equation
\@ifundefined{theHequation}{%
\make@stripped@name{\theequation}%
\let\theHequation\newname
}{}%
\hyper@makecurrent{equation}%
% \end{macrocode}
% \cs{mathopen} is needed in case the equation starts with
Expand Down Expand Up @@ -10880,10 +10869,6 @@
\else
\ifx\\\@currentHref\\%
\else
\@ifundefined{theHequation}{%
\make@stripped@name{\theequation}%
\let\theHequation\newname
}{}%
\hyper@makecurrent{equation}%
\mathopen{%
\Hy@raisedlink{%
Expand Down Expand Up @@ -10917,10 +10902,6 @@
\def\subeqnarray{%
\let\Hy@reserved@a\relax
\H@subeqnarray
\@ifundefined{theHequation}{%
\make@stripped@name{\theequation}%
\let\theHequation\newname
}{}%
\hyper@makecurrent{equation}%
\hyper@anchorstart{\@currentHref}{}\hyper@anchorend
}%
Expand Down Expand Up @@ -10961,9 +10942,7 @@
\let\HyOrg@subequations\subequations
\def\subequations{%
\stepcounter{equation}%
\protected@edef\theHparentequation{%
\@ifundefined{theHequation}\theequation\theHequation
}%
\protected@edef\theHparentequation{\theHequation}%
\addtocounter{equation}{-1}%
\HyOrg@subequations
\def\theHequation{\theHparentequation\alph{equation}}%
Expand Down

0 comments on commit 1686ecb

Please sign in to comment.