[latex3-commits] [git/LaTeX3-latex3-latex2e] robustcrs: \\ variants now protected except for longtable (also outstanding ltnews entry and perhaps tests in tools/amsmath) (20f9b36f)

Frank Mittelbach frank.mittelbach at latex-project.org
Tue Apr 20 15:44:45 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : robustcrs
Link       : https://github.com/latex3/latex2e/commit/20f9b36f68ef47af4a1cf00b3eadfcf2cbcd90d3

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

commit 20f9b36f68ef47af4a1cf00b3eadfcf2cbcd90d3
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Apr 20 15:44:45 2021 +0200

    \\ variants now protected except for longtable (also outstanding ltnews entry and perhaps tests in tools/amsmath)


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

20f9b36f68ef47af4a1cf00b3eadfcf2cbcd90d3
 base/changes.txt               | 15 +++++++++++++++
 base/ltmath.dtx                |  3 ++-
 base/ltpictur.dtx              |  3 ++-
 base/lttab.dtx                 |  4 +++-
 base/testfiles/github-0548.lvt | 20 ++++++++++++++++++++
 base/testfiles/github-0548.tlg | 19 +++++++++++++++++++
 required/amsmath/amsmath.dtx   |  3 ++-
 required/amsmath/changes.txt   |  7 ++++++-
 required/tools/array.dtx       |  3 ++-
 required/tools/changes.txt     |  6 ++++++
 10 files changed, 77 insertions(+), 6 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 807b81bb..9ff43a8c 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,21 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2021-04-20  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* lttab.dtx (subsection{array and tabular environments}):
+	Use \protected for \\ variant (gh/548)}
+
+2021-04-20  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltmath.dtx (subsection{Math Environments}):
+	Use \protected for \\ variant (gh/548)}
+
+2021-04-20  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltpictur.dtx (section{Picture Mode}):
+	Use \protected for \\ variant (gh/548)}
+
 2021-04-16  Phelype Oleinik  <phelype.oleinik at latex-project.org>
 
 	* latexrelease.dtx, ltcmd.dtx, lthooks.dtx, ltpara.dtx, lttextcomp.dtx, ltvers.dtx:
diff --git a/base/ltmath.dtx b/base/ltmath.dtx
index a18b895e..35f4d80b 100644
--- a/base/ltmath.dtx
+++ b/base/ltmath.dtx
@@ -38,7 +38,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltmath.dtx}
-              [2020/12/05 v1.2h LaTeX Kernel (Math Setup)]
+              [2021/04/20 v1.2i LaTeX Kernel (Math Setup)]
 % \iffalse
 %</driver>
 %
@@ -961,6 +961,7 @@
 % \end{macro}
 %
 % \begin{macro}{\@eqncr}
+% \changes{v1.2i}{2021/04/20}{Use \cs{protected} for \cs{\bslash} variant (gh/548)}
 % \begin{macro}{\@xeqncr}
 % \begin{macro}{\@yeqncr}
 % \changes{v1.0y}{1995/10/16}{(DPC) Use \cs{@testopt} /1911}
diff --git a/base/ltpictur.dtx b/base/ltpictur.dtx
index e54e14ce..ae8b5899 100644
--- a/base/ltpictur.dtx
+++ b/base/ltpictur.dtx
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
       \ProvidesFile{ltpictur.dtx}
-                      [2020/12/05 v1.2a LaTeX Kernel (Picture Mode)]
+                      [2021/04/20 v1.2b LaTeX Kernel (Picture Mode)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltpictur.dtx}
@@ -454,6 +454,7 @@
 % \end{macro}
 %
 % \begin{macro}{\@stackcr}
+% \changes{v1.2b}{2021/04/20}{Use \cs{protected} for \cs{\bslash} variant (gh/548)}
 % \begin{macro}{\@ixstackcr}
 %    \begin{macrocode}
 \protected\def\@stackcr{\@ifstar\@ixstackcr\@ixstackcr}
diff --git a/base/lttab.dtx b/base/lttab.dtx
index 52cf28fd..48627f40 100644
--- a/base/lttab.dtx
+++ b/base/lttab.dtx
@@ -31,7 +31,7 @@
 %%% From File: lttab.dtx
 %<*driver>
 % \fi
-\ProvidesFile{lttab.dtx}[2020/04/24 v1.1r LaTeX Kernel (Columns)]
+\ProvidesFile{lttab.dtx}[2021/04/20 v1.1s LaTeX Kernel (Columns)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{lttab.dtx}
@@ -964,6 +964,7 @@
 %
 %  \begin{macro}{\@arraycr}
 % Array version of |\\|.
+% \changes{v1.1s}{2021/04/20}{Use \cs{protected} for \cs{\bslash} variant (gh/548)}
 %    \begin{macrocode}
 \protected\def\@arraycr{%
   ${\ifnum0=`}\fi\@ifstar\@xarraycr\@xarraycr}
@@ -994,6 +995,7 @@
 % \end{macro}
 %
 %  \begin{macro}{\@tabularcr}
+% \changes{v1.1s}{2021/04/20}{Use \cs{protected} for \cs{\bslash} variant (gh/548)}
 %    \begin{macrocode}
 \protected\def\@tabularcr{%
   {\ifnum0=`}\fi\@ifstar\@xtabularcr\@xtabularcr}
diff --git a/base/testfiles/github-0548.lvt b/base/testfiles/github-0548.lvt
new file mode 100644
index 00000000..45960f20
--- /dev/null
+++ b/base/testfiles/github-0548.lvt
@@ -0,0 +1,20 @@
+\documentclass{article}
+
+
+\input{test2e}
+
+\begin{document}
+
+\START
+
+\makeatletter
+\protected at edef\@tempa{\begin{tabular}{c}a\\b\end{tabular}}\show\@tempa
+\begin{tabular}{c}
+\protected at edef\@tempa{\begin{tabular}{c}a\\b\end{tabular}}\show\@tempa
+\end{tabular} 
+
+\protected at edef\@tempa{\shortstack{c}{a\\b}}\show\@tempa
+
+\shortstack{c}{\protected at edef\@tempa{\shortstack{c}{a\\b}}\show\@tempa}
+
+\END
diff --git a/base/testfiles/github-0548.tlg b/base/testfiles/github-0548.tlg
new file mode 100644
index 00000000..16fcfc40
--- /dev/null
+++ b/base/testfiles/github-0548.tlg
@@ -0,0 +1,19 @@
+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}.
+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}.
+l. ......{tabular}{c}a\\b\end{tabular}}\show\@tempa
+> \@tempa=macro:
+->\protect \shortstack  {c}{a\\b}.
+l. ......f\@tempa{\shortstack{c}{a\\b}}\show\@tempa
+> \@tempa=macro:
+->\protect \shortstack  {c}{a\\b}.
+l. ......f\@tempa{\shortstack{c}{a\\b}}\show\@tempa
+                                                  }
diff --git a/required/amsmath/amsmath.dtx b/required/amsmath/amsmath.dtx
index 4918ab4e..88578611 100644
--- a/required/amsmath/amsmath.dtx
+++ b/required/amsmath/amsmath.dtx
@@ -86,7 +86,7 @@ Bug reports can be opened (category \texttt{#1}) at\\%
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\ProvidesPackage{amsmath}[2020/09/23 v2.17i AMS math features]
+\ProvidesPackage{amsmath}[2021/04/20 v2.17j AMS math features]
 %    \end{macrocode}
 %
 % \section{Catcode defenses}
@@ -2752,6 +2752,7 @@ ill-advised in LaTeX.%
 %    \textit{u} template of the current column if the author ended the
 %    current row with an empty column (i.e., the mathcr was immediately
 %    preceded by an ampersand).
+%    \changes{v2.17j}{2021/04/20}{Use \cs{protected} for \cs{\bslash} variant (gh/548)}
 %    \begin{macrocode}
 \protected\def\math at cr{\relax\iffalse{\fi\ifnum0=`}\fi
 %    \end{macrocode}
diff --git a/required/amsmath/changes.txt b/required/amsmath/changes.txt
index eb87a6e6..f7845e70 100644
--- a/required/amsmath/changes.txt
+++ b/required/amsmath/changes.txt
@@ -2,13 +2,18 @@
 All changes above are only part of the development branch for the next release.
 ================================================================================
 
+2021-04-20  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* amsmath.dtx (subsection{Preliminary macros}):
+	Use \protected for \\ variant (gh/548)
+
 #########################
 # 2020-10-01 Release
 #########################
 
 2020/09/23 Ulrike Fischer <Ulrike.Fischer at latex-project.org>
 	* amsmath.dtx (subsection{Fractions}):
-	added \cs{Ustack} to \cs{frac} and \cs{genfrac} for luatex
+	added \Ustack to \frac and \genfrac for luatex
 	(moved patch from lualatex-math)
 	* amsmath.dtx (section{Array-related environments})
 	changed subarray for luatex: moved to version from lualatex-math
diff --git a/required/tools/array.dtx b/required/tools/array.dtx
index ee9c3416..84376a48 100644
--- a/required/tools/array.dtx
+++ b/required/tools/array.dtx
@@ -33,7 +33,7 @@
 %<+package>\DeclareCurrentRelease{}{2020-10-01}
 %<+package>
 %<+package>\ProvidesPackage{array}
-%<+package>         [2021/02/10 v2.5d Tabular extension package (FMi)]
+%<+package>         [2021/04/20 v2.5e Tabular extension package (FMi)]
 %
 % \fi
 %
@@ -2193,6 +2193,7 @@
 %    For further information see
 %    \cite[Appendix D]{bk:knuth}.
 % \changes{v2.3c}{1995/04/23}{Avoid adding an ord atom in math}
+% \changes{v2.5e}{2021/04/20}{Use \cs{protected} for \cs{\bslash} variant (gh/548)}
 %    \begin{macrocode}
 \protected\def\@arraycr{\relax\iffalse{\fi\ifnum 0=`}\fi
 %    \end{macrocode}
diff --git a/required/tools/changes.txt b/required/tools/changes.txt
index f4eaeb46..8e7b9893 100644
--- a/required/tools/changes.txt
+++ b/required/tools/changes.txt
@@ -1,3 +1,4 @@
+
 =======================================================================
 This file lists changes to the LaTeX2e files in reverse chronological order.
 It is provided for convenience only.  It therefore makes no claims to
@@ -5,6 +6,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 =======================================================================
 
+2021-04-20  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* array.dtx (section{The line separator \\}):
+	Use \protected for \\ variant (gh/548)}
+
 2021-03-10  Johannes Braams  <Johannes.Braams at latex-project.org>
 
 	* layout.dtx: (subsection{Options}):





More information about the latex3-commits mailing list.