latex3 / tagpdf

Tagging support code for LaTeX
60 stars 7 forks source link

tcolorbox and paratagging with pdflatex #44

Open u-fischer opened 2 years ago

u-fischer commented 2 years ago

As a reminder: marks are lost in tcolorbox and so paratagging with pdflatex doesn't work yet in breakable tcolorboxes if a paragraph splits over pages.

\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{uncompress,
testphase=tagpdf,
debug={para=show,
log=v,uncompress},
uncompress,
activate=tagging,
}

\documentclass[]{book}
\usepackage{tcolorbox,lipsum}
\tcbuselibrary{breakable,skins}

\begin{document}

\begin{tcolorbox}[breakable,enhanced,frame hidden, interior hidden]
\lipsum[1-3]

%\pagebreak
\lipsum[1-3]
\end{tcolorbox}

%\ShowTagging{mc-marks / show }

\end{document}
FrankMittelbach commented 2 years ago

maybe that issue should be reduced to basic LaTeX and then passed on to the tcolorbox maintainer, e.g., by just sticking in a \typout into the hooks.

u-fischer commented 2 years ago

It should certainly be reduced and analysed more, but for now I only added a reminder. (tcolorbox looses also normal marks).