latex3 / tagpdf

Tagging support code for LaTeX
59 stars 7 forks source link

Warning when nesting a verbatim inside a minipage #76

Closed jfbu closed 8 months ago

jfbu commented 1 year ago
\DocumentMetadata{testphase={phase-III}}
\documentclass{article}
\begin{document}
\noindent\begin{minipage}{0.5\linewidth}
\begin{verbatim}
some stuff
\end{verbatim}
\end{minipage}
\end{document}

raises with pdflatex-dev:

(./test_tagging_minipage.aux)

Package tagpdf Warning: Rule 'P/' --> 'text-unit/user' is not allowed (struct
(tagpdf)                3, /text --> struct 4)

Package tagpdf Warning: Rule 'P/' --> 'verbatim/user' is not allowed (struct
(tagpdf)                4, /text-unit --> struct 5)

Package tagpdf Warning: nested marked content found - mcid 1

Package tagpdf Warning: there is no mc to end at 2

test_tagging_minipage.log

(obtained after 3 or 4 passes)

Similar with lualatex-dev apart from mcid stuff.

u-fischer commented 1 year ago

that will be resolved once the minipage code is merged (it is currently only in the tag-graphics branch.). Should happen this or next week.