[latex3-commits] [git/LaTeX3-latex3-latex2e] gh373: Copy \cs_to_str:N and \str_if_eq:nnTF from expl3 (d59e1148)
PhelypeOleinik
tex.phelype at gmail.com
Thu Aug 20 04:44:53 CEST 2020
Repository : https://github.com/latex3/latex2e
On branch : gh373
Link : https://github.com/latex3/latex2e/commit/d59e1148cfb7c3ce78d65f8b339c72434394f86b
>---------------------------------------------------------------
commit d59e1148cfb7c3ce78d65f8b339c72434394f86b
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date: Wed Aug 19 23:44:53 2020 -0300
Copy \cs_to_str:N and \str_if_eq:nnTF from expl3
>---------------------------------------------------------------
d59e1148cfb7c3ce78d65f8b339c72434394f86b
base/ltdefns.dtx | 27 ---------------------------
base/ltexpl.dtx | 12 +++++++++++-
2 files changed, 11 insertions(+), 28 deletions(-)
diff --git a/base/ltdefns.dtx b/base/ltdefns.dtx
index e2ddba74..ab89d8e9 100644
--- a/base/ltdefns.dtx
+++ b/base/ltdefns.dtx
@@ -1708,33 +1708,6 @@
%<*2ekernel>
% \end{macrocode}
%
-% Steal the definition of \textsf{expl3}'s \cs{cs\string_to\string_str:N} for
-% a while. This should disappear as soon as this macro is defined in
-% \texttt{ltexpl.dtx} as a copy of \cs{cs\string_to\string_str:N}.
-% \begin{macrocode}
-\def\@expl at cs@to at str@@N{%
- \romannumeral\if\string\ \@@expl at cs@to at str@@w\fi
- \expandafter\@@expl at cs@to at str@@N\string}
-\def\@@expl at cs@to at str@@N#1{\z@}
-\def\@@expl at cs@to at str@@w#1\@@expl at cs@to at str@@N{-\number\fi\expandafter\z@}
-% \end{macrocode}
-%
-% Define a poorman's (not expandable) \cs{str\string_if\string_eq:nnTF} for a
-% while. This should disappear as soon as this macro is defined in
-% \texttt{ltexpl.dtx} as a copy of \cs{str\string_if\string_eq:nnTF}.
-% \begin{macrocode}
-\def\@expl at str@if at eq@@nnTF#1#2{%
- \begingroup
- \edef\x{\detokenize{#1}}%
- \edef\y{\detokenize{#2}}%
- \expandafter\endgroup
- \ifx\x\y
- \expandafter\@firstoftwo
- \else
- \expandafter\@secondoftwo
- \fi}
-% \end{macrocode}
-%
% \begin{macro}{\kernel at make@fragile}
% The opposite of |\MakeRobust| execpt that it doesn't do many
% checks as it is internal to the kernel. Why does one want such a
diff --git a/base/ltexpl.dtx b/base/ltexpl.dtx
index edb94f7f..b78ede6a 100644
--- a/base/ltexpl.dtx
+++ b/base/ltexpl.dtx
@@ -33,7 +33,7 @@
%<*driver>
% \fi
\ProvidesFile{ltexpl.dtx}
- [2020-07-08 v1.2d LaTeX Kernel (expl3-dependent code)]
+ [2020-08-19 v1.2e LaTeX Kernel (expl3-dependent code)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltexpl.dtx}
@@ -254,11 +254,21 @@
\cs_gset_eq:NN \@expl at tl@trim at spaces@apply@@nN \tl_trim_spaces_apply:nN
% \end{macrocode}
%
+% \changes{v1.2e}{2020/08/19}
+% {Add \cs{@expl at cs@to at str@@N} and \cs{@expl at str@if at eq@@nnTF}
+% for \cs{NewCommandCopy} (gh/239)}
+% \begin{macrocode}
+\cs_gset_eq:NN \@expl at cs@to at str@@N \cs_to_str:N
+\cs_gset_eq:NN \@expl at str@if at eq@@nnTF \str_if_eq:nnTF
+% \end{macrocode}
+%
% \begin{macrocode}
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{0000/00/00}{expl3~2020-10-01}%
%<latexrelease> {expl3~macros~added~for~the~2020-10-01~release}%
%<latexrelease>\cs_undefine:N \@expl at tl@trim at spaces@apply@@nN
+%<latexrelease>\cs_undefine:N \@expl at cs@to at str@@N
+%<latexrelease>\cs_undefine:N \@expl at str@if at eq@@nnTF
%<latexrelease>\EndIncludeInRelease
%</2ekernel|latexrelease>
% \end{macrocode}
More information about the latex3-commits
mailing list.