[latex3-commits] [git/LaTeX3-latex3-latex2e] everymath: Support multline (8caa41be)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Jan 6 09:32:55 CET 2023


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

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

commit 8caa41be3355d6b8ab17c2ade1e9f3ac6b42621f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Jan 6 08:32:55 2023 +0000

    Support multline


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

8caa41be3355d6b8ab17c2ade1e9f3ac6b42621f
 required/latex-lab/latex-lab-mathcapture.dtx       | 12 ++++++++---
 .../testfiles-mathcapture/mathcapture-008.tlg      | 25 +++++-----------------
 2 files changed, 14 insertions(+), 23 deletions(-)

diff --git a/required/latex-lab/latex-lab-mathcapture.dtx b/required/latex-lab/latex-lab-mathcapture.dtx
index 1637a244..a7ac0b7d 100644
--- a/required/latex-lab/latex-lab-mathcapture.dtx
+++ b/required/latex-lab/latex-lab-mathcapture.dtx
@@ -307,7 +307,7 @@
 % Mark up all of the display environments as the content is captured anyway.
 %    \begin{macrocode}
 \clist_map_inline:nn
-  { align , gather }
+  { align , gather , multline }
   {
     \AddToHook{ env / #1 / begin }
       { \bool_set_true:N \l_@@_collected_bool }
@@ -316,8 +316,8 @@
   }
 %    \end{macrocode}
 %
-% \begin{macro}{\@@_measure@:n, \@@_gmeasure@:n}
-% \begin{macro}{\measure@, \gmeasure@}
+% \begin{macro}{\@@_measure@:n, \@@_gmeasure@:n, \@@_mmeasure@:n}
+% \begin{macro}{\measure@, \gmeasure@, \mmeasure@}
 %   The \pkg{amsmath} environments use a few common internal commands that are
 %   useful places to pick up the content.
 %    \begin{macrocode}
@@ -335,6 +335,12 @@
         \@@_process:n {#1}
         \@@_gmeasure@:n {#1}
       }
+    \cs_new_eq:NN \@@_mmeasure@:n \mmeasure@
+    \cs_gset_protected:Npn \mmeasure@ #1
+      {
+        \@@_process:n {#1}
+        \@@_mmeasure@:n {#1}
+      }
   }
 %    \end{macrocode}
 % \end{macro}
diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-008.tlg b/required/latex-lab/testfiles-mathcapture/mathcapture-008.tlg
index b6502212..3d7d769e 100644
--- a/required/latex-lab/testfiles-mathcapture/mathcapture-008.tlg
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-008.tlg
@@ -2,17 +2,11 @@ This is a generated file for the l3build validation system.
 Don't change this file in any respect.
 -----------------------------------
 x^2+y^2 &= z^2 \label {eq:A} \\ x^3+y^3 &= z^3 \notag \\ x^4+y^4 &= r^4 \tag {$*$} \\ x^5+y^5 &= r^5 \tag *{$*$} \\ x^6+y^6 &= r^6 \tag {\ref {eq:A}$'$}
-LaTeX Warning: Reference `eq:A' on page 1 undefined on input line ....
-LaTeX Warning: Reference `eq:A' on page 1 undefined on input line ....
 ??????????????? why is the label not resolving?
 -----------------------------------
 f &= g \label {eq:1A} \\ f' &= g' \label {eq:1B} \\ \mathcal {L}f &= \mathcal {L}g \label {eq:1C}
 -----------------------------------
 f &= g \label {eq:2A} \\ f' &= g' \label {eq:2B} \\ \mathcal {L}f &= \mathcal {L}g + K \label {eq:2C}
-LaTeX Warning: Reference `eq:1' on page 1 undefined on input line ....
-LaTeX Warning: Reference `eq:2' on page 1 undefined on input line ....
-LaTeX Warning: Reference `eq:1C' on page 1 undefined on input line ....
-LaTeX Warning: Reference `eq:2C' on page 1 undefined on input line ....
 ??????????????? why is the label not resolving?
 -----------------------------------
 A_1 &= N_0 (\lambda ; \Omega ') - \phi ( \lambda ; \Omega ') \\ A_2 &= \phi (\lambda ; \Omega ') \, \phi (\lambda ; \Omega ) \tag *{ALSO (\theequation )} \\ A_3 &= \mathcal {N} (\lambda ; \omega )
@@ -22,17 +16,8 @@ A_1 &= N_0 (\lambda ; \Omega ') - \phi ( \lambda ; \Omega ') \\ A_2 &= \phi (\la
 \split at tag \begin {split} \lvert I_2 \rvert &= \left \lvert \int _{0}^T \psi (t) \left \{ u(a, t) - \int _{\gamma (t)}^a \frac {d\theta }{k} (\theta , t) \int _{a}^\theta c (\xi ) u_t (\xi , t) \,d\xi \right \} dt \right \rvert \\ &\le C_6 \Biggl \lvert \left \lvert f \int _\Omega \left \lvert \widetilde {S}^{-1,0}_{a,-} W_2(\Omega , \Gamma _l) \right \rvert \ \right \rvert \left \lvert \lvert u \rvert \overset {\circ }{\to } W_2^{\widetilde {A}} (\Omega ; \Gamma _r,T) \right \rvert \Biggr \rvert \end {split}
 -----------------------------------
 \raisetag {-10pt} \text {The sign function: \ } \mathcal {S}(x) = \begin {cases} -1 & x < 0 \\ 0 & x = 0 \\ 1 & x > 0 \end {cases}
-)
-Runaway argument?
-\st at rredfalse \ifst at rred \nonumber \else \global \@eqnswtrue \fi \let \ETC.
-! File ended while scanning use of \__math_grab_dollardollar:w.
-<inserted text> 
-                \par 
-<*> \input mathcapture-008.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-008.lvt
-*** (job aborted, no legal \end found)
+??????????????? multline is dying
+-----------------------------------
+\text {First line of a multline} \\ \text {Centered Middle line} \\ \shoveright {\text {A right Middle}} \\ \text {Another centered Middle} \\ \text {Yet another centered Middle} \\ \shoveleft {\text {A left Middle}} \\ \text {Last line of the multline}
+[1
+]





More information about the latex3-commits mailing list.