[latex3-commits] [git/LaTeX3-latex3-latex2e] everymath: Process content of gather, etc. (be77e849)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Jan 5 20:32:38 CET 2023


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

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

commit be77e84906c2f855a25c4d738c76e74b849e777e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Jan 5 19:32:38 2023 +0000

    Process content of gather, etc.


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

be77e84906c2f855a25c4d738c76e74b849e777e
 required/latex-lab/latex-lab-mathcapture.dtx               | 14 ++++++++++----
 .../latex-lab/testfiles-mathcapture/mathcapture-002.tlg    |  4 ++++
 .../latex-lab/testfiles-mathcapture/mathcapture-006.tlg    |  2 ++
 3 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/required/latex-lab/latex-lab-mathcapture.dtx b/required/latex-lab/latex-lab-mathcapture.dtx
index c3d41a6c..7eae1d8c 100644
--- a/required/latex-lab/latex-lab-mathcapture.dtx
+++ b/required/latex-lab/latex-lab-mathcapture.dtx
@@ -316,10 +316,10 @@
   }
 %    \end{macrocode}
 %
-% \begin{macro}{\@@_measure@:n}
-% \begin{macro}{\measure@}
-%   The \pkg{amsmath} environments use a common internal command that is a
-%   useful place to pick up the content.
+% \begin{macro}{\@@_measure@:n, \@@_gather@:n}
+% \begin{macro}{\measure@, \gather@}
+%   The \pkg{amsmath} environments use a few common internal commands that are
+%   useful places to pick up the content.
 %    \begin{macrocode}
 \tl_gput_right:Nn \@kernel at before@begindocument
   {
@@ -329,6 +329,12 @@
         \@@_process:n {#1}
         \@@_measure@:n {#1}
       }
+    \cs_new_eq:NN \@@_gather@:n \gather@
+    \cs_gset_protected:Npn \gather@ #1
+      {
+        \@@_process:n {#1}
+        \@@_gather@:n {#1}
+      }
   }
 %    \end{macrocode}
 % \end{macro}
diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-002.tlg b/required/latex-lab/testfiles-mathcapture/mathcapture-002.tlg
index 8b497900..0b7f3223 100644
--- a/required/latex-lab/testfiles-mathcapture/mathcapture-002.tlg
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-002.tlg
@@ -7,8 +7,12 @@ Definitely broken because it should not capture math!
 (a+b)^2 = a^2+2ab+b^2
 -----------------------------------
 \sin ^2\eta +\cos ^2\eta = 1
+-----------------------------------
+(a + b)^2 = a^2 + 2ab + b^2 \\ (a + b) \cdot (a - b) = a^2 - b^2
 ??????????????????????? nothing else shows
 -----------------------------------
+D(a,r) \equiv \{ z \in \mathbf {C} \colon |z - a| < r \} \notag \\ \operatorname {seg} (a, r) \equiv \{ z \in \mathbf {C} \colon \Im z < \Im a, \ |z - a| < r \} \\ C (E, \theta , r) \equiv \bigcup _{e \in E} c (e, \theta , r)
+-----------------------------------
 (a + b)^3 &= (a + b) (a + b)^2 \\ &= (a + b)(a^2 + 2ab + b^2) \\ &= a^3 + 3a^2b + 3ab^2 + b^3
 -----------------------------------
 x^2 + y^2 & = 1 \\ x & = \sqrt {1-y^2}
diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-006.tlg b/required/latex-lab/testfiles-mathcapture/mathcapture-006.tlg
index 3f582ce2..8b157f74 100644
--- a/required/latex-lab/testfiles-mathcapture/mathcapture-006.tlg
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-006.tlg
@@ -1,5 +1,7 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
+-----------------------------------
+\begin {xgathered} x_0=1,\quad x_1=2 \\ x_3=3 \end {xgathered}
 ????????????????????? output missing for 11-2-21
 -----------------------------------
 \left | \begin {multlined}[c] (a+b)^2 = \\ (a+b)(a+b) \\ = a^2 + 2ab + b^2 \end {multlined} \right |





More information about the latex3-commits mailing list.