[latex3-commits] [git/LaTeX3-latex3-latex2e] gh479: If rolling forward, expl3 might not be available at this point (14bfc552)
PhelypeOleinik
phelype.oleinik at latex-project.org
Sun Mar 21 19:53:15 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : gh479
Link : https://github.com/latex3/latex2e/commit/14bfc5522fe37b4f916317cb68e30e2789009866
>---------------------------------------------------------------
commit 14bfc5522fe37b4f916317cb68e30e2789009866
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Sun Mar 21 15:53:15 2021 -0300
If rolling forward, expl3 might not be available at this point
>---------------------------------------------------------------
14bfc5522fe37b4f916317cb68e30e2789009866
base/latexrelease.dtx | 10 ++++++++--
base/ltcmd.dtx | 1 +
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/base/latexrelease.dtx b/base/latexrelease.dtx
index a9baea20..8479b5ce 100644
--- a/base/latexrelease.dtx
+++ b/base/latexrelease.dtx
@@ -597,7 +597,12 @@ of this package available from CTAN}
% \changes{v1.0m}{2021/03/18}
% {Make \texttt{\string_new} definitions harmless}
% \begin{macrocode}
-\ExplSyntaxOn
+\begingroup
+ \catcode95=11 % _
+ \catcode58=11 % :
+ \catcode32=09 % <space>
+ \endlinechar=-1
+ \xdef\latexrelease at postexpl{\unexpanded{%
%<@@=latexrelease>
% \end{macrocode}
%
@@ -677,7 +682,8 @@ of this package available from CTAN}
% \end{macrocode}
%
% \begin{macrocode}
-\ExplSyntaxOff
+ }}%
+\endgroup
%</latexrelease>
% \end{macrocode}
%
diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index 2a53dfe9..f71aa7dd 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -4022,6 +4022,7 @@
%<latexrelease> {\NewDocumentCommand}{Document~commands}%
%<latexrelease>
%<latexrelease>\EndModuleRelease
+%<latexrelease>\cs_if_exist_use:N \latexrelease at postexpl
\ExplSyntaxOff
%<latexrelease>\catcode`\^^@=\@latexrelease at catcode@null\relax
%</2ekernel|latexrelease>
More information about the latex3-commits
mailing list.