From 0b3d3d07acc2dd155a37571ab6e9936d6264f3fe Mon Sep 17 00:00:00 2001 From: Joseph Wright Date: Mon, 12 Aug 2024 17:06:56 +0100 Subject: [PATCH] Enable math grabbing in tabulars Currently done by adding directly to an internal: needs a proper interface. --- required/latex-lab/latex-lab-math.dtx | 4 ++++ required/latex-lab/testfiles-math/mathcapture-019.lvt | 1 - required/latex-lab/testfiles-math/mathcapture-019.tlg | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx index a0ad418b7..dffa51b67 100644 --- a/required/latex-lab/latex-lab-math.dtx +++ b/required/latex-lab/latex-lab-math.dtx @@ -2034,6 +2034,10 @@ \bool_set_false:N \l_@@_collected_bool \col@sep\tabcolsep \let\d@llarbegin\begingroup \let\d@llarend\endgroup +% \end{macrocode} +% A proper switching mechanism is needed: for the present, do directly. +% \begin{macrocode} + \cs_set_protected:Npn \@@_grab_dollar:w { \@@_grab_dollar_loop: } \@tabarray} } % \end{macrocode} diff --git a/required/latex-lab/testfiles-math/mathcapture-019.lvt b/required/latex-lab/testfiles-math/mathcapture-019.lvt index f5e3a1a5a..3719cd59b 100644 --- a/required/latex-lab/testfiles-math/mathcapture-019.lvt +++ b/required/latex-lab/testfiles-math/mathcapture-019.lvt @@ -15,7 +15,6 @@ \ExplSyntaxOn -\cs_gset_protected:Npn \__math_grab_dollar:w { \__math_grab_dollar_loop: } \math_processor:n { \TYPE {-----------------------------------} diff --git a/required/latex-lab/testfiles-math/mathcapture-019.tlg b/required/latex-lab/testfiles-math/mathcapture-019.tlg index 47459e29a..e2e2a0bdb 100644 --- a/required/latex-lab/testfiles-math/mathcapture-019.tlg +++ b/required/latex-lab/testfiles-math/mathcapture-019.tlg @@ -2,8 +2,8 @@ This is a generated file for the l3build validation system. Don't change this file in any respect. ----------------------------------- Math env math -y=mx+c -====>first-result=macro:->y=mx+c +y = mx + c +====>first-result=macro:->y = mx + c ====>first-tmpmathcontent=macro:-> ====>formula has no subparts -----------------------------------