Change to output routine code breaks latex afterpage package

David Carlisle d.p.carlisle at gmail.com
Sun Mar 24 20:47:14 CET 2024


It appears that the change


https://github.com/TeX-Live/texlive-source/commit/d17e5e0968269f781f3fe972b705fff43ea2e139

avoid crashing on devious uses of \output and write braces, from DRF …

breaks the afterpage package that has been part of the core latex2e release
since the start.

see

https://github.com/latex3/latex2e/issues/1311

Can this be reverted/adjusted so the package still works?

\documentclass{report}
\usepackage{afterpage}
\begin{document}
Page \thepage
\afterpage{Hi!}
\newpage
Page \thepage
\newpage
Page \thepage
\end{document}

produces 3 pages  with Hi on page 2 in all previous releases, but produces
4 pages with Hi on page 4 in tl2024

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20240324/fc4a8810/attachment.htm>


More information about the tex-live mailing list.