Skip to content

array “math” cells don't work properly #983

@gucci-on-fleek

Description

@gucci-on-fleek

With $/$

Compiling the following document:

\DocumentMetadata{lang=en, tagging=on}
\tagpdfsetup{math/mathml/luamml/load=true}

\documentclass{article}

\begin{document}
    \begin{tabular}{>{$}r<{$}}
        math
    \end{tabular}
\end{document}

with LuaLaTeX (both LaTeX2e <2025-11-01> pre-release-1 (develop 2025-8-21 branch) and LaTeX2e <2025-06-01> patch level 1) gives the following warning:

WARNING: mathml missing for hash C52C89C3D9346F959A8BE919D739B71A
====>grabbed math=macro:->math

With lualatex, the -luamml-mathml.html file contains:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<div>
<h2>\mml 1</h2>
<p>$math$</p>
<p>C52C89C3D9346F959A8BE919D739B71A-INNER</p>

<math xmlns="http://www.w3.org/1998/Math/MathML">
 <mi>𝑚</mi>
 <mi>𝑎</mi>
 <mi>𝑡</mi>
 <mi mathvariant="normal"></mi>
</math>
</div>

</html>

while with lualatex-dev, the -luamml-mathml.html file contains:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

</html>

Related to #237.

With \(/\)

Compiling the following document:

\DocumentMetadata{lang=en, tagging=on}
\tagpdfsetup{math/mathml/luamml/load=true}

\documentclass{article}

\begin{document}
    \begin{tabular}{>{\(}r<{\)}}
        math
    \end{tabular}
\end{document}

with lualatex and lualatex-dev gives the following error:

Runaway argument?
\ignorespaces math \end {tabular} \end {document} 
! File ended while scanning use of \__math_grab_inline:w.
<inserted text> 
                \par 

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: MathMLarea: matharea: tabularstabular and tabbing packagesbugSomething isn't working in code we maintain (directly)fixed in releaseissue is fixed and will be deployed in the next release of package or kernel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions