[latex3-commits] [git/LaTeX3-latex3-hyperref] master: Revert "removed outdated test from nameref" (f920ae4)
Ulrike Fischer
fischer at troubleshooting-tex.de
Sun Nov 22 01:29:19 CET 2020
Repository : https://github.com/latex3/hyperref
On branch : master
Link : https://github.com/latex3/hyperref/commit/f920ae428e8c63ef74157dd430fce961ebb34035
>---------------------------------------------------------------
commit f920ae428e8c63ef74157dd430fce961ebb34035
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Thu Oct 1 14:36:47 2020 +0200
Revert "removed outdated test from nameref"
This reverts commit 6cc8df652eaabbdcd2e02350a32ccb0a47d4988d.
>---------------------------------------------------------------
f920ae428e8c63ef74157dd430fce961ebb34035
ChangeLog.txt | 1 -
nameref.dtx | 10 ++++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/ChangeLog.txt b/ChangeLog.txt
index a39e934..ee48dfb 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -9,7 +9,6 @@
* removed outdated code to fix the first page boxlevel.
* removed outdated code to fix old ltxcmds code
* removed outdated code to fix fancyvrb
- * removed outdated code to fix caption from nameref
2020-01-14 7.00d David Carlisle
* Test for newer GhostScript releases in dvips output
diff --git a/nameref.dtx b/nameref.dtx
index b2eddd2..f6ea1c8 100644
--- a/nameref.dtx
+++ b/nameref.dtx
@@ -401,6 +401,16 @@
%
% \begin{macrocode}
\AtBeginDocument{%
+ \@ifpackageloaded{hyperref}{%
+ \@ifpackagelater{hyperref}{2009/12/05}\@gobble\@firstofone
+ }\@firstofone
+ {%
+ \let\NR@@caption\@caption
+ \long\def\@caption#1[#2]{%
+ \NR at gettitle{#2}%
+ \NR@@caption{#1}[{#2}]%
+ }%
+ }%
% \end{macrocode}
%
% \begin{macrocode}
More information about the latex3-commits
mailing list.