[latex3-commits] [latex3/latex2e] UF-latex-lab-math-options: correct alt attribute if luamml is not used (95c4443b2)
github at latex-project.org
github at latex-project.org
Fri Oct 25 00:29:53 CEST 2024
Repository : https://github.com/latex3/latex2e
On branch : UF-latex-lab-math-options
Link : https://github.com/latex3/latex2e/commit/95c4443b25e37607cd97e9aa5f9b369bd927bf01
>---------------------------------------------------------------
commit 95c4443b25e37607cd97e9aa5f9b369bd927bf01
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Fri Oct 25 00:29:53 2024 +0200
correct alt attribute if luamml is not used
>---------------------------------------------------------------
95c4443b25e37607cd97e9aa5f9b369bd927bf01
required/latex-lab/latex-lab-math.dtx | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/required/latex-lab/latex-lab-math.dtx b/required/latex-lab/latex-lab-math.dtx
index 6f3736193..9a2133ed9 100644
--- a/required/latex-lab/latex-lab-math.dtx
+++ b/required/latex-lab/latex-lab-math.dtx
@@ -900,7 +900,7 @@
}
% \end{macrocode}
% \begin{macrocode}
-\sys_if_engine_luatex:T
+\sys_if_engine_luatex:TF
{
% \end{macrocode}
% Temporary (!) fixes for endarray
@@ -1038,6 +1038,9 @@
\@@_provide_luamml_commands:
}
}
+ {
+ \@@_provide_luamml_commands:
+ }
\msg_new:nnn { tag }{ luamml-status }
{
luamml~has~been~#1~and~will~#2~an~MathML~file.
@@ -1123,7 +1126,6 @@
{\AddToHook{begindocument/end}{\luamml_structelem:}},
% \end{macrocode}
%
-% \end{macrocode}
% \begin{macrocode}
math/mathml/luamml .choice: ,
math/mathml/luamml/true .code:n = {\tl_gset:Nn \g__tag_math_luamml_tl{1}},
@@ -1551,9 +1553,19 @@
\bool_if:NTF\l__tag_math_texsource_AF_bool
{ \tl_set_eq:NN \l_@@_content_AF_source_tmpa_tl \l_@@_content_AF_source_tl }
{ \tl_clear:N \l_@@_content_AF_source_tmpa_tl }
+ \tl_if_eq:NnTF\g_@@_grabbed_env_tl {math}
+ {
+ \tl_set:Nn\l_@@_attribute_class_tl{inline}
+ }
+ {
+ \tl_set:Nn\l_@@_attribute_class_tl{display}
+ }
+ \bool_if:NF\l__tag_math_alt_bool
+ { \tl_set:Nn \l_@@_content_alt_tl{} }
\tag_struct_begin:n
{
tag=Formula,
+ attribute-class=\l_@@_attribute_class_tl,
texsource = \l_@@_content_AF_source_tmpa_tl,
title-o = \g_@@_grabbed_env_tl,
actualtext = \l_@@_content_actual_tl,
More information about the latex3-commits
mailing list.