[latex3-commits] [git/LaTeX3-latex3-hyperref] ltxcmds: write out etexcmds package (fa94c7c)

David Carlisle d.p.carlisle at gmail.com
Tue Dec 10 22:40:00 CET 2019


Repository : https://github.com/latex3/hyperref
On branch  : ltxcmds
Link       : https://github.com/latex3/hyperref/commit/fa94c7caef302a66fce6c73c91fe4ad4270b789c

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

commit fa94c7caef302a66fce6c73c91fe4ad4270b789c
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Tue Dec 10 21:40:00 2019 +0000

    write out etexcmds package


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

fa94c7caef302a66fce6c73c91fe4ad4270b789c
 hyperref.dtx | 39 +++------------------------------------
 1 file changed, 3 insertions(+), 36 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index b525d56..be5249f 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -3577,13 +3577,7 @@
 % \subsubsection{Protecting spaces}
 %
 %    \begin{macrocode}
-\RequirePackage{etexcmds}[2007/09/09]
-\ifetex at unexpanded
-  \expandafter\@secondoftwo
-\else
-  \expandafter\@firstoftwo
-\fi
-{%
+% \RequirePackage{etexcmds}[2007/09/09]
 %    \end{macrocode}
 %
 %    \begin{macro}{\HyPsd at ProtectSpaces}
@@ -3593,46 +3587,18 @@
 %    the expanded string. Because of this there can be no group
 %    at the beginning or end of the string and grouping characters
 %    are not removed by the call of \cs{HyPsd@@ProtectSpacesFi}.
-%    \begin{macrocode}
-  \def\HyPsd at ProtectSpaces#1{%
-    \iftrue
-      \expandafter\HyPsd@@ProtectSpacesFi
-        \expandafter|\expandafter\@empty#1| \HyPsd at End#1%
-    \fi
-  }%
-%    \end{macrocode}
 %    \end{macro}
 %    \begin{macro}{\HyPsd@@ProtectSpacesFi}
 %    The string can contain command tokens, so it is better
 %    to use an \cs{def} instead of an \cs{edef}.
-%    \begin{macrocode}
-  \def\HyPsd@@ProtectSpacesFi#1 #2\HyPsd at End#3\fi{%
-    \fi
-    \ifx\scrollmode#2\scrollmode
-      \HyPsd at RemoveMask#1\HyPsd at End#3%
-    \else
-      \gdef#3{#1\HyPsd at UnexpandableSpace#2}%
-      \expandafter\HyPsd@@ProtectSpacesFi#3\HyPsd at End#3%
-    \fi
-  }%
-%    \end{macrocode}
-%    \end{macro}
 %
 % \paragraph{Remove mask.}
 %    \begin{macro}{\HyPsd at RemoveMask}
 %    \cs{HyPsd at RemoveMask} removes the protecting \verb+|+.
 %    It is used by \cs{HyPsd@@ProtectSpacesFi} and by the code in
 %    \cs{pdfstringdef} that removes the grouping chararcters.
-%    \begin{macrocode}
-  \def\HyPsd at RemoveMask|#1|\HyPsd at End#2{%
-    \toks@\expandafter{#1}%
-    \xdef#2{\the\toks@}%
-  }%
-%    \end{macrocode}
-%    \end{macro}
 %
 %    \begin{macrocode}
-}{%
   \let\HyPsd at fi\fi
   \def\HyPsd at ProtectSpaces#1{%
     \xdef#1{%
@@ -3654,8 +3620,9 @@
   \def\HyPsd at RemoveMask|#1|\HyPsd at End#2{%
     \xdef#2{\etex at unexpanded\expandafter{#1}}%
   }%
-}
 %    \end{macrocode}
+%    \end{macro}
+%    \end{macro}
 %
 % \subsubsection{Remove grouping braces}
 %    \begin{macro}{\HyPsd at RemoveBraces}





More information about the latex3-commits mailing list