[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Store grabbed math tokens (becf25fe)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Jan 26 14:08:49 CET 2023
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/becf25fe5b90c9fa57587f823412ac7757d27ef7
>---------------------------------------------------------------
commit becf25fe5b90c9fa57587f823412ac7757d27ef7
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Jan 26 13:00:12 2023 +0000
Store grabbed math tokens
>---------------------------------------------------------------
becf25fe5b90c9fa57587f823412ac7757d27ef7
required/latex-lab/latex-lab-mathcapture.dtx | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/required/latex-lab/latex-lab-mathcapture.dtx b/required/latex-lab/latex-lab-mathcapture.dtx
index 7003c884..27044c07 100644
--- a/required/latex-lab/latex-lab-mathcapture.dtx
+++ b/required/latex-lab/latex-lab-mathcapture.dtx
@@ -117,7 +117,7 @@
% \subsection{File declaration}
% \begin{macrocode}
\ProvidesFile{latex-lab-mathcapture.ltx}
- [2023-01-21 v0.1a Grab all the math(s)]
+ [2023-01-26 v0.1a Grab all the math(s)]
% \end{macrocode}
%
% \begin{macrocode}
@@ -144,6 +144,13 @@
% \end{macrocode}
% \end{variable}
%
+% \begin{variable}{\g_@@_grabbed_env_tl, \g_@@_grabbed_math_tl}
+% \begin{macrocode}
+\tl_new:N \g_@@_grabbed_env_tl
+\tl_new:N \g_@@_grabbed_math_tl
+% \end{macrocode}
+% \end{variable}
+%
% \subsection{Interface commands}
%
% \begin{macro}
@@ -161,7 +168,11 @@
}
\cs_generate_variant:Nn \@@_process:nn { V }
\cs_new_protected:Npn \@@_process_auxi:nn #1#2
- { \@@_process_auxii:nn {#2} {#1} }
+ {
+ \tl_gset:Nn \g_@@_grabbed_env_tl {#2}
+ \tl_gset:Nn \g_@@_grabbed_math_tl {#1}
+ \@@_process_auxii:nn {#2} {#1}
+ }
\cs_new_protected:Npn \@@_process_auxii:nn #1#2 { }
% \end{macrocode}
% \end{macro}
More information about the latex3-commits
mailing list.