[latex3-commits] [git/LaTeX3-latex3-latex2e] makelinktarget: add target commands to ltmeta (d7682f0e)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue May 17 14:28:38 CEST 2022


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

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

commit d7682f0e2b2b20f996d423bd97c24b1e806fd29d
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue May 17 14:28:38 2022 +0200

    add target commands to ltmeta


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

d7682f0e2b2b20f996d423bd97c24b1e806fd29d
 base/changes.txt |  4 ++--
 base/ltmeta.dtx  | 32 +++++++++++++++++++++++++++-----
 2 files changed, 29 insertions(+), 7 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 2dbde15f..2033bd1f 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -5,9 +5,9 @@ It is provided for convenience only.  It therefore makes no claims to
 completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
-2022-05-10  Ulrike Fischer <Ulrike.Fischer at latex-project.org>
+2022-05-17  Ulrike Fischer <Ulrike.Fischer at latex-project.org>
 
-	* ltfinal.dtx:
+	* ltmeta.dtx:
 	Added dummy definitions for target commands.
 
 2022-05-08  Marcel Krüger  <Marcel.Krueger at latex-project.org>
diff --git a/base/ltmeta.dtx b/base/ltmeta.dtx
index f8de2860..f92ae975 100644
--- a/base/ltmeta.dtx
+++ b/base/ltmeta.dtx
@@ -14,8 +14,8 @@
 %%% From File: ltmeta.dtx
 %
 %    \begin{macrocode}
-\def\ltmetaversion{v1.0a}
-\def\ltmetadate{2021/12/07}
+\def\ltmetaversion{v1.0b}
+\def\ltmetadate{2022/05/17}
 %    \end{macrocode}
 %<*driver>
 \documentclass{l3doc}
@@ -155,9 +155,31 @@
 }
 %    \end{macrocode}
 %
-%
-%
-%
+%   To allow package and class author to support for document links
+%   we provide also the new interface commands of the hyperref package
+%   for the creation of targets.
+% \changes{v1.0b}{2022/05/17}{Default definition for targets added}
+%  \begin{macro}{\MakeLinkTarget}
+%  \begin{macro}{\LinkTargetOn}
+%  \begin{macro}{\LinkTargetOff}
+%  \begin{macro}{\NextLinkTarget}
+%    \begin{macrocode}
+\NewDocumentCommand\MakeLinkTarget{sO{}m}{%
+  \ifvmode
+    \special{}%
+  \else
+    \@savsf\spacefactor
+    \smash{}%
+    \spacefactor\@savsf
+  \fi}
+\NewDocumentCommand\LinkTargetOn{}{}
+\NewDocumentCommand\LinkTargetOff{}{}
+\NewDocumentCommand\NextLinkTarget{m}{}
+%    \end{macrocode}
+%  \end{macro}
+%  \end{macro}
+%  \end{macro}
+%  \end{macro}
 %
 %    \begin{macrocode}
 %





More information about the latex3-commits mailing list.