[latex3-commits] [latex3/latex2e] latex-lab/uf-review-05: use $ in texsource template (for ngpdf/mathjax) (a1396b55)

github at latex-project.org github at latex-project.org
Sat Feb 10 17:22:03 CET 2024


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

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

commit a1396b5567967ea5dce274bc252ea1c95c28d0e2
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Feb 10 17:22:03 2024 +0100

    use $ in texsource template (for ngpdf/mathjax)


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

a1396b5567967ea5dce274bc252ea1c95c28d0e2
 required/latex-lab/latex-lab-math.dtx | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 58a9e906..e7cba724 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -1004,11 +1004,20 @@
 % The default text used as texsource
 %    \begin{macrocode}
 \tl_new:N\l_@@_texsource_template_tl
+\tl_const:Nn\c_@@_inline_env_tl {math}
 \tl_set:Nn \l_@@_texsource_template_tl
    {    
+     \tl_if_eq:NNTF\g_@@_grabbed_env_tl\c_@@_inline_env_tl
+      {
+       $
+         \exp_not:V\g_@@_grabbed_math_tl
+       $
+      }
+      {
        \exp_not:N\begin{\g_@@_grabbed_env_tl}
        \exp_not:V\g_@@_grabbed_math_tl
        \exp_not:N\end{\g_@@_grabbed_env_tl}
+      } 
    } 
 %    \end{macrocode}
 % \end{variable}
@@ -1179,7 +1188,7 @@
        AFref       = 
         \bool_if:NT\l__tag_math_mathml_AF_bool
          {
-           \cs_if_exist_use:c {g__math_mathml_ \l_@@_content_hash_tl _tl}
+           \cs_if_exist_use:c {g_@@_mathml_ \l_@@_content_hash_tl _tl}
          },
        texsource   = \l_@@_content_AF_source_tmpa_tl, % should be after mathml AF!
        title-o     = \g_@@_grabbed_env_tl,    %
@@ -1867,11 +1876,11 @@
 %    \begin{macrocode}
 \tl_gput_right:Nn\@kernel at before@begindocument
   {
-    \bool_set_true:N\l__math_collected_bool
+    \bool_set_true:N\l_@@_collected_bool
   }
 \tl_gput_right:Nn\@kernel at after@begindocument
  {
-   \bool_set_false:N\l__math_collected_bool
+   \bool_set_false:N\l_@@_collected_bool
  }
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.