latex3 / tagging-project

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

xsavebox package incompatible #325

Open mbertucci47 opened 3 months ago

mbertucci47 commented 3 months ago

The xsavebox package loses spaces at the pdf level and the xlrbox environment produces parent-child warnings if it contains something like a minipage. (I know \newsavebox etc. is not yet supported by the tagging code. xsavebox uses pdf XObjects, not that I know what that means.)

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

\usepackage{xsavebox}

\title{xsavebox tagging test}

\begin{document}

% \savebox,\usebox not supported yet
\newsavebox{\blah}
\savebox{\blah}{content with spaces}
normal text \usebox\blah

% this loses spaces at pdf level
\xsavebox{xblah}{content with spaces}
normal text \xusebox{xblah}

% produces parent-child warnings
\begin{xlrbox}{SavedPar}
\begin{minipage}[b]{1in}
silly boxed paragraph that no one will ever use
\end{minipage}
\end{xlrbox}

% below is not necessary to get warnings
%normal text and \xusebox{SavedPar}

\end{document}
xsavebox_struc
u-fischer commented 3 months ago

The spaces inside are only lost with luatex. Similar problems can be seen if one creates xform objects with l3pdfxform.

FrankMittelbach commented 3 months ago

but doesn't that mean there is a code issue of some sort on our end?

u-fischer commented 3 months ago

in part. We need code to preprocess such boxes and add the spaces. But then naturally xsavebox as to apply it.

FrankMittelbach commented 3 months ago

then I think it should be (also) marked/labeled as "bug"