[latex3-commits] [git/LaTeX3-latex3-latex2e] earlier-expl3: Revert "Load ltexpl at the end of ltdefns for now" (eb2576e4)

PhelypeOleinik tex.phelype at gmail.com
Fri Jun 12 15:15:39 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : earlier-expl3
Link       : https://github.com/latex3/latex2e/commit/eb2576e42a3177f6f5f3562ec7bb97ea1efed3a7

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

commit eb2576e42a3177f6f5f3562ec7bb97ea1efed3a7
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Fri Jun 12 10:15:39 2020 -0300

    Revert "Load ltexpl at the end of ltdefns for now"
    
    This reverts commit 5c52503b3f5a35694366287bd27197c37e760c61.


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

eb2576e42a3177f6f5f3562ec7bb97ea1efed3a7
 base/ltdefns.dtx | 20 ++++++++++----------
 base/ltexpl.dtx  | 11 +++++++++++
 2 files changed, 21 insertions(+), 10 deletions(-)

diff --git a/base/ltdefns.dtx b/base/ltdefns.dtx
index b8bc07c6..3abd251e 100644
--- a/base/ltdefns.dtx
+++ b/base/ltdefns.dtx
@@ -101,6 +101,16 @@
 %<*2ekernel>
 %    \end{macrocode}
 %
+% \subsection{Loading further extensions}
+%
+% \changes{v1.5i}{2020-06-04}{Load \textsf{ltexpl} in \texttt{ltdefns}}
+% Simply load further code: it's deliberately separate.
+% This is done as soon as possible here in \texttt{ltdefns.dtx} so that
+% we have the extensions as soon as possible.
+%    \begin{macrocode}
+\input ltexpl.ltx
+%    \end{macrocode}
+%
 % \subsection{Initex initialisations}
 %
 % \task{???}{This section needs extension}
@@ -1716,16 +1726,6 @@
 %<*2ekernel>
 %    \end{macrocode}
 %
-% \subsection{Loading further extensions}
-%
-% \changes{v1.5i}{2020-06-04}{Load \textsf{ltexpl} in \texttt{ltdefns}}
-% Simply load further code: it's deliberately separate.
-% This is done as soon as possible here in \texttt{ltdefns.dtx} so that
-% we have the extensions available almost everywhere.
-%    \begin{macrocode}
-\input ltexpl.ltx
-%    \end{macrocode}
-%
 %    \begin{macrocode}
 %</2ekernel>
 %    \end{macrocode}
diff --git a/base/ltexpl.dtx b/base/ltexpl.dtx
index 3f00f6fe..87c2c8da 100644
--- a/base/ltexpl.dtx
+++ b/base/ltexpl.dtx
@@ -91,6 +91,17 @@
     \closein\@inputcheck
     \expandafter\@firstoftwo
   \fi}
+\long\def\@ifnextchar#1#2#3{%
+  \let\reserved at d=#1%
+  \def\reserved at a{#2}%
+  \def\reserved at b{#3}%
+  \futurelet\@let at token\@ifnch}
+\def\@ifnch{%
+  \ifx\@let at token\reserved at d
+    \expandafter\reserved at a
+  \else
+    \expandafter\reserved at b
+  \fi}
 %</2ekernel>
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.