Skip to content

smallmatrix luamml issue #875

Open
Open
@mbertucci47

Description

@mbertucci47

The mathml for amsmath's smallmatrix seems fine to me but the log contains

==============...e/2025/texmf-dist/tex/lualatex/luamml/luamml-amsmath.lua:83: no
 string to print
stack traceback:
	[C]: in function 'texio.write_nl'
	...e/2025/texmf-dist/tex/lualatex/luamml/luamml-amsmath.lua:83: in upvalue 'deb
ug_mtable'
	...e/2025/texmf-dist/tex/lualatex/luamml/luamml-amsmath.lua:126: in function <.
..e/2025/texmf-dist/tex/lualatex/luamml/luamml-amsmath.lua:117>.
\__socket_tagsupport/math/luamml/mtable/smallmatrix/save_plug_luamml:w ...
                                                  
l.27 \]
       
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.

for the example

\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    tagging=on,
  }
\documentclass{article}

\usepackage{unicode-math}

\begin{document}

\[
\begin{matrix}
a & b \\
c & d
\end{matrix}
\]

\[
\begin{smallmatrix}
a & b \\
c & d
\end{smallmatrix}
\]

\end{document}

By the way, why are the amsmath patches in two locations? They are in both luamml-patches-amsmath.sty and latex-lab-amsmath.ltx. I see latex3/luamml#7 but both files still exist and are still loaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: MathMLbugSomething 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