[latex3-commits] [latex3/pdfresources] remove-ltxcmds: remove ltxcmds commands (a8bdc74)

github at latex-project.org github at latex-project.org
Sun Nov 12 23:32:43 CET 2023


Repository : https://github.com/latex3/pdfresources
On branch  : remove-ltxcmds
Link       : https://github.com/latex3/pdfresources/commit/a8bdc749748e1e985695c6e090f7f5e7c0540abc

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

commit a8bdc749748e1e985695c6e090f7f5e7c0540abc
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun Nov 12 23:32:43 2023 +0100

    remove ltxcmds commands


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

a8bdc749748e1e985695c6e090f7f5e7c0540abc
 hyperref-generic.dtx | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/hyperref-generic.dtx b/hyperref-generic.dtx
index b8c969b..981ac66 100644
--- a/hyperref-generic.dtx
+++ b/hyperref-generic.dtx
@@ -961,6 +961,10 @@
 
 \RequirePackage{etoolbox} %why?
 %    \end{macrocode}
+% Temporary command definition, can be remove when hyperref is update too.
+%    \begin{macrocode}
+\long\def\Hy at ReturnAfterFi#1\fi{\fi#1}
+%    \end{macrocode}
 %    \begin{macrocode}
 \ExplSyntaxOn
 \file_input:n {hyperref-colorschemes.def}
@@ -4191,11 +4195,8 @@
 \prop_new:N   \g_@@_AcroForm_CoFields_prop
 \prop_new:N   \g_@@_AcroForm_Fields_prop
 
-\let\HyField at afields\ltx at empty
-\let\HyField at cofields\ltx at empty
-%% UF test for old pdftex removed
-%\let\HyField at AuxAddToFields\ltx at gobble
-%\let\HyField at AuxAddToCoFields\ltx at gobbletwo
+\let\HyField at afields\@empty
+\let\HyField at cofields\@empty
 \def\HyField at AfterAuxOpen{\Hy at AtBeginDocument}%
 
 % the value doesn't matter, but with a prop we avoid duplicates and it is
@@ -4231,7 +4232,7 @@
       {
         \pdfannot_box_ref_last:
       }
-    \ifx\Fld at calculate@code\ltx at empty
+    \ifx\Fld at calculate@code\@empty
     \else
       \begingroup
         \Hy at safe@activestrue
@@ -4318,16 +4319,16 @@
        }
   }
 \ExplSyntaxOff
-\let\@endForm\ltx at empty
-\let\HyAnn at AbsPageLabel\ltx at empty
-\let\Fld at pageobjref\ltx at empty
+\let\@endForm\@empty
+\let\HyAnn at AbsPageLabel\@empty
+\let\Fld at pageobjref\@empty
 
 \ExplSyntaxOn
 \newcount\HyAnn at Count
-\HyAnn at Count=\ltx at zero
+\HyAnn at Count=\z@
 \def\HyAnn at AbsPageLabel
   {
-    \global\advance\HyAnn at Count by\ltx at one
+    \global\advance\HyAnn at Count by\@ne
     %\zref at labelbyprops{HyAnn@\the\HyAnn at Count}{abspage}%
     %\zref at labelbylist {HyAnn@\the\HyAnn at Count} {l3pdf}
     %\zref at refused{HyAnn@\the\HyAnn at Count}%
@@ -4351,7 +4352,7 @@
 %% check if options are missing.
 \def\@TextField[#1]#2{% parameters, label
   \def\Fld at name{#2}%
-  \let\Fld at default\ltx at empty
+  \let\Fld at default\@empty
   \let\Fld at value\@empty
   \def\Fld at width{\DefaultWidthofText}%
   \def\Fld at height{%
@@ -4807,7 +4808,7 @@
     \else
       \expandafter
       \Hy at pstringdef\csname Hy at esc@\string#2\endcsname{#2}% probably string-hex
-      \ltx at ReturnAfterFi{%
+      \Hy at ReturnAfterFi{%
         \Hy@@escapeform#3\@nil
       }%
     \fi
@@ -5277,7 +5278,7 @@
   \endgroup
   \H at old@schapter{#1}%
 }
-\ltx at IfUndefined{@chapter}{}{%
+\@ifundefined{@chapter}{}{%
   \let\Hy at org@chapter\@chapter
   \def\@chapter{%
     \def\Hy at next{%
@@ -5287,7 +5288,7 @@
       }%
     }%
     \ifnum\c at secnumdepth>\m at ne
-      \ltx at IfUndefined{if at mainmatter}%
+      \@ifundefined{if at mainmatter}%
       \iftrue{\csname if at mainmatter\endcsname}%
         \let\Hy at next\relax
       \fi





More information about the latex3-commits mailing list.