Skip to content

optional argument in align breaks tagging structure #772

@u-fischer

Description

@u-fischer
\DocumentMetadata{
 lang=en,
 testphase={phase-III,math,table,title}}

\documentclass{article}
\begin{document}
\begin{align*}
x& \begin{tabular}{c}
 $a$ 
\end{tabular} 
\\[2ex]
\end{align*}
\end{document}

gives a warning

Package tagpdf Warning: There are still open structures on the stack!
(tagpdf)                The stack contains
(tagpdf)                {Document}{Document},{Root}{StructTreeRoot}.
(tagpdf)                The structures are automatically closed,
(tagpdf)                but their nesting can be wrong.

The optional argument [2ex] triggers a subpart:

====>first-result=macro:->x& \begin {tabular}{c} $a$ \end {tabular} 
====>first-tmpmathcontent=macro:->[2ex]
====>formula has subparts
====>first-result=macro:->a
====>first-tmpmathcontent=macro:->
====>formula has no subparts

Without the optional argument the structure is correct. It is also correct if the inner tabular doesn't contain math.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: matharea: tabularstabular and tabbing packagesfixed 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