latex3 / tagging-project

Issues related to the tagging project
https://latex3.github.io/tagging-project/
LaTeX Project Public License v1.3c
30 stars 13 forks source link

colortbl breaks tagging if tables are nested #379

Open u-fischer opened 1 month ago

u-fischer commented 1 month ago
\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    testphase={phase-III,table},
  }

\documentclass{article}
\usepackage{colortbl}
\begin{document}
\begin{tabular}{lll}
a& b&c\\
\begin{tabular}{cc}a&b\end{tabular}\\
a& b & 
\end{tabular}
\end{document}

gives parent-child warnings and a broken structure:

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.
u-fischer commented 1 month ago

tagging is correct if one comment the \newtoks\everycr in colortbl (but then naturally colors are wrong).