[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: fix for err entries ending up outside of the page (if \\ i used inside an entry) (7c9e60b1)

Frank Mittelbach frank.mittelbach at latex-project.org
Tue Aug 3 12:10:21 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/7c9e60b1d8ee5278999919d554827d9bd0c23f08

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

commit 7c9e60b1d8ee5278999919d554827d9bd0c23f08
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Aug 3 12:10:21 2021 +0200

    fix for err entries ending up outside of the page (if \\ i used inside an entry)


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

7c9e60b1d8ee5278999919d554827d9bd0c23f08
 base/doc/lb2.err     | 21 ++++++++++++---------
 base/doc/lgc2.err    | 21 ++++++++++++---------
 base/doc/tlc2.err    | 23 +++++++++++++----------
 base/doc/webcomp.err | 21 ++++++++++++---------
 4 files changed, 49 insertions(+), 37 deletions(-)

diff --git a/base/doc/lb2.err b/base/doc/lb2.err
index 767cc86a..53148e28 100644
--- a/base/doc/lb2.err
+++ b/base/doc/lb2.err
@@ -36,9 +36,10 @@
 %
 % v1.0a - changed name from errata.cls to ttcterrata.cls
 % v1.0b - added \arraybackslash
+% v1.0c - and took it out again and used \tabularnewline instead
 
 \ProvidesClass{ttcterrata}
-  [2021/04/22 v1.0b Mini class for errata files; subject to change (FMi)]
+  [2021/08/03 v1.0c Mini class for errata files; subject to change (FMi)]
 
 \LoadClass{article}
 
@@ -63,7 +64,9 @@
   \setbox\@tempboxa\vbox\bgroup
      \let\endgobble\egroup
      \let\hideamp\relax
-     \let\\\relax\let\par\@@par}
+     \let\\\relax
+     \let\tabularnewline\relax
+     \let\par\@@par}
 
 \newcommand*\hideamp{&}
 
@@ -140,7 +143,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
@@ -154,18 +157,18 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \fbox{\bfseries !!}\hfill
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
 
 \newcommand\CHAPTER[1]{\endgobble
-  &\\[4pt]%
-  \multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \\}
+  &\tabularnewline[4pt]%
+  \multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \tabularnewline}
 
 \newenvironment{erratalist}
-  {\begin{longtable}{r>{\raggedright\arraybackslash}p{2cm}l>{\raggedright\arraybackslash}p{10cm}l}}
+  {\begin{longtable}{r>{\raggedright}p{2cm}l>{\raggedright}p{10cm}l}}
   {\endgobble\end{longtable}}
 
 \newcommand\erratatitle[2]
@@ -213,7 +216,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
@@ -228,7 +231,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \fbox{\bfseries !!}\hfill
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
diff --git a/base/doc/lgc2.err b/base/doc/lgc2.err
index cbee8d6f..96fd378f 100644
--- a/base/doc/lgc2.err
+++ b/base/doc/lgc2.err
@@ -34,9 +34,10 @@
 %
 % v1.0a - changed name from errata.cls to ttcterrata.cls
 % v1.0b - added \arraybackslash
+% v1.0c - and took it out again and used \tabularnewline instead
 
 \ProvidesClass{ttcterrata}
-  [2021/04/22 v1.0b Mini class for errata files; subject to change (FMi)]
+  [2021/08/03 v1.0c Mini class for errata files; subject to change (FMi)]
 
 \LoadClass{article}
 
@@ -61,7 +62,9 @@
   \setbox\@tempboxa\vbox\bgroup
      \let\endgobble\egroup
      \let\hideamp\relax
-     \let\\\relax\let\par\@@par}
+     \let\\\relax
+     \let\tabularnewline\relax
+     \let\par\@@par}
 
 \newcommand*\hideamp{&}
 
@@ -138,7 +141,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
@@ -152,18 +155,18 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \fbox{\bfseries !!}\hfill
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
 
 \newcommand\CHAPTER[1]{\endgobble
-  &\\[4pt]%
-  \multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \\}
+  &\tabularnewline[4pt]%
+  \multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \tabularnewline}
 
 \newenvironment{erratalist}
-  {\begin{longtable}{r>{\raggedright\arraybackslash}p{2cm}l>{\raggedright\arraybackslash}p{10cm}l}}
+  {\begin{longtable}{r>{\raggedright}p{2cm}l>{\raggedright}p{10cm}l}}
   {\endgobble\end{longtable}}
 
 \newcommand\erratatitle[2]
@@ -211,7 +214,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
@@ -226,7 +229,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \fbox{\bfseries !!}\hfill
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
diff --git a/base/doc/tlc2.err b/base/doc/tlc2.err
index a361d167..46ba9ed8 100644
--- a/base/doc/tlc2.err
+++ b/base/doc/tlc2.err
@@ -19,7 +19,7 @@
 
 \begin{filecontents}{ttcterrata.cls}
 %%
-%% Copyright (C) 1997,2004,2005,2007, 2014 Frank Mittelbach
+%% Copyright (C) 1997-2021 Frank Mittelbach
 %% This class file is licenced under LPPL latest version;
 %% see https://www.latex-project.org/lppl
 %
@@ -36,9 +36,10 @@
 %
 % v1.0a - changed name from errata.cls to ttcterrata.cls
 % v1.0b - added \arraybackslash
+% v1.0c - and took it out again and used \tabularnewline instead
 
 \ProvidesClass{ttcterrata}
-  [2021/04/22 v1.0b Mini class for errata files; subject to change (FMi)]
+  [2021/08/03 v1.0c Mini class for errata files; subject to change (FMi)]
 
 \LoadClass{article}
 
@@ -63,7 +64,9 @@
   \setbox\@tempboxa\vbox\bgroup
      \let\endgobble\egroup
      \let\hideamp\relax
-     \let\\\relax\let\par\@@par}
+     \let\\\relax
+     \let\tabularnewline\relax
+     \let\par\@@par}
 
 \newcommand*\hideamp{&}
 
@@ -140,7 +143,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
@@ -154,18 +157,18 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \fbox{\bfseries !!}\hfill
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
 
 \newcommand\CHAPTER[1]{\endgobble
-  &\\[4pt]%
-  \multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \\}
+  &\tabularnewline[4pt]%
+  \multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \tabularnewline}
 
 \newenvironment{erratalist}
-  {\begin{longtable}{r>{\raggedright\arraybackslash}p{2cm}l>{\raggedright\arraybackslash}p{10cm}l}}
+  {\begin{longtable}{r>{\raggedright}p{2cm}l>{\raggedright}p{10cm}l}}
   {\endgobble\end{longtable}}
 
 \newcommand\erratatitle[2]
@@ -213,7 +216,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
@@ -228,7 +231,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \fbox{\bfseries !!}\hfill
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
diff --git a/base/doc/webcomp.err b/base/doc/webcomp.err
index 6a62e258..1b3b7a24 100644
--- a/base/doc/webcomp.err
+++ b/base/doc/webcomp.err
@@ -29,9 +29,10 @@
 %
 % v1.0a - changed name from errata.cls to ttcterrata.cls
 % v1.0b - added \arraybackslash
+% v1.0c - and took it out again and used \tabularnewline instead
 
 \ProvidesClass{ttcterrata}
-  [2021/04/22 v1.0b Mini class for errata files; subject to change (FMi)]
+  [2021/08/03 v1.0c Mini class for errata files; subject to change (FMi)]
 
 \LoadClass{article}
 
@@ -56,7 +57,9 @@
   \setbox\@tempboxa\vbox\bgroup
      \let\endgobble\egroup
      \let\hideamp\relax
-     \let\\\relax\let\par\@@par}
+     \let\\\relax
+     \let\tabularnewline\relax
+     \let\par\@@par}
 
 \newcommand*\hideamp{&}
 
@@ -133,7 +136,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
@@ -147,18 +150,18 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \fbox{\bfseries !!}\hfill
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
 
 \newcommand\CHAPTER[1]{\endgobble
-  &\\[4pt]%
-  \multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \\}
+  &\tabularnewline[4pt]%
+  \multicolumn{4}{l}{\framebox[10cm][l]{\textbf{\normalsize\strut#1}}} \tabularnewline}
 
 \newenvironment{erratalist}
-  {\begin{longtable}{r>{\raggedright\arraybackslash}p{2cm}l>{\raggedright\arraybackslash}p{10cm}l}}
+  {\begin{longtable}{r>{\raggedright}p{2cm}l>{\raggedright}p{10cm}l}}
   {\endgobble\end{longtable}}
 
 \newcommand\erratatitle[2]
@@ -206,7 +209,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp
 }
@@ -221,7 +224,7 @@
      \typeout{Ignoring entry #1 #2 #3 #4}%
      \expandafter\gobbleerrata
    \fi
-   \hideamp \\%
+   \hideamp \tabularnewline
    \fbox{\bfseries !!}\hfill
    \displayrevisionfix{#1}{#5}
    \hideamp #2 \hideamp (\textsf{#3}) \hideamp





More information about the latex3-commits mailing list.