[latex3-commits] [latex3/hyperref] noltxcmds: remove ltxcmds in nameref.dtx (5a29191)

github at latex-project.org github at latex-project.org
Tue Nov 14 18:53:15 CET 2023


Repository : https://github.com/latex3/hyperref
On branch  : noltxcmds
Link       : https://github.com/latex3/hyperref/commit/5a29191ea08dbd24741cb1dd2ba09ed51f78931c

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

commit 5a29191ea08dbd24741cb1dd2ba09ed51f78931c
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Nov 14 18:53:15 2023 +0100

    remove ltxcmds in nameref.dtx


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

5a29191ea08dbd24741cb1dd2ba09ed51f78931c
 ChangeLog.txt |  4 ++++
 nameref.dtx   | 33 +++++++++++++++++++--------------
 2 files changed, 23 insertions(+), 14 deletions(-)

diff --git a/ChangeLog.txt b/ChangeLog.txt
index f3c5c5b..e6ba74a 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,3 +1,7 @@
+2023-11-14 Ulrike Fischer
+	* remove ltxcmds dependency in hluatex.dtx
+	* remove ltxcmds dependency in nameref.dtx (v2.55)
+
 2023-11-11 David Carlisle
         * remove ltxcmds dependency
 	
diff --git a/nameref.dtx b/nameref.dtx
index d282f8d..9956848 100644
--- a/nameref.dtx
+++ b/nameref.dtx
@@ -33,7 +33,7 @@
 %<driver>\ProvidesFile{nameref.drv}
 % \fi
 % \ProvidesFile{nameref.dtx}
-  [2023-10-05 v2.54 Cross-referencing by name of section]%
+  [2023-11-14 v2.55 Cross-referencing by name of section]%
 %
 %
 % \iffalse
@@ -217,9 +217,14 @@
 %    \begin{macrocode}
 \RequirePackage{refcount}[2006/02/12]
 \RequirePackage{gettitlestring}[2009/12/18]
-\RequirePackage{ltxcmds}[2009/12/12]
 %    \end{macrocode}
-%
+
+%    \begin{macrocode}
+\ExplSyntaxOn
+\let\NR at GlobalAppendToMacro\tl_gput_right:Nn
+\ExplSyntaxOff
+
+%    \end{macrocode}
 % In formats older than 2023-06-01 
 % we redefine |\label| so that it also writes the name of the
 % current section to the .aux file; if the name ends in a dot,
@@ -228,7 +233,7 @@
 % used for cross-ref name, and file).
 %    \begin{macro}{\NR at strip@period}
 %    \begin{macrocode}
-\def\NR at strip@period#1.\ltx at empty#2\@nil{#1}
+\def\NR at strip@period#1.\@empty#2\@nil{#1}
 %    \end{macrocode}
 %    \end{macro}
 %
@@ -246,7 +251,7 @@
   \@onelevel at sanitize\@currentlabelname
   \edef\@currentlabelname{%
     \expandafter\NR at strip@period\@currentlabelname
-    \ltx at empty.\ltx at empty\@nil
+    \@empty.\@empty\@nil
   }%
 }
 %    \end{macrocode}
@@ -281,7 +286,7 @@
 % and also in hyperref.    
 %    \begin{macrocode}
 \providecommand*{\label at hook}{}
-\ltx at GlobalAppendToMacro{\label at hook}{%
+\NR at GlobalAppendToMacro{\label at hook}{%
     \NR at sanitize@labelname
     }
 \@ifl at t@r\fmtversion{2023-06-01}
@@ -461,9 +466,9 @@
 %
 %    \begin{macrocode}
 \@ifundefined{NR at nopatch@sectioning}
- {\ltx at IfUndefined{ifheadnameref}{%
+ {\@ifundefined{ifheadnameref}{%
   }{%
-    \ltx at IfUndefined{M at sect}{%
+    \@ifundefined{M at sect}{%
     }{%
       \let\NRorg at M@sect\M at sect
       \def\M at sect#1#2#3#4#5#6[#7][#8]{%
@@ -501,17 +506,17 @@
     \NR at chapter[{#1}]{#2}%
   }
   \@ifclassloaded{memoir}{%
-    \ltx at IfUndefined{ifheadnameref}{%
+    \@ifundefined{ifheadnameref}{%
     }{%
       \def\@chapter[#1]#2{%
-        \ltx at IfUndefined{ch at pt@c}{%
+        \@ifundefined{ch at pt@c}{%
           \NR at gettitle{#1}%
         }{%
-          \ifx\ch at pt@c\ltx at empty
+          \ifx\ch at pt@c\@empty
             \NR at gettitle{#2}%
           \else
             \def\NR at temp{#1}%
-            \ifx\NR at temp\ltx at empty
+            \ifx\NR at temp\@empty
               \expandafter\NR at gettitle\expandafter{\ch at pt@c}%
             \else
               \ifheadnameref
@@ -567,7 +572,7 @@
 %
 % Environment `description'.
 %    \begin{macrocode}
-  \ltx at IfUndefined{descriptionlabel}{%
+  \@ifundefined{descriptionlabel}{%
   }{%
     \@ifundefined{NR at nopatch@lists}
      {\let\NRorg at descriptionlabel\descriptionlabel
@@ -649,7 +654,7 @@
 %
 %    \begin{macrocode}
 \@ifundefined{NR at nopatch@theorem}{%
- \ltx at IfUndefined{@opargbegintheorem}{}{%
+ \@ifundefined{@opargbegintheorem}{}{%
    \let\NRorg at opargbegintheorem\@opargbegintheorem
    \def\@opargbegintheorem#1#2#3{%
      \NR at gettitle{#3}%





More information about the latex3-commits mailing list.