[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: register math environment for capture (16ab617e)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Jan 21 19:44:13 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/16ab617ef9a52d656cbf73c1d8434da33c0b6d46

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

commit 16ab617ef9a52d656cbf73c1d8434da33c0b6d46
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Jan 21 19:44:13 2023 +0100

    register math environment for capture


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

16ab617ef9a52d656cbf73c1d8434da33c0b6d46
 required/latex-lab/latex-lab-mathcapture.dtx       |  1 +
 .../{mathcapture-010.lvt => mathcapture-015.lvt}   | 22 +++++-----------------
 .../testfiles-mathcapture/mathcapture-015.tlg      |  5 +++--
 3 files changed, 9 insertions(+), 19 deletions(-)

diff --git a/required/latex-lab/latex-lab-mathcapture.dtx b/required/latex-lab/latex-lab-mathcapture.dtx
index ee19f72b..7003c884 100644
--- a/required/latex-lab/latex-lab-mathcapture.dtx
+++ b/required/latex-lab/latex-lab-mathcapture.dtx
@@ -316,6 +316,7 @@
   {
     \math_register_env:n { equation }
     \math_register_env:n { equation* }
+    \math_register_env:n { math }
   }
 %    \end{macrocode}
 % \end{macro}
diff --git a/required/latex-lab/testfiles-mathcapture/mathcapture-010.lvt b/required/latex-lab/testfiles-mathcapture/mathcapture-015.lvt
similarity index 57%
copy from required/latex-lab/testfiles-mathcapture/mathcapture-010.lvt
copy to required/latex-lab/testfiles-mathcapture/mathcapture-015.lvt
index 6651b309..dd6bcc9b 100644
--- a/required/latex-lab/testfiles-mathcapture/mathcapture-010.lvt
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-015.lvt
@@ -1,5 +1,3 @@
-% tikz math
-
 \DocumentMetadata{testphase={phase-II,math}}
 
 \documentclass{article}
@@ -11,7 +9,6 @@
 \debug_on:n { deprecation }
 \ExplSyntaxOff
 
-
 \ExplSyntaxOn
 \math_processor:n
   {
@@ -21,22 +18,13 @@
   }
 \ExplSyntaxOff
 
-\usepackage{tikz-cd}
-
-
-
 \begin{document}
 
 \START
 
+This example test the math environment
+\begin{math} 
+  x^2 + y^2 
+\end{math} 
 
-\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}
+\END
diff --git a/base/testfiles-lthooks/github-0464.tlg b/required/latex-lab/testfiles-mathcapture/mathcapture-015.tlg
similarity index 62%
copy from base/testfiles-lthooks/github-0464.tlg
copy to required/latex-lab/testfiles-mathcapture/mathcapture-015.tlg
index fd6372fe..61a0cc91 100644
--- a/base/testfiles-lthooks/github-0464.tlg
+++ b/required/latex-lab/testfiles-mathcapture/mathcapture-015.tlg
@@ -1,4 +1,5 @@
 This is a generated file for the l3build validation system.
 Don't change this file in any respect.
-(testA.tex)
-After "testA.tex"
+-----------------------------------
+Math env math
+x^2 + y^2





More information about the latex3-commits mailing list.