[latex3-commits] [git/LaTeX3-latex3-latex2e] makelinktarget: make no-op MakeLinkTarget behave like hyperref version (9c02d812)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat May 14 20:24:38 CEST 2022


Repository : https://github.com/latex3/latex2e
On branch  : makelinktarget
Link       : https://github.com/latex3/latex2e/commit/9c02d8127357b09db84c4b95b25ee0da2ae461a1

>---------------------------------------------------------------

commit 9c02d8127357b09db84c4b95b25ee0da2ae461a1
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat May 14 20:24:38 2022 +0200

    make no-op MakeLinkTarget behave like hyperref version


>---------------------------------------------------------------

9c02d8127357b09db84c4b95b25ee0da2ae461a1
 base/ltfinal.dtx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index ac483340..d4f10d79 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -1335,7 +1335,14 @@
 %  \begin{macro}{\NextLinkTarget}
 % \changes{v2.2u}{2022/05/10}{Default definition for targets added}
 %    \begin{macrocode}
-\NewDocumentCommand\MakeLinkTarget{sO{}m}{}
+\NewDocumentCommand\MakeLinkTarget{sO{}m}{%
+  \ifvmode
+    \special{}%
+  \else
+    \@savsf\spacefactor
+    \smash{}%
+    \spacefactor\@savsf
+  \fi}
 \NewDocumentCommand\LinkTargetOn{}{}
 \NewDocumentCommand\LinkTargetOff{}{}
 \NewDocumentCommand\NextLinkTarget{m}{}





More information about the latex3-commits mailing list.