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

parallel package environment cannot contain footnotes #471

Open mbertucci47 opened 1 month ago

mbertucci47 commented 1 month ago

The Parallel environment of the parallel package cannot contain footnotes with the tagging code.

\DocumentMetadata
  {
    lang=en-US,
    pdfversion=2.0,
    pdfstandard=ua-2,
    testphase={phase-III,math,title,table,firstaid}
  }
\documentclass{article}

\usepackage{parallel}
\usepackage[nopar]{kantlipsum}

\begin{document}

\begin{Parallel}{.45\linewidth}{.45\linewidth}
\ParallelLText{ \kant[1] }
\ParallelRText{ \kant[2]\footnote{first footnote} }
\ParallelPar
\ParallelLText{ \kant[3]\footnote{second footnote} }
\ParallelRText{ \kant[4] }
\end{Parallel}

\end{document}

errors with

! Package tagpdf Error: The number of automatic begin (9) and end (5)
(tagpdf)                text-unit para hooks differ!
FrankMittelbach commented 1 month ago

If it otherwise tags correctly then I guess it should be marked partially compatible. @u-fischer thoughts?

u-fischer commented 1 month ago

It errors for me also without the footnotes and the paragraphs are nested.

mbertucci47 commented 1 month ago

Hmm I see. If you remove [nopar] from kantlipsum the error goes away without the footnotes and the tagging looks okay. But if you replace \kant[n] with normal text it errors. So currently-incompatible I guess?