[latex3-commits] [git/LaTeX3-latex3-latex2e] everymath: test -010 and -011 have problems (23a4cb54)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Jan 6 13:56:49 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : everymath
Link       : https://github.com/latex3/latex2e/commit/23a4cb540ff46a59128c0269d2c5f2ba763380d6

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

commit 23a4cb540ff46a59128c0269d2c5f2ba763380d6
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Jan 6 13:56:49 2023 +0100

    test -010 and -011 have problems


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

23a4cb540ff46a59128c0269d2c5f2ba763380d6
 .../{mathcapture-004.lvt => mathcapture-010.lvt}   | 36 ++++++-------
 .../{mathcapture-007.tlg => mathcapture-010.tlg}   |  8 +--
 .../testfiles-mathcapture/mathcapture-011.lvt      | 60 ++++++++++++++++++++++
 .../testfiles-mathcapture/mathcapture-011.tlg      | 23 +++++++++
 4 files changed, 105 insertions(+), 22 deletions(-)

diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-004.lvt b/required/latex-lab/testfiles-mathcapture/mathcapture-010.lvt
similarity index 57%
copy from required/latex-lab/testfiles-mathcapture/mathcapture-004.lvt
copy to required/latex-lab/testfiles-mathcapture/mathcapture-010.lvt
index feea2f63..3f83f680 100644
--- a/required/latex-lab/testfiles-mathcapture/mathcapture-004.lvt
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-010.lvt
@@ -1,3 +1,5 @@
+% tikz math
+
 \DocumentMetadata{testphase=phase-II}
 
 \documentclass{article}
@@ -13,6 +15,7 @@
 \input{latex-lab-mathcapture.ltx}
 \makeatother
 
+
 \ExplSyntaxOn
 \math_processor:n
   {
@@ -21,25 +24,22 @@
   }
 \ExplSyntaxOff
 
+\usepackage{tikz-cd}
+
+
+
 \begin{document}
 
 \START
 
-11-2-17:
-\begin{equation}
-\begin{aligned}
-  x^2 + y^2  &= 1             \\
-          x  &= \sqrt{1-y^2}  \\
- \text{and also }
-          y  &= \sqrt{1-x^2}
-\end{aligned}
-\qquad
-\begin{gathered}
-  (a + b)^2 = a^2 + 2ab + b^2 \\
-  (a + b) \cdot (a - b)
-           = a^2 - b^2
-\end{gathered}
-\end{equation}
-
-
-\END
+
+\TYPE{???????????????????????? another case for "I'm a math display" interface}
+
+11-3-13:
+\begin{tikzcd}
+ S^{W_\Lambda}\otimes T \arrow[r, "j"] \arrow[d] &
+        T \arrow[d, "\End P"]   \\
+ (S \otimes T)/I  \arrow[r, equal] & (Z\otimes T)/J
+\end{tikzcd}
+
+\end{document}
diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-007.tlg b/required/latex-lab/testfiles-mathcapture/mathcapture-010.tlg
similarity index 68%
copy from required/latex-lab/testfiles-mathcapture/mathcapture-007.tlg
copy to required/latex-lab/testfiles-mathcapture/mathcapture-010.tlg
index d7b54bc9..6d2a9b24 100644
--- a/required/latex-lab/testfiles-mathcapture/mathcapture-007.tlg
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-010.tlg
@@ -1,17 +1,17 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-next examples die ....
+???????????????????????? another case for "I'm a math display" interface
 )
 Runaway argument?
-\displaystyle \penalty -\@Mi  f_{h, \ve }(x, y) = \ve \bfE _{x, y} \int \ETC.
+\bgroup \aftergroup \unskip \ifx \tikz at textcolor \pgfutil at empty \else \ETC.
 ! File ended while scanning use of \__math_grab_dollar:w.
 <inserted text> 
                 \par 
-<*> \input mathcapture-007.lvt
+<*> \input mathcapture-010.lvt
 I suspect you have forgotten a `}', causing me
 to read past where you wanted me to stop.
 I'll try to recover; but if the error is serious,
 you'd better type `E' or `X' now and fix your file.
 ! Emergency stop.
-<*> \input mathcapture-007.lvt
+<*> \input mathcapture-010.lvt
 *** (job aborted, no legal \end found)
diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-011.lvt b/required/latex-lab/testfiles-mathcapture/mathcapture-011.lvt
new file mode 100644
index 00000000..f901f340
--- /dev/null
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-011.lvt
@@ -0,0 +1,60 @@
+% tikz math
+
+\DocumentMetadata{testphase=phase-II}
+
+\documentclass{article}
+
+\input{regression-test}
+
+\RequirePackage[enable-debug ,check-declarations]{expl3}
+\ExplSyntaxOn
+\debug_on:n { deprecation }
+\ExplSyntaxOff
+
+\makeatletter
+\input{latex-lab-mathcapture.ltx}
+\makeatother
+
+
+\ExplSyntaxOn
+\math_processor:n
+  {
+    \TYPE {-----------------------------------}
+    \TYPE {\unexpanded{#1}}
+  }
+\ExplSyntaxOff
+
+%\usepackage{amsmath,cases}    % no already defined error if amsmath,cases is loaded explicitly
+\usepackage{cases}              % but error if only cases is loaded explicitly
+
+
+\begin{document}
+
+\START
+
+\TYPE {-----------------------------------}
+\TYPE{????? just loading cases but not amsmath now gives an error}
+\TYPE {-----------------------------------}
+
+
+11-3-3:
+To show the effect of the matrix on surrounding
+lines inside a paragraph, we put it here
+$\left(\begin{smallmatrix}
+          -1 & 0 \\ 0 & -1 \end{smallmatrix}\right)$
+and follow it with some more text on the next line.
+
+\TYPE {-----------------------------------}
+\TYPE{???????????????????????? another case for "I'm a math display" interface}
+
+
+11-3-7:
+ \begin{subnumcases}{f(x) = \label{L1}}
+   -1   &  if $x<0$\,,                  \\
+    0   &  if $x=0$\,,      \tag{$*$}   \\
+    1   &  if $x>0$\,.      \label{L2}
+ \end{subnumcases}
+ Reference to a subequation \eqref{L2} and to
+ the overall equation \eqref{L1} are possible.
+
+\end{document}
diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-011.tlg b/required/latex-lab/testfiles-mathcapture/mathcapture-011.tlg
new file mode 100644
index 00000000..c48fc11a
--- /dev/null
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-011.tlg
@@ -0,0 +1,23 @@
+This is a generated file for the l3build validation system.
+Don't change this file in any respect.
+-----------------------------------
+????? just loading cases but not amsmath now gives an error
+-----------------------------------
+-----------------------------------
+\left (\begin {smallmatrix} -1 & 0 \\ 0 & -1 \end {smallmatrix}\right )
+-----------------------------------
+???????????????????????? another case for "I'm a math display" interface
+)
+Runaway argument?
+\numc at opts \refstepcounter {equation}\setbox \z@ \hbox {\def \@currentlabel \ETC.
+! File ended while scanning use of \__math_grab_dollardollar:w.
+<inserted text> 
+                \par 
+<*> \input mathcapture-011.lvt
+I suspect you have forgotten a `}', causing me
+to read past where you wanted me to stop.
+I'll try to recover; but if the error is serious,
+you'd better type `E' or `X' now and fix your file.
+! Emergency stop.
+<*> \input mathcapture-011.lvt
+*** (job aborted, no legal \end found)





More information about the latex3-commits mailing list.