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

\afterpage from afterpage package broken with recent distribution #1311

Closed
Rimole opened this issue Mar 24, 2024 · 3 comments
Closed

\afterpage from afterpage package broken with recent distribution #1311

Rimole opened this issue Mar 24, 2024 · 3 comments

Comments

@Rimole
Copy link

Rimole commented Mar 24, 2024

Brief outline of the bug

\afterpage did work as expected with TeX Live 2023 pdflatex
pdfTeX, Version 3.141592653-2.6-1.40.25 (TeX Live 2023) (preloaded format=pdflatex 2024.3.9)
L3 programming layer <2024-02-20>

but issues its argument somewhere later when used with TeX Live 2024 pdflatex
pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=pdflatex 2024.3.23)
L3 programming layer <2024-03-14>

Minimal example showing the bug

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

With TeX Live 2023 a "Hi!" was printed on the second page. With TeX Live 2024 and its updates the "Hi!" appears at page 4 (four). That is after the first page, but can I get the old behaviour back, where "after" meant "next", please?

Log file (required) and possibly PDF file

2023afterpagetest.log
2023afterpagetest.pdf
2024afterpagetest.log
2024afterpagetest.pdf

@davidcarlisle
Copy link
Member

Thank you for your report and clear test file.

This is not due to a change in latex but to a change in the tex system, we are investigating if the change was intended.

https://tug.org/pipermail/tex-live/2024-March/050290.html

@FrankMittelbach
Copy link
Member

We have reported the bug in the engine upstream and it got fixed there. This morning my installation had new versions for pdftex and xetex that do no longer exhibit the bug. So please update your installation and check if that resolves the issue for you as well.

@Rimole
Copy link
Author

Rimole commented Mar 27, 2024

The update reached "my" update server, the test document compiles without issue and the original document, where I noticed the problem, now also results in the same pdf as when compiled under TL23. Thank you for having this fixed so fast! [This issue can be closed now.]

@Rimole Rimole closed this as completed Mar 27, 2024
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

3 participants