[latex3-commits] [git/LaTeX3-latex3-latex2e] gh005: fix for #5 (documentation not yet done) (bc76c0b8)

Frank Mittelbach frank.mittelbach at latex-project.org
Tue Mar 10 19:00:51 CET 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh005
Link       : https://github.com/latex3/latex2e/commit/bc76c0b8f5750e6efaa6a14d25781802640e2623

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

commit bc76c0b8f5750e6efaa6a14d25781802640e2623
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Mar 10 19:00:51 2020 +0100

    fix for #5 (documentation not yet done)


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

bc76c0b8f5750e6efaa6a14d25781802640e2623
 required/amsmath/amsmath.dtx                       |  38 +-
 .../testfiles/github-amsmath-0005.luatex.tlg       | 450 +++++++++++++++++++++
 required/amsmath/testfiles/github-amsmath-0005.lvt |  51 +++
 required/amsmath/testfiles/github-amsmath-0005.tlg | 425 +++++++++++++++++++
 4 files changed, 961 insertions(+), 3 deletions(-)

diff --git a/required/amsmath/amsmath.dtx b/required/amsmath/amsmath.dtx
index fdd83a90..a5b94dae 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/02/20 v2.17f AMS math features]
+\ProvidesPackage{amsmath}[2020/03/10 v2.17g AMS math features]
 %    \end{macrocode}
 %
 % \section{Catcode defenses}
@@ -3656,6 +3656,26 @@ and fix things up.}
 %    \end{macrocode}
 %  \end{macro}
 %
+%
+
+%  \begin{macro}{}
+%    
+% \changes{v2.17g}{2020/03/10}{Explicity test for b/t/c and return
+%    optional argument is different (gh/5)}
+%    \begin{macrocode}
+\def\ams at start@box#1{%
+  \edef\reserved at a{\csname ams at pos@\detokenize{#1}\endcsname}%
+  \expandafter\ifx\reserved at a\relax
+     \def\ams at return@opt at arg{[#1]}\vcenter
+  \else
+     \let\ams at return@opt at arg\@empty\reserved at a \fi
+}
+\def\ams at pos@t{\vtop}
+\def\ams at pos@b{\vbox}
+\def\ams at pos@c{\vcenter}
+%    \end{macrocode}
+%  \end{macro}
+%
 %    \begin{macro}{\start at aligned}
 %    The \env{aligned} and \env{alignedat} environments are identical
 %    except that the latter takes a mandatory argument to specify the
@@ -3680,7 +3700,7 @@ and fix things up.}
 %    to the margin.
 %    \begin{macrocode}
     \alignedspace at left
-    \if #1t\vtop \else \if#1b \vbox \else \vcenter \fi \fi \bgroup
+      \ams at start@box{#1}\bgroup
         \maxfields@#2\relax
         \ifnum\maxfields@>\m at ne
             \multiply\maxfields@\tw@
@@ -3723,6 +3743,12 @@ and fix things up.}
             \hfil
             \tabskip\alignsep@
             \crcr
+%    \end{macrocode}
+%    
+% \changes{v2.17g}{2020/03/10}{Explicity test for b/t/c and return
+%    optional argument is different (gh/5)}
+%    \begin{macrocode}
+          \ams at return@opt at arg        
 }
 %    \end{macrocode}
 %    \end{macro}
@@ -3807,12 +3833,18 @@ and fix things up.}
         \nonmatherr@{\begin{gathered}}%
     \fi
     \alignedspace at left
-    \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi\fi \bgroup
+    \ams at start@box{#1}\bgroup
         \Let@ \chardef\dspbrk at context\@ne \restore at math@cr
         \spread at equation
         \ialign\bgroup
             \hfil\strut@$\m at th\displaystyle##$\hfil
             \crcr
+%    \end{macrocode}
+%    
+% \changes{v2.17g}{2020/03/10}{Explicity test for b/t/c and return
+%    optional argument is different (gh/5)}
+%    \begin{macrocode}
+    \ams at return@opt at arg        
 }{%
   \endaligned
 }
diff --git a/required/amsmath/testfiles/github-amsmath-0005.luatex.tlg b/required/amsmath/testfiles/github-amsmath-0005.luatex.tlg
new file mode 100644
index 00000000..2e34afe7
--- /dev/null
+++ b/required/amsmath/testfiles/github-amsmath-0005.luatex.tlg
@@ -0,0 +1,450 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+! LaTeX Error: \begin{aligned} on input line ... ended by \end{gathered}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\end{gathered}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: \begin{aligned} on input line ... ended by \end{gathered}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\end{gathered}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0, direction TLT
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0, direction TLT
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil, direction TLT
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0, direction TLT
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 338.1861fil, direction TLT
+...\write-{}
+...\glue(\topskip) 10.0
+...\hbox(0.0+0.0)x345.0, glue set 330.0fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 10000
+...\glue(\abovedisplayshortskip) 0.0 plus 3.0
+...\glue(\lineskip) 1.0
+...\hbox(23.39996+18.60004)x24.63889, shifted 160.18056, direction TLT
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\vbox(8.39996+18.60004)x9.06943, direction TLT
+.....\hbox(8.39996+3.60004)x9.06943, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x9.06943, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 X
+.......\kern0.7847 (italic)
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x9.06943, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x9.06943, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 X
+.......\kern0.7847 (italic)
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\vbox(16.0+11.0)x8.02779, direction TLT
+.....\hbox(8.39996+3.60004)x8.02779, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x8.02779, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 Y
+.......\kern2.22223 (italic)
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x8.02779, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x8.02779, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 Y
+.......\kern2.22223 (italic)
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\vbox(23.39996+3.60004)x7.54167, direction TLT
+.....\hbox(8.39996+3.60004)x7.54167, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x7.54167, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 Z
+.......\kern0.71527 (italic)
+.......\mathoff
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x7.54167, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x7.54167, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 Z
+.......\kern0.71527 (italic)
+.......\mathoff
+......\glue(\tabskip) 0.0
+...\penalty 0
+...\glue(\belowdisplayshortskip) 6.0 plus 3.0 minus 3.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\lineskip) 1.0
+...\hbox(0.0+0.0)x345.0, glue set 330.0fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 10000
+...\glue(\abovedisplayshortskip) 0.0 plus 3.0
+...\glue(\lineskip) 1.0
+...\hbox(16.0+11.0)x39.09485, shifted 152.95258, direction TLT
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\vbox(16.0+11.0)x39.09485, direction TLT
+.....\hbox(8.39996+3.60004)x39.09485, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x39.09485, glue set 0.08739fil, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OT1/cmr/m/n/10 [
+.......\OML/cmm/m/it/10 p
+.......\OT1/cmr/m/n/10 ]
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 =
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 1
+.......\OT1/cmr/m/n/10 0
+.......\OT1/cmr/m/n/10 0
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x39.09485, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x39.09485, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OT1/cmr/m/n/10 [
+.......\OML/cmm/m/it/10 v
+.......\kern0.35878 (italic)
+.......\OT1/cmr/m/n/10 ]
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 =
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 2
+.......\OT1/cmr/m/n/10 0
+.......\OT1/cmr/m/n/10 0
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+...\penalty 0
+...\glue(\belowdisplayshortskip) 6.0 plus 3.0 minus 3.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\lineskip) 1.0
+...\hbox(6.94444+1.94444)x345.0, glue set 274.30542fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\OT1/cmr/m/n/10 E
+....\OT1/cmr/m/n/10 q
+....\OT1/cmr/m/n/10 u
+....\OT1/cmr/m/n/10 a
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 y
+....\glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 b
+....\OT1/cmr/m/n/10 a
+....\OT1/cmr/m/n/10 d
+....\OT1/cmr/m/n/10 :
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 10000
+...\glue(\abovedisplayshortskip) 0.0 plus 3.0
+...\glue(\lineskip) 1.0
+...\hbox(16.0+11.0)x44.46062, shifted 150.2697, direction TLT
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\vbox(16.0+11.0)x44.46062, direction TLT
+.....\hbox(8.39996+3.60004)x44.46062, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x44.46062, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OT1/cmr/m/n/10 [
+.......\OML/cmm/m/it/10 a
+.......\OML/cmm/m/it/10 a
+.......\OT1/cmr/m/n/10 ]
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 =
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 1
+.......\OT1/cmr/m/n/10 0
+.......\OT1/cmr/m/n/10 0
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x44.46062, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x44.46062, glue set 2.68289fil, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OT1/cmr/m/n/10 [
+.......\OML/cmm/m/it/10 v
+.......\kern0.35878 (italic)
+.......\OT1/cmr/m/n/10 ]
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 =
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 2
+.......\OT1/cmr/m/n/10 0
+.......\OT1/cmr/m/n/10 0
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+...\penalty 0
+...\glue(\belowdisplayshortskip) 6.0 plus 3.0 minus 3.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\baselineskip) 1.0
+...\hbox(0.0+0.0)x345.0, glue set 330.0fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 10000
+...\glue(\abovedisplayshortskip) 0.0 plus 3.0
+...\glue(\lineskip) 1.0
+...\hbox(16.0+11.0)x39.09485, shifted 152.95258, direction TLT
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\vbox(16.0+11.0)x39.09485, direction TLT
+.....\hbox(8.39996+3.60004)x39.09485, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x39.09485, glue set 0.17476fil, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\hbox(7.5+2.5)x38.92009, direction TLT
+........\OT1/cmr/m/n/10 [
+........\OML/cmm/m/it/10 p
+........\OT1/cmr/m/n/10 ]
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 =
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 1
+........\OT1/cmr/m/n/10 0
+........\OT1/cmr/m/n/10 0
+.......\mathoff
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x39.09485, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x39.09485, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\hbox(7.5+2.5)x39.09485, direction TLT
+........\OT1/cmr/m/n/10 [
+........\OML/cmm/m/it/10 v
+........\kern0.35878 (italic)
+........\OT1/cmr/m/n/10 ]
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 =
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 2
+........\OT1/cmr/m/n/10 0
+........\OT1/cmr/m/n/10 0
+.......\mathoff
+......\glue(\tabskip) 0.0
+...\penalty 0
+...\glue(\belowdisplayshortskip) 6.0 plus 3.0 minus 3.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\lineskip) 1.0
+...\hbox(6.94444+1.94444)x345.0, glue set 274.30542fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\OT1/cmr/m/n/10 E
+....\OT1/cmr/m/n/10 q
+....\OT1/cmr/m/n/10 u
+....\OT1/cmr/m/n/10 a
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 y
+....\glue(\spaceskip) 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 b
+....\OT1/cmr/m/n/10 a
+....\OT1/cmr/m/n/10 d
+....\OT1/cmr/m/n/10 :
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 10000
+...\glue(\abovedisplayshortskip) 0.0 plus 3.0
+...\glue(\lineskip) 1.0
+...\hbox(16.0+11.0)x44.46062, shifted 150.2697, direction TLT
+....\hbox(0.0+0.0)x0.0, direction TLT
+....\vbox(16.0+11.0)x44.46062, direction TLT
+.....\hbox(8.39996+3.60004)x44.46062, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x44.46062, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\hbox(7.5+2.5)x44.46062, direction TLT
+........\OT1/cmr/m/n/10 [
+........\OML/cmm/m/it/10 a
+........\OML/cmm/m/it/10 a
+........\OT1/cmr/m/n/10 ]
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 =
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 1
+........\OT1/cmr/m/n/10 0
+........\OT1/cmr/m/n/10 0
+.......\mathoff
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x44.46062, direction TLT
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x44.46062, glue set 5.36577fil, direction TLT
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0, direction TLT
+........\vbox(8.39996+3.60004)x0.0, direction TLT
+.........\kern0.0
+.........\hbox(8.39996+3.60004)x0.0, direction TLT
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\hbox(7.5+2.5)x39.09485, direction TLT
+........\OT1/cmr/m/n/10 [
+........\OML/cmm/m/it/10 v
+........\kern0.35878 (italic)
+........\OT1/cmr/m/n/10 ]
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 =
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 2
+........\OT1/cmr/m/n/10 0
+........\OT1/cmr/m/n/10 0
+.......\mathoff
+......\glue(\tabskip) 0.0
+...\penalty 0
+...\glue(\belowdisplayshortskip) 6.0 plus 3.0 minus 3.0
+...\glue -5.0
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.55556
+..\hbox(6.44444+0.0)x345.0, glue set 170.0fil, direction TLT
+...\glue 0.0 plus 1.0fil
+...\OT1/cmr/m/n/10 1
+...\glue 0.0 plus 1.0fil
+(github-amsmath-0005.aux)
diff --git a/required/amsmath/testfiles/github-amsmath-0005.lvt b/required/amsmath/testfiles/github-amsmath-0005.lvt
new file mode 100644
index 00000000..5d11a2ae
--- /dev/null
+++ b/required/amsmath/testfiles/github-amsmath-0005.lvt
@@ -0,0 +1,51 @@
+\documentclass{article}
+
+\usepackage{amsmath}
+
+\input{test2e}
+
+\showoutput
+
+\begin{document}
+
+\START
+
+\[
+\begin{gathered}[t] X \\ X \end{gathered}
+\begin{gathered}[c] Y \\ Y\end{gathered}
+\begin{aligned}[b] Z \\ Z \end{aligned}
+\]
+
+\[
+\begin{gathered}
+[p] = 100 \\
+[v] = 200
+\end{gathered}
+\]
+
+Equally bad:
+\[
+\begin{gathered}
+[aa] = 100 \\   % read as "t"
+[v] = 200
+\end{gathered}
+\]
+
+
+\[
+\begin{aligned}
+[p] = 100 \\
+[v] = 200
+\end{gathered}
+\]
+
+Equally bad:
+\[
+\begin{aligned}
+[aa] = 100 \\   % read as "t"
+[v] = 200
+\end{gathered}
+\]
+
+\end{document}
+
diff --git a/required/amsmath/testfiles/github-amsmath-0005.tlg b/required/amsmath/testfiles/github-amsmath-0005.tlg
new file mode 100644
index 00000000..dc84acef
--- /dev/null
+++ b/required/amsmath/testfiles/github-amsmath-0005.tlg
@@ -0,0 +1,425 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+! LaTeX Error: \begin{aligned} on input line ... ended by \end{gathered}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\end{gathered}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: \begin{aligned} on input line ... ended by \end{gathered}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\end{gathered}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 338.18611fil
+...\write-{}
+...\glue(\topskip) 10.0
+...\hbox(0.0+0.0)x345.0, glue set 330.0fil
+....\hbox(0.0+0.0)x15.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 10000
+...\glue(\abovedisplayshortskip) 0.0 plus 3.0
+...\glue(\lineskip) 1.0
+...\hbox(23.39996+18.60004)x24.63889, shifted 160.18056, display
+....\hbox(0.0+0.0)x0.0
+....\vbox(8.39996+18.60004)x9.06943
+.....\hbox(8.39996+3.60004)x9.06943
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x9.06943
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 X
+.......\kern0.7847
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x9.06943
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x9.06943
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 X
+.......\kern0.7847
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+....\hbox(0.0+0.0)x0.0
+....\vbox(16.0+11.0)x8.02779
+.....\hbox(8.39996+3.60004)x8.02779
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x8.02779
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 Y
+.......\kern2.22223
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x8.02779
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x8.02779
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 Y
+.......\kern2.22223
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+....\hbox(0.0+0.0)x0.0
+....\vbox(23.39996+3.60004)x7.54167
+.....\hbox(8.39996+3.60004)x7.54167
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x7.54167
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 Z
+.......\kern0.71527
+.......\mathoff
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x7.54167
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x7.54167
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OML/cmm/m/it/10 Z
+.......\kern0.71527
+.......\mathoff
+......\glue(\tabskip) 0.0
+...\penalty 0
+...\glue(\belowdisplayshortskip) 6.0 plus 3.0 minus 3.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\lineskip) 1.0
+...\hbox(0.0+0.0)x345.0, glue set 330.0fil
+....\hbox(0.0+0.0)x15.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 10000
+...\glue(\abovedisplayshortskip) 0.0 plus 3.0
+...\glue(\lineskip) 1.0
+...\hbox(16.0+11.0)x39.09485, shifted 152.95258, display
+....\hbox(0.0+0.0)x0.0
+....\vbox(16.0+11.0)x39.09485
+.....\hbox(8.39996+3.60004)x39.09485
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x39.09485, glue set 0.08739fil
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OT1/cmr/m/n/10 [
+.......\OML/cmm/m/it/10 p
+.......\OT1/cmr/m/n/10 ]
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 =
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 1
+.......\OT1/cmr/m/n/10 0
+.......\OT1/cmr/m/n/10 0
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x39.09485
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x39.09485
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OT1/cmr/m/n/10 [
+.......\OML/cmm/m/it/10 v
+.......\kern0.35878
+.......\OT1/cmr/m/n/10 ]
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 =
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 2
+.......\OT1/cmr/m/n/10 0
+.......\OT1/cmr/m/n/10 0
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+...\penalty 0
+...\glue(\belowdisplayshortskip) 6.0 plus 3.0 minus 3.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\lineskip) 1.0
+...\hbox(6.94444+1.94444)x345.0, glue set 274.3054fil
+....\hbox(0.0+0.0)x15.0
+....\OT1/cmr/m/n/10 E
+....\OT1/cmr/m/n/10 q
+....\OT1/cmr/m/n/10 u
+....\OT1/cmr/m/n/10 a
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 y
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 b
+....\OT1/cmr/m/n/10 a
+....\OT1/cmr/m/n/10 d
+....\OT1/cmr/m/n/10 :
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 10000
+...\glue(\abovedisplayshortskip) 0.0 plus 3.0
+...\glue(\lineskip) 1.0
+...\hbox(16.0+11.0)x44.46062, shifted 150.2697, display
+....\hbox(0.0+0.0)x0.0
+....\vbox(16.0+11.0)x44.46062
+.....\hbox(8.39996+3.60004)x44.46062
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x44.46062
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OT1/cmr/m/n/10 [
+.......\OML/cmm/m/it/10 a
+.......\OML/cmm/m/it/10 a
+.......\OT1/cmr/m/n/10 ]
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 =
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 1
+.......\OT1/cmr/m/n/10 0
+.......\OT1/cmr/m/n/10 0
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x44.46062
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x44.46062, glue set 2.68289fil
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\OT1/cmr/m/n/10 [
+.......\OML/cmm/m/it/10 v
+.......\kern0.35878
+.......\OT1/cmr/m/n/10 ]
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 =
+.......\glue(\thickmuskip) 2.77771 plus 2.77771
+.......\OT1/cmr/m/n/10 2
+.......\OT1/cmr/m/n/10 0
+.......\OT1/cmr/m/n/10 0
+.......\mathoff
+.......\glue 0.0 plus 1.0fil
+......\glue(\tabskip) 0.0
+...\penalty 0
+...\glue(\belowdisplayshortskip) 6.0 plus 3.0 minus 3.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\baselineskip) 1.0
+...\hbox(0.0+0.0)x345.0, glue set 330.0fil
+....\hbox(0.0+0.0)x15.0
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 10000
+...\glue(\abovedisplayshortskip) 0.0 plus 3.0
+...\glue(\lineskip) 1.0
+...\hbox(16.0+11.0)x39.09485, shifted 152.95258, display
+....\hbox(0.0+0.0)x0.0
+....\vbox(16.0+11.0)x39.09485
+.....\hbox(8.39996+3.60004)x39.09485
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x39.09485, glue set 0.17476fil
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\hbox(7.5+2.5)x38.92009
+........\OT1/cmr/m/n/10 [
+........\OML/cmm/m/it/10 p
+........\OT1/cmr/m/n/10 ]
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 =
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 1
+........\OT1/cmr/m/n/10 0
+........\OT1/cmr/m/n/10 0
+.......\mathoff
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x39.09485
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x39.09485
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\hbox(7.5+2.5)x39.09485
+........\OT1/cmr/m/n/10 [
+........\OML/cmm/m/it/10 v
+........\kern0.35878
+........\OT1/cmr/m/n/10 ]
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 =
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 2
+........\OT1/cmr/m/n/10 0
+........\OT1/cmr/m/n/10 0
+.......\mathoff
+......\glue(\tabskip) 0.0
+...\penalty 0
+...\glue(\belowdisplayshortskip) 6.0 plus 3.0 minus 3.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\lineskip) 1.0
+...\hbox(6.94444+1.94444)x345.0, glue set 274.3054fil
+....\hbox(0.0+0.0)x15.0
+....\OT1/cmr/m/n/10 E
+....\OT1/cmr/m/n/10 q
+....\OT1/cmr/m/n/10 u
+....\OT1/cmr/m/n/10 a
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 l
+....\OT1/cmr/m/n/10 y
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\OT1/cmr/m/n/10 b
+....\OT1/cmr/m/n/10 a
+....\OT1/cmr/m/n/10 d
+....\OT1/cmr/m/n/10 :
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\penalty 10000
+...\glue(\abovedisplayshortskip) 0.0 plus 3.0
+...\glue(\lineskip) 1.0
+...\hbox(16.0+11.0)x44.46062, shifted 150.2697, display
+....\hbox(0.0+0.0)x0.0
+....\vbox(16.0+11.0)x44.46062
+.....\hbox(8.39996+3.60004)x44.46062
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x44.46062
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\hbox(7.5+2.5)x44.46062
+........\OT1/cmr/m/n/10 [
+........\OML/cmm/m/it/10 a
+........\OML/cmm/m/it/10 a
+........\OT1/cmr/m/n/10 ]
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 =
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 1
+........\OT1/cmr/m/n/10 0
+........\OT1/cmr/m/n/10 0
+.......\mathoff
+......\glue(\tabskip) 0.0
+.....\glue 0.0
+.....\glue(\baselineskip) 3.0
+.....\hbox(8.39996+3.60004)x44.46062
+......\glue(\tabskip) 0.0
+......\hbox(8.39996+3.60004)x44.46062, glue set 5.36577fil
+.......\glue 0.0 plus 1.0fil
+.......\hbox(8.39996+3.60004)x0.0
+........\vbox(8.39996+3.60004)x0.0
+.........\kern 0.0
+.........\hbox(8.39996+3.60004)x0.0
+..........\rule(8.39996+3.60004)x0.0
+.......\mathon
+.......\hbox(7.5+2.5)x39.09485
+........\OT1/cmr/m/n/10 [
+........\OML/cmm/m/it/10 v
+........\kern0.35878
+........\OT1/cmr/m/n/10 ]
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 =
+........\glue(\thickmuskip) 2.77771 plus 2.77771
+........\OT1/cmr/m/n/10 2
+........\OT1/cmr/m/n/10 0
+........\OT1/cmr/m/n/10 0
+.......\mathoff
+......\glue(\tabskip) 0.0
+...\penalty 0
+...\glue(\belowdisplayshortskip) 6.0 plus 3.0 minus 3.0
+...\glue -5.0
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.55556
+..\hbox(6.44444+0.0)x345.0, glue set 170.0fil
+...\glue 0.0 plus 1.0fil
+...\OT1/cmr/m/n/10 1
+...\glue 0.0 plus 1.0fil
+(github-amsmath-0005.aux)





More information about the latex3-commits mailing list.