summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref/nameref.dtx
diff options
context:
space:
mode:
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}