[latex3-commits] [git/LaTeX3-latex3-latex2e] everymath: Suppress math grabbing for tabular env. (8ca1e3b8)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Dec 9 16:30:46 CET 2022


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

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

commit 8ca1e3b8c4adf38f7da15990abcb4bcf18b9bfd3
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Dec 9 15:30:46 2022 +0000

    Suppress math grabbing for tabular env.


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

8ca1e3b8c4adf38f7da15990abcb4bcf18b9bfd3
 required/latex-lab/latex-lab-everymath.dtx     | 10 ++++++++++
 required/latex-lab/testfiles/everymath-001.lvt |  4 ++++
 2 files changed, 14 insertions(+)

diff --git a/required/latex-lab/latex-lab-everymath.dtx b/required/latex-lab/latex-lab-everymath.dtx
index b7e7cf94..61fedfc0 100644
--- a/required/latex-lab/latex-lab-everymath.dtx
+++ b/required/latex-lab/latex-lab-everymath.dtx
@@ -315,6 +315,16 @@
 % \end{macro}
 % \end{macro}
 %
+% Places where math mode is (ab)used.
+%    \begin{macrocode}
+\clist_map_inline:nn
+  { tabular }
+  {
+    \AddToHook{ env / #1 / begin }
+      { \bool_set_true:N \l_@@_inner_bool }
+  }
+%    \end{macrocode}
+%
 %    \begin{macrocode}
 \ExplSyntaxOff
 %    \end{macrocode}
diff --git a/required/latex-lab/testfiles/everymath-001.lvt b/required/latex-lab/testfiles/everymath-001.lvt
index f6b3b3bd..b0d96c0d 100644
--- a/required/latex-lab/testfiles/everymath-001.lvt
+++ b/required/latex-lab/testfiles/everymath-001.lvt
@@ -44,4 +44,8 @@ So
 
 Try $g_{\hbox{foo$b$}}$
 
+\begin{tabular}{lcr} 
+  a & b & c \\
+\end{tabular}
+
 \END





More information about the latex3-commits mailing list.