summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref/nameref.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-10-24 17:50:28 +0000
committerKarl Berry <karl@freefriends.org>2023-10-24 17:50:28 +0000
commitf95af114c0c92289f1fe0aecf486bc412dcd5be3 (patch)
tree100ccd14bf4bec3afd3519d8a0814bece40c4348 /Master/texmf-dist/source/latex/hyperref/nameref.dtx
parent532215f5e62a867bb0f8b5d57e562330a1f5e24a (diff)
hyperref (23oct23)
git-svn-id: svn://tug.org/texlive/trunk@68630 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/nameref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/nameref.dtx21
1 files changed, 12 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/nameref.dtx b/Master/texmf-dist/source/latex/hyperref/nameref.dtx
index c11127a1213..d282f8dfd57 100644
--- a/Master/texmf-dist/source/latex/hyperref/nameref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/nameref.dtx
@@ -33,7 +33,7 @@
%<driver>\ProvidesFile{nameref.drv}
% \fi
% \ProvidesFile{nameref.dtx}
- [2023-08-07 v2.53 Cross-referencing by name of section]%
+ [2023-10-05 v2.54 Cross-referencing by name of section]%
%
%
% \iffalse
@@ -648,13 +648,16 @@
% \subsubsection{Theorems}
%
% \begin{macrocode}
-\ltx@IfUndefined{@opargbegintheorem}{}{%
- \let\NRorg@opargbegintheorem\@opargbegintheorem
- \def\@opargbegintheorem#1#2#3{%
- \NR@gettitle{#3}%
- \NRorg@opargbegintheorem{#1}{#2}{#3}%
- }%
-}
+\@ifundefined{NR@nopatch@theorem}{%
+ \ltx@IfUndefined{@opargbegintheorem}{}{%
+ \let\NRorg@opargbegintheorem\@opargbegintheorem
+ \def\@opargbegintheorem#1#2#3{%
+ \NR@gettitle{#3}%
+ \NRorg@opargbegintheorem{#1}{#2}{#3}%
+ }%
+ }
+}{}
+\@ifundefined{NR@nopatch@amsthm}{%
\AtBeginDocument{%
\@ifpackageloaded{amsthm}{%
\let\NRorg@begintheorem\@begintheorem
@@ -672,7 +675,7 @@
}%
\fi
}{}%
-}
+}}{}
% \end{macrocode}
%
% \subsection{Referencing stuff}