[latex3-commits] [git/LaTeX3-latex3-latex2e] everymath: don't expand result (still some failures) (a2f0d3ea)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Jan 5 16:27:07 CET 2023


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

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

commit a2f0d3ead061b4b0f170228f52d2b58e7bc4ad5f
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Jan 5 16:27:07 2023 +0100

    don't expand result (still some failures)


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

a2f0d3ead061b4b0f170228f52d2b58e7bc4ad5f
 required/latex-lab/testfiles/mathcapture-002.lvt   |   8 +-
 required/latex-lab/testfiles/mathcapture-002.tlg   |   9 +-
 required/latex-lab/testfiles/mathcapture-003.lvt   |   4 +-
 .../latex-lab/testfiles/mathcapture-004.luatex.tlg | 162 -------------------
 required/latex-lab/testfiles/mathcapture-004.lvt   |   4 +-
 required/latex-lab/testfiles/mathcapture-004.tlg   | 160 +------------------
 .../latex-lab/testfiles/mathcapture-005.luatex.tlg | 173 ---------------------
 required/latex-lab/testfiles/mathcapture-005.lvt   |   5 +-
 required/latex-lab/testfiles/mathcapture-005.tlg   | 171 +-------------------
 9 files changed, 14 insertions(+), 682 deletions(-)

diff --git a/required/latex-lab/testfiles/mathcapture-002.lvt b/required/latex-lab/testfiles/mathcapture-002.lvt
index fa086a33..ccaaae89 100644
--- a/required/latex-lab/testfiles/mathcapture-002.lvt
+++ b/required/latex-lab/testfiles/mathcapture-002.lvt
@@ -16,7 +16,7 @@
 \math_processor:n
   {
     \TYPE {-----------------------------------}
-    \TYPE {#1}
+    \TYPE {\unexpanded{#1}}
   }
 \ExplSyntaxOff
 
@@ -26,14 +26,12 @@
 
 What about $\alpha \neq \beta \pmod x$?
 
-\TYPE{I would say broken!}
-
 Some examples from TLC3:
 
 10-1-1:
-%Catch\textsubscript{22} in Room\textsuperscript{13}
+Catch\textsubscript{22} in Room\textsuperscript{13}
 
-\TYPE{Definitely broken!}
+\TYPE{Definitely broken because it should not capture math!}
 
 11-2-1:
 \begin{equation} (a+b)^2 = a^2+2ab+b^2 \end{equation}
diff --git a/required/latex-lab/testfiles/mathcapture-002.tlg b/required/latex-lab/testfiles/mathcapture-002.tlg
index 75eeb228..e861176e 100644
--- a/required/latex-lab/testfiles/mathcapture-002.tlg
+++ b/required/latex-lab/testfiles/mathcapture-002.tlg
@@ -1,9 +1,12 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
 -----------------------------------
-\alpha \protect \not =\beta \protect \protect \protect \penalty \z@ \mkern 8mu({\mathgroup \symoperators mod}\mkern 6mux)
-I would say broken!
-Definitely broken!
+\alpha \neq \beta \pmod x
+-----------------------------------
+_{\mbox {\fontsize \sf at size \sf at size \selectfont 22}}
+-----------------------------------
+^{\mbox {\fontsize \sf at size \sf at size \selectfont 13}}
+Definitely broken because it should not capture math!
 -----------------------------------
 (a+b)^2 = a^2+2ab+b^2
 -----------------------------------
diff --git a/required/latex-lab/testfiles/mathcapture-003.lvt b/required/latex-lab/testfiles/mathcapture-003.lvt
index 3976e945..33b95d0d 100644
--- a/required/latex-lab/testfiles/mathcapture-003.lvt
+++ b/required/latex-lab/testfiles/mathcapture-003.lvt
@@ -15,9 +15,8 @@
 \ExplSyntaxOn
 \math_processor:n
   {
-    \XXX
     \TYPE {-----------------------------------}
-    \TYPE {#1}
+    \TYPE {\unexpanded{#1}}
   }
 \ExplSyntaxOff
 
@@ -44,5 +43,4 @@ This example has three column-pairs.
 
 \TYPE{??????????????????????? nothing shows at all}
 
-
 \END
diff --git a/required/latex-lab/testfiles/mathcapture-004.luatex.tlg b/required/latex-lab/testfiles/mathcapture-004.luatex.tlg
deleted file mode 100644
index a6719135..00000000
--- a/required/latex-lab/testfiles/mathcapture-004.luatex.tlg
+++ /dev/null
@@ -1,162 +0,0 @@
-This is a generated file for the l3build validation system.
-Don't change this file in any respect.
------------------------------------
-! Argument of \alignsafe at testopt has an extra }.
-<inserted text> 
-\par 
-l. ...\end
-       {equation}
-I've run across a `}' that doesn't seem to match anything.
-For example, `\def\a#1{...}' and `\a}' would produce
-this error. If you simply proceed now, the `\par' that
-I've just inserted will cause me to report a runaway
-argument that might be the root of the problem. But if
-your `}' was spurious, just type `2' and it will go away.
-Runaway argument?
-! Paragraph ended before \alignsafe at testopt was complete.
-<to be read again> 
-\par 
-l. ...\end
-       {equation}
-I suspect you've forgotten a `}', causing me to apply this
-control sequence to too much text. How can we recover?
-My plan is to forget the whole thing and hope for the best.
-! Use of \\aligned at a doesn't match its definition.
-\kernel at ifnextchar ...d at d =#1\def \reserved at a {#2}
-                                                  \def \reserved at b {#3}\futu...
-l. ...\end
-       {equation}
-If you say, e.g., `\def\a1{...}', then you must always
-put `1' after `\a', since control sequence names are
-made up of letters only. The macro here has not been
-followed by the required stuff, so I'm ignoring it.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                    #4  \errhelp \@err@     ...
-l. ...\end
-       {equation}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                  \let \@err@               ...
-l. ...\end
-       {equation}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                  \@empty \def \MessageBreak...
-l. ...\end
-       {equation}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Incomplete \iffalse; all text was ignored after line 42.
-<inserted text> 
-\fi 
-l. ...\end
-       {equation}
-A forbidden control sequence occurred in skipped text.
-This kind of error happens when you say `\if...' and forget
-the matching `\fi'. I've inserted a `\fi'; this might work.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation}
-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.
-\protect \def \def equation{equation}\edef  on input line ...{ on input line ...}\equation {\def equation{aligned}\edef  on input line ...{ on input line ...}\bool_set_true:N \l__math_collected_bool \let \let \reserved at d =[\def \def equation{equation}\edef  on input line ...{ on input line ...}\equation {\par }\def \underleftrightarrow {\relax \let \reserved at d =[\def \def equation{equation}\edef  on input line ...{ on input line ...}\equation {\let \@let at token \relax [}\def \underleftrightarrow {\let \@let at token \relax [[\let \reserved at d =[\def \def equation{equation}\edef  on input line ...{ on input line ...}\equation {\def \underleftrightarrow {\relax \protect \begingroup \immediate \write \@unused   \def \MessageBreak  
- \let \protect \edef  You're in trouble here.  Try typing  <return>  to proceed.\MessageBreak If that doesn't work, type  X <return>  to quit.  \errhelp \let \def \MessageBreak  
-(amsmath)                 \def   \errmessage  Package amsmath Error: \protect \protect \def \def equation{equation}\edef  on input line ...{ on input line ...}\equation {\def equation{equation}\edef  on input line ...{ on input line ...}\equation }\global \let ^^@}^^@}^^@}^^@}^^@}^^@}^^@}^^@
-??????????????????????? badly broken
diff --git a/required/latex-lab/testfiles/mathcapture-004.lvt b/required/latex-lab/testfiles/mathcapture-004.lvt
index 1a140e0e..feea2f63 100644
--- a/required/latex-lab/testfiles/mathcapture-004.lvt
+++ b/required/latex-lab/testfiles/mathcapture-004.lvt
@@ -17,7 +17,7 @@
 \math_processor:n
   {
     \TYPE {-----------------------------------}
-    \TYPE {#1}
+    \TYPE {\unexpanded{#1}}
   }
 \ExplSyntaxOff
 
@@ -41,7 +41,5 @@
 \end{gathered}
 \end{equation}
 
-\TYPE{??????????????????????? badly broken}
-
 
 \END
diff --git a/required/latex-lab/testfiles/mathcapture-004.tlg b/required/latex-lab/testfiles/mathcapture-004.tlg
index 791d6c49..4b6cbd8f 100644
--- a/required/latex-lab/testfiles/mathcapture-004.tlg
+++ b/required/latex-lab/testfiles/mathcapture-004.tlg
@@ -1,162 +1,4 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
 -----------------------------------
-! Argument of \alignsafe at testopt has an extra }.
-<inserted text> 
-                \par 
-l. ...\end
-         {equation}
-I've run across a `}' that doesn't seem to match anything.
-For example, `\def\a#1{...}' and `\a}' would produce
-this error. If you simply proceed now, the `\par' that
-I've just inserted will cause me to report a runaway
-argument that might be the root of the problem. But if
-your `}' was spurious, just type `2' and it will go away.
-Runaway argument?
-! Paragraph ended before \alignsafe at testopt was complete.
-<to be read again> 
-                   \par 
-l. ...\end
-         {equation}
-I suspect you've forgotten a `}', causing me to apply this
-control sequence to too much text. How can we recover?
-My plan is to forget the whole thing and hope for the best.
-! Use of \\aligned at a doesn't match its definition.
-\kernel at ifnextchar ...d at d =#1\def \reserved at a {#2}
-                                                  \def \reserved at b {#3}\futu...
-l. ...\end
-         {equation}
-If you say, e.g., `\def\a1{...}', then you must always
-put `1' after `\a', since control sequence names are
-made up of letters only. The macro here has not been
-followed by the required stuff, so I'm ignoring it.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                    #4  \errhelp \@err@     ...
-l. ...\end
-         {equation}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                  \let \@err@               ...
-l. ...\end
-         {equation}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                  \@empty \def \MessageBreak...
-l. ...\end
-         {equation}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Incomplete \iffalse; all text was ignored after line 42.
-<inserted text> 
-                \fi 
-l. ...\end
-         {equation}
-A forbidden control sequence occurred in skipped text.
-This kind of error happens when you say `\if...' and forget
-the matching `\fi'. I've inserted a `\fi'; this might work.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation}
-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.
-Runaway text?
-\protect \def \def equation{equation}\edef  on input line ...{ on inpu\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation}
-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.
-\protect \def \def equation{equation}\edef  on input line ...{ on input line ...}\equation {\def equation{aligned}\edef  on input line ...{ on input line ...}\bool_set_true:N \l__math_collected_bool \let \let \reserved at d =[\def \def equation{equation}\edef  on input line ...{ on input line ...}\equation {\par }\def \underleftrightarrow {\relax \let \reserved at d =[\def \def equation{equation}\edef  on input line ...{ on input line ...}\equation {\let \@let at token \relax [}\def \underleftrightarrow {\let \@let at token \relax [[\let \reserved at d =[\def \def equation{equation}\edef  on input line ...{ on input line ...}\equation {\def \underleftrightarrow {\relax \protect \begingroup \immediate \write \@unused   \def \MessageBreak  
- \let \protect \edef  You're in trouble here.  Try typing  <return>  to proceed.\MessageBreak If that doesn't work, type  X <return>  to quit.  \errhelp \let \def \MessageBreak  
-(amsmath)                 \def   \errmessage  Package amsmath Error: \protect \protect \def \def equation{equation}\edef  on input line ...{ on input line ...}\equation {\def equation{equation}\edef  on input line ...{ on input line ...}\equation }\global \let  } } } } } } } 
-??????????????????????? badly broken
+\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}
diff --git a/required/latex-lab/testfiles/mathcapture-005.luatex.tlg b/required/latex-lab/testfiles/mathcapture-005.luatex.tlg
deleted file mode 100644
index 70b3554a..00000000
--- a/required/latex-lab/testfiles/mathcapture-005.luatex.tlg
+++ /dev/null
@@ -1,173 +0,0 @@
-This is a generated file for the l3build validation system.
-Don't change this file in any respect.
------------------------------------
-! Argument of \alignsafe at testopt has an extra }.
-<inserted text> 
-\par 
-l. ...\end
-       {equation*}
-I've run across a `}' that doesn't seem to match anything.
-For example, `\def\a#1{...}' and `\a}' would produce
-this error. If you simply proceed now, the `\par' that
-I've just inserted will cause me to report a runaway
-argument that might be the root of the problem. But if
-your `}' was spurious, just type `2' and it will go away.
-Runaway argument?
-! Paragraph ended before \alignsafe at testopt was complete.
-<to be read again> 
-\par 
-l. ...\end
-       {equation*}
-I suspect you've forgotten a `}', causing me to apply this
-control sequence to too much text. How can we recover?
-My plan is to forget the whole thing and hope for the best.
-! Use of \\aligned at a doesn't match its definition.
-\kernel at ifnextchar ...d at d =#1\def \reserved at a {#2}
-                                                  \def \reserved at b {#3}\futu...
-l. ...\end
-       {equation*}
-If you say, e.g., `\def\a1{...}', then you must always
-put `1' after `\a', since control sequence names are
-made up of letters only. The macro here has not been
-followed by the required stuff, so I'm ignoring it.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                    #4  \errhelp \@err@     ...
-l. ...\end
-       {equation*}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                  \let \@err@               ...
-l. ...\end
-       {equation*}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                  \@empty \def \MessageBreak...
-l. ...\end
-       {equation*}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Incomplete \iffalse; all text was ignored after line 42.
-<inserted text> 
-\fi 
-l. ...\end
-       {equation*}
-A forbidden control sequence occurred in skipped text.
-This kind of error happens when you say `\if...' and forget
-the matching `\fi'. I've inserted a `\fi'; this might work.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-}
-l. ...\end
-       {equation*}
-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.
-\protect \def \def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* {\def equation*{rcases}\edef  on input line ...{ on input line ...}\left .\protect \def \def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* {\def equation*{aligned}\edef  on input line ...{ on input line ...}\bool_set_true:N \l__math_collected_bool \let \let \reserved at d =[\def \def equation*{equation*}\edef  on input line ..{ on input line ...}\equation* {\par }\def \underleftrightarrow {\relax \let \reserved at d =[\def \def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* {\let \@let at token \relax [}\def \underleftrightarrow {\let \@let at token \relax [[\let \reserved at d =[\def \def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* {\def \underleftrightarrow {\relax \protect \begingroup \immediate \write \@unused   \def \MessageBreak  
- \let \protect \edef  You're in trouble here.  Try typing  <return>  to proceed.\MessageBreak If that doesn't work, type  X <return>  to quit.  \errhelp \let \def \MessageBreak  
-(amsmath)                 \def   \errmessage  Package amsmath Error: \protect \protect \def \def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* {\def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* }\global \let ^^@}^^@}^^@}^^@}^^@}^^@}^^@}^^@}^^@
-??????????????????????? badly broken
diff --git a/required/latex-lab/testfiles/mathcapture-005.lvt b/required/latex-lab/testfiles/mathcapture-005.lvt
index 0d46a64b..e5510f5e 100644
--- a/required/latex-lab/testfiles/mathcapture-005.lvt
+++ b/required/latex-lab/testfiles/mathcapture-005.lvt
@@ -17,7 +17,7 @@
 \math_processor:n
   {
     \TYPE {-----------------------------------}
-    \TYPE {#1}
+    \TYPE {\unexpanded{#1}}
   }
 \ExplSyntaxOff
 
@@ -42,7 +42,4 @@
 \end{equation*}
 
 
-\TYPE{??????????????????????? badly broken}
-
-
 \END
diff --git a/required/latex-lab/testfiles/mathcapture-005.tlg b/required/latex-lab/testfiles/mathcapture-005.tlg
index d8a435ad..5026d8f3 100644
--- a/required/latex-lab/testfiles/mathcapture-005.tlg
+++ b/required/latex-lab/testfiles/mathcapture-005.tlg
@@ -1,173 +1,4 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
 -----------------------------------
-! Argument of \alignsafe at testopt has an extra }.
-<inserted text> 
-                \par 
-l. ...\end
-         {equation*}
-I've run across a `}' that doesn't seem to match anything.
-For example, `\def\a#1{...}' and `\a}' would produce
-this error. If you simply proceed now, the `\par' that
-I've just inserted will cause me to report a runaway
-argument that might be the root of the problem. But if
-your `}' was spurious, just type `2' and it will go away.
-Runaway argument?
-! Paragraph ended before \alignsafe at testopt was complete.
-<to be read again> 
-                   \par 
-l. ...\end
-         {equation*}
-I suspect you've forgotten a `}', causing me to apply this
-control sequence to too much text. How can we recover?
-My plan is to forget the whole thing and hope for the best.
-! Use of \\aligned at a doesn't match its definition.
-\kernel at ifnextchar ...d at d =#1\def \reserved at a {#2}
-                                                  \def \reserved at b {#3}\futu...
-l. ...\end
-         {equation*}
-If you say, e.g., `\def\a1{...}', then you must always
-put `1' after `\a', since control sequence names are
-made up of letters only. The macro here has not been
-followed by the required stuff, so I'm ignoring it.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                    #4  \errhelp \@err@     ...
-l. ...\end
-         {equation*}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                  \let \@err@               ...
-l. ...\end
-         {equation*}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Undefined control sequence.
-\GenericError  ...                                
-                                                  \@empty \def \MessageBreak...
-l. ...\end
-         {equation*}
-The control sequence at the end of the top line
-of your error message was never \def'ed. If you have
-misspelled it (e.g., `\hobx'), type `I' and the correct
-spelling (e.g., `I\hbox'). Otherwise just continue,
-and I'll forget about whatever was undefined.
-! Incomplete \iffalse; all text was ignored after line 42.
-<inserted text> 
-                \fi 
-l. ...\end
-         {equation*}
-A forbidden control sequence occurred in skipped text.
-This kind of error happens when you say `\if...' and forget
-the matching `\fi'. I've inserted a `\fi'; this might work.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation*}
-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.
-Runaway text?
-\protect \def \def equation*{equation*}\edef  on input line ...{ on in\ETC.
-! Forbidden control sequence found while scanning text of \write.
-<inserted text> 
-                }
-l. ...\end
-         {equation*}
-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.
-\protect \def \def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* {\def equation*{rcases}\edef  on input line ...{ on input line ...}\left .\protect \def \def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* {\def equation*{aligned}\edef  on input line ...{ on input line ...}\bool_set_true:N \l__math_collected_bool \let \let \reserved at d =[\def \def equation*{equation*}\edef  on input line ..{ on input line ...}\equation* {\par }\def \underleftrightarrow {\relax \let \reserved at d =[\def \def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* {\let \@let at token \relax [}\def \underleftrightarrow {\let \@let at token \relax [[\let \reserved at d =[\def \def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* {\def \underleftrightarrow {\relax \protect \begingroup \immediate \write \@unused   \def \MessageBreak  
- \let \protect \edef  You're in trouble here.  Try typing  <return>  to proceed.\MessageBreak If that doesn't work, type  X <return>  to quit.  \errhelp \let \def \MessageBreak  
-(amsmath)                 \def   \errmessage  Package amsmath Error: \protect \protect \def \def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* {\def equation*{equation*}\edef  on input line ...{ on input line ...}\equation* }\global \let  } } } } } } } } 
-??????????????????????? badly broken
+\begin {rcases} \bm {B}' &=-c\nabla \times \bm {E} \\ \bm {E}' &=c\nabla \times \bm {B} - 4\pi \bm {J}\, \end {rcases} \quad \text {Maxwell's equations}





More information about the latex3-commits mailing list.