[latex3-commits] [git/LaTeX3-latex3-latex2e] cmd: Avoid latexrelease error with ^^@ in ltcmd code (7c99f88d)

PhelypeOleinik phelype.oleinik at latex-project.org
Thu Jan 21 13:44:21 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : cmd
Link       : https://github.com/latex3/latex2e/commit/7c99f88d4c21ed0dd5d5ac01199949f7e3d31934

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

commit 7c99f88d4c21ed0dd5d5ac01199949f7e3d31934
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu Jan 21 09:44:21 2021 -0300

    Avoid latexrelease error with ^^@ in ltcmd code


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

7c99f88d4c21ed0dd5d5ac01199949f7e3d31934
 base/ltcmd.dtx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/base/ltcmd.dtx b/base/ltcmd.dtx
index 9a0acba9..81012f45 100644
--- a/base/ltcmd.dtx
+++ b/base/ltcmd.dtx
@@ -73,8 +73,13 @@
 %</2ekernel>
 %    \end{macrocode}
 %
+% \pkg{ltcmd} code contains an |^^@| character, which usually has
+% catcode~15, so \cs{IncludeInRelease} will break when this code is
+% being skipped, so we'll save the catcode of |^^@| to restore later:
 %    \begin{macrocode}
 %<*2ekernel|latexrelease>
+%<latexrelease>\edef\@latexrelease at catcode@null{\the\catcode`\^^@ }
+%<latexrelease>\catcode`\^^@=12
 %<latexrelease>\IncludeInRelease{2021/05/01}%
 %<latexrelease>                 {\NewDocumentCommand}{Document commands}%
 %    \end{macrocode}
@@ -3988,6 +3993,7 @@
 %    \begin{macrocode}
 %</2ekernel|latexrelease>
 %<latexrelease>\EndIncludeInRelease
+%<latexrelease>\catcode`\^^@=\@latexrelease at catcode@null\relax
 %<latexrelease>
 %<latexrelease>\IncludeInRelease{2020/10/01}%
 %<latexrelease>                 {\NewDocumentCommand}{Document commands}%





More information about the latex3-commits mailing list.