Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

copying with \leaders confuses mcid count #87

Open
u-fischer opened this issue Nov 20, 2023 · 0 comments
Open

copying with \leaders confuses mcid count #87

u-fischer opened this issue Nov 20, 2023 · 0 comments

Comments

@u-fischer
Copy link
Member

u-fischer commented Nov 20, 2023

Copying a box with leaders avoids multiple labels (which is good) but gives the wrong mcids with pdflatex

\DocumentMetadata{uncompress,testphase=phase-II}
\documentclass{article}
   
\begin{document}
\setbox0=\vbox{some text\par}%
\setbox2=\hbox{\leaders\copy0\hskip\wd0} 

\copy0 \copy2 \copy2

more text
\end{document}

The two copies are marked as MCID 1 and MCID 2. The structures point to MCID 0 and 3 (ok), but the parenttree contains only one structure

<< /Nums [0 [ 11 0 R ]
]

It would be better if the copies where marked as artifact.

Should be research together with box saving/restoring.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant