Skip to content

Commit

Permalink
use $ in texsource template (for ngpdf/mathjax)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Feb 10, 2024
1 parent 4bfa656 commit a1396b5
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions required/latex-lab/latex-lab-math.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1004,12 +1004,21 @@
% 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}

Expand Down Expand Up @@ -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, %
Expand Down Expand Up @@ -1867,11 +1876,11 @@
% \begin{macrocode}
\tl_gput_right:Nn\@kernel@before@begindocument
{
\bool_set_true:N\l__math_collected_bool
\bool_set_true:N\l_@@_collected_bool
}
\tl_gput_right:Nn\@kernel@after@begindocument
{
\bool_set_false:N\l__math_collected_bool
\bool_set_false:N\l_@@_collected_bool
}
% \end{macrocode}
%
Expand Down

0 comments on commit a1396b5

Please sign in to comment.