[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: add math disable/enable command (749cfefa)

github at latex-project.org github at latex-project.org
Sat Nov 11 16:49:07 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : latex-lab/uf-review-05
Link       : https://github.com/latex3/latex2e/commit/749cfefaf75d177d6f519aa77766c2e7b3aa8af0

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

commit 749cfefaf75d177d6f519aa77766c2e7b3aa8af0
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Nov 11 16:49:07 2023 +0100

    add math disable/enable command


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

749cfefaf75d177d6f519aa77766c2e7b3aa8af0
 required/latex-lab/latex-lab-math.dtx | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index ec1e2486..2323d801 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -247,6 +247,26 @@
 %    \end{macrocode}
 % \end{variable}
 %
+% It must be possible to suppress both the collecting and the tagging of math. 
+% Currently both tasks are still connected and controlled by the boolean
+% \cs{l_@@_collected_bool} so we define only commands for the tagging case.
+% As these will probably be needed in more than one place in the
+% testphase we check for existence. 
+% TODO: At the end they should move to tagpdf.
+%
+% \begin{macro}{\__tag_math_disable:,\__tag_math_enable:}
+%    \begin{macrocode}
+\cs_if_free:NT \__tag_math_disable:
+ {
+   \cs_new_protected:Npn \__tag_math_disable: 
+     { \bool_set_true:N \l_@@_collected_bool }
+   \cs_new_protected:Npn \__tag_math_enable: 
+     { \bool_set_false:N \l_@@_collected_bool }  
+ }
+%    \end{macrocode}
+% \end{macro}
+%
+%
 %  \car{Change first tl name below: `env' $=>$ `info'?\\
 %        Or do we need an extra storage tl?}
 %





More information about the latex3-commits mailing list.