diff --git a/base/changes.txt b/base/changes.txt index 2dd400f34..5f0a4f501 100644 --- a/base/changes.txt +++ b/base/changes.txt @@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are not part of the distribution. ================================================================================ +2024-10-12 Joseph Wright + * ltmiscen.dtx + Define \begin as an engine-protected macro + 2024-10-07 Joseph Wright * lttemplates.dtx Correct passing of token list content using \KeyValue diff --git a/base/ltmiscen.dtx b/base/ltmiscen.dtx index 423f51624..70c374f70 100644 --- a/base/ltmiscen.dtx +++ b/base/ltmiscen.dtx @@ -32,7 +32,7 @@ %<*driver> % \fi \ProvidesFile{ltmiscen.dtx} - [2024/07/10 v1.2e LaTeX Kernel (Misc. Environments)] + [2024/10/12 v1.2f LaTeX Kernel (Misc. Environments)] % \iffalse \documentclass{ltxdoc} \GetFileInfo{ltmiscen.dtx} @@ -748,12 +748,13 @@ % \changes{v1.1p}{2019/08/27}{Make command robust} % \changes{v1.2d}{2024/06/23}{Separate \cs{begin} and \cs{end} definitions % for individual rollback} +% \changes{v1.2f}{2024/10/12}{Make \cs{begin} engine-protected} % \begin{macrocode} % %<*2ekernel|latexrelease> %\IncludeInRelease{2020/10/01}% % {\begin}{Use hook system}% -\DeclareRobustCommand*\begin[1]{% +\protected\def\begin#1{% \UseHook{env/#1/before}% \@ifundefined{#1}% {\def\reserved@a{\@latex@error{Environment #1 undefined}\@eha}}% diff --git a/base/testfiles-lthooks/lthooks-rollback-args.tlg b/base/testfiles-lthooks/lthooks-rollback-args.tlg index b9638a1e4..cc67014ba 100644 --- a/base/testfiles-lthooks/lthooks-rollback-args.tlg +++ b/base/testfiles-lthooks/lthooks-rollback-args.tlg @@ -526,7 +526,6 @@ Applying: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/github-0354.tlg b/base/testfiles/github-0354.tlg index ff03275c6..25166b9a5 100644 --- a/base/testfiles/github-0354.tlg +++ b/base/testfiles/github-0354.tlg @@ -2,7 +2,7 @@ This is a generated file for the LaTeX2e validation system. Don't change this file in any respect. Runaway argument? {quote) qqq \end {quote} -! Paragraph ended before \begin was complete. +! Paragraph ended before \begin was complete. \par l. ... diff --git a/base/testfiles/github-0479-often.luatex.tlg b/base/testfiles/github-0479-often.luatex.tlg index b23e4bf78..d0ebcb8a8 100644 --- a/base/testfiles/github-0479-often.luatex.tlg +++ b/base/testfiles/github-0479-often.luatex.tlg @@ -536,7 +536,6 @@ Applying: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/github-0479-often.tlg b/base/testfiles/github-0479-often.tlg index 2dfa3988e..a4c275022 100644 --- a/base/testfiles/github-0479-often.tlg +++ b/base/testfiles/github-0479-often.tlg @@ -526,7 +526,6 @@ Applying: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/github-0479-often.xetex.tlg b/base/testfiles/github-0479-often.xetex.tlg index 145c9c9bd..1e599de7c 100644 --- a/base/testfiles/github-0479-often.xetex.tlg +++ b/base/testfiles/github-0479-often.xetex.tlg @@ -526,7 +526,6 @@ Applying: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/github-0548.luatex.tlg b/base/testfiles/github-0548.luatex.tlg index 417badbc2..349bdeb65 100644 --- a/base/testfiles/github-0548.luatex.tlg +++ b/base/testfiles/github-0548.luatex.tlg @@ -1,14 +1,14 @@ This is a generated file for the LaTeX2e validation system. Don't change this file in any respect. > \@tempa=macro: -->\protect \begin {tabular}{c}a\\b\protect \end {tabular}. +->\begin {tabular}{c}a\\b\protect \end {tabular}. l. ......in{tabular}{c}a\\b\end{tabular}}\show\@tempa LaTeX Font Info: External font `cmex10' loaded for size (Font) <7> on input line .... LaTeX Font Info: External font `cmex10' loaded for size (Font) <5> on input line .... > \@tempa=macro: -->\protect \begin {tabular}{c}a\\b\protect \end {tabular}. +->\begin {tabular}{c}a\\b\protect \end {tabular}. l. ......in{tabular}{c}a\\b\end{tabular}}\show\@tempa > \@tempa=macro: ->\protect \shortstack {c}{a\\b}. diff --git a/base/testfiles/github-0548.tlg b/base/testfiles/github-0548.tlg index 16fcfc409..063b3a924 100644 --- a/base/testfiles/github-0548.tlg +++ b/base/testfiles/github-0548.tlg @@ -1,14 +1,14 @@ This is a generated file for the LaTeX2e validation system. Don't change this file in any respect. > \@tempa=macro: -->\protect \begin {tabular}{c}a\\b\protect \end {tabular}. +->\begin {tabular}{c}a\\b\protect \end {tabular}. l. ......{tabular}{c}a\\b\end{tabular}}\show\@tempa LaTeX Font Info: External font `cmex10' loaded for size (Font) <7> on input line .... LaTeX Font Info: External font `cmex10' loaded for size (Font) <5> on input line .... > \@tempa=macro: -->\protect \begin {tabular}{c}a\\b\protect \end {tabular}. +->\begin {tabular}{c}a\\b\protect \end {tabular}. l. ......{tabular}{c}a\\b\end{tabular}}\show\@tempa > \@tempa=macro: ->\protect \shortstack {c}{a\\b}. diff --git a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg index 13255e86b..78e117545 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.luatex.tlg @@ -536,7 +536,6 @@ Applying: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg index 8b680fa82..6a8904df9 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.tlg @@ -526,7 +526,6 @@ Applying: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg index ca8c524e9..07a90e848 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2020-10-01.xetex.tlg @@ -526,7 +526,6 @@ Applying: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg index fa37b3de8..ff867a336 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.luatex.tlg @@ -537,7 +537,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg index 433e6926a..11913a52b 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg index 19cd16bfc..8dcd26dd7 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2021-06-01.xetex.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg index ed2f73dd4..dc29a3993 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.luatex.tlg @@ -537,7 +537,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg index 358fec553..1a8b8cacf 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg index 710c99d87..abdb957d9 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2021-11-15.xetex.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg index 7d420405b..17ace9488 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.luatex.tlg @@ -537,7 +537,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg index 5a3840964..23c4da9fe 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg index 3469291b9..819e7a3a9 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2022-06-01.xetex.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg index 6d886fae6..c90966e41 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.luatex.tlg @@ -537,7 +537,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg index ea6ca2072..4f1adce4f 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg index 1125ef00d..dd350ef20 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2022-11-01.xetex.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg index 180ea36cd..3a6ac451e 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.luatex.tlg @@ -537,7 +537,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg index 7c5d58638..9268980f4 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg index a78b67120..9e40a7078 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2023-06-01.xetex.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.luatex.tlg index a2357fa86..de642b04a 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.luatex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.luatex.tlg @@ -537,7 +537,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.tlg index 19df4c614..85ac003c6 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.xetex.tlg index a0cc5998f..da05d2c5a 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2023-11-01.xetex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2023-11-01.xetex.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.luatex.tlg b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.luatex.tlg index 285f9b601..470b70659 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.luatex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.luatex.tlg @@ -537,7 +537,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.tlg b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.tlg index 07375c0c6..112e5164c 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.xetex.tlg b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.xetex.tlg index 46cdfb165..03e0d071e 100644 --- a/base/testfiles/tlb-latexrelease-rollback-2024-06-01.xetex.tlg +++ b/base/testfiles/tlb-latexrelease-rollback-2024-06-01.xetex.tlg @@ -526,7 +526,6 @@ Already applied: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-rollback-005.luatex.tlg b/base/testfiles/tlb-rollback-005.luatex.tlg index 7ebdec357..fbf74ec25 100644 --- a/base/testfiles/tlb-rollback-005.luatex.tlg +++ b/base/testfiles/tlb-rollback-005.luatex.tlg @@ -540,7 +540,6 @@ Applying: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-rollback-005.tlg b/base/testfiles/tlb-rollback-005.tlg index ef482fe2d..ad4babf08 100644 --- a/base/testfiles/tlb-rollback-005.tlg +++ b/base/testfiles/tlb-rollback-005.tlg @@ -530,7 +530,6 @@ Applying: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/base/testfiles/tlb-rollback-005.xetex.tlg b/base/testfiles/tlb-rollback-005.xetex.tlg index a44856d64..0655f7aa5 100644 --- a/base/testfiles/tlb-rollback-005.xetex.tlg +++ b/base/testfiles/tlb-rollback-005.xetex.tlg @@ -530,7 +530,6 @@ Applying: [....-..-..] kernel before hook on input line .... Applying: [....-..-..] Mask line endings on input line .... Already applied: [....-..-..] Mask line endings on input line .... Applying: [....-..-..] Use hook system on input line .... -LaTeX Info: Redefining \begin on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Already applied: [....-..-..] Making \begin /\end robust on input line .... Applying: [....-..-..] Making \begin /\end robust on input line .... diff --git a/required/latex-lab/changes.txt b/required/latex-lab/changes.txt index d4f007e97..c6a55ee6a 100644 --- a/required/latex-lab/changes.txt +++ b/required/latex-lab/changes.txt @@ -1,3 +1,6 @@ +2024-10-12 Joseph Wright + * latex-lab-math.dtx: Sync with protected-begin status + 2024-10-11 Ulrike Fischer * latex-lab-toc.dtx, latex-lab-sec.dtx, latex-lab-toc-kernel-changes: move target handling (\MakeLinkTarget patches) into the kernel. diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx index 429e22773..e8710b60a 100644 --- a/required/latex-lab/latex-lab-math.dtx +++ b/required/latex-lab/latex-lab-math.dtx @@ -19,8 +19,8 @@ % for those people who are interested or want to report an issue. % % -\def\ltlabmathdate{2024-10-02} -\def\ltlabmathversion{0.6g} +\def\ltlabmathdate{2024-10-12} +\def\ltlabmathversion{0.6h} % %<*driver> \documentclass{l3doc} @@ -1856,17 +1856,13 @@ % \@@_grab_loop_$: , % \@@_grab_loop_\\: , % \@@_grab_loop_\begin: , -% \@@_grab_loop_\begin : , % \@@_grab_loop_\end: , % \@@_grab_loop_\ignorespaces: , % \@@_grab_loop_\unskip: , % \@@_grab_loop_\textonly@unskip: % } % Filter out the special cases: for performance reasons, use a hash table -% approach rather than a loop (\emph{cf.}~\pkg{collcell}). The need to cover -% \verb*|begin | is that at the start of a cell, \TeX{} will expand \cs{begin} -% but the \LaTeX{} robust mechanism will mean this yields \verb*|begin |. -% If\cs{begin} were protected, that would not be needed. +% approach rather than a loop (\emph{cf.}~\pkg{collcell}). % \begin{macrocode} \cs_new_protected:Npn \@@_grab_loop_token:N #1 { @@ -1895,8 +1891,6 @@ \int_incr:N \l_@@_grab_env_int \@@_grab_loop_store:n { \begin } } -\cs_new_eq:cc { @@_grab_loop_ \token_to_str:N \begin \c_space_tl : } - { @@_grab_loop_ \token_to_str:N \begin : } \cs_new_protected:cpn { @@_grab_loop_ \token_to_str:N \end : } { \int_compare:nNnTF \l_@@_grab_env_int = 0