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

_lastpage showing as 1 in latest stable #561

Closed
grigorem opened this issue Feb 12, 2024 · 2 comments
Closed

_lastpage showing as 1 in latest stable #561

grigorem opened this issue Feb 12, 2024 · 2 comments

Comments

@grigorem
Copy link

I recently updated to version 4.16.0 and noticed that _lastpage is not working anymore.
Version 4.14.0 seems to be working correctly, getting the right _lastpage value.

I normally use runs=2 in the config file, but I also tested it as a command line argument. Same result.

I can still see the <lastpage> set correctly in the publisher-aux.xml while the PDF is showing 1, and from the log I see it is run twice.

Has anything changed regarding this or it's unexpected behaviour?

Thank you! 🙇‍♂️

@pgundlach
Copy link
Member

pgundlach commented Feb 12, 2024

I can confirm that there is a problem with $_lastpage. The aux file always has <lastpage page='1' /> which seems to contradict your observation. Now that I have a two page example, I see that the last page entry in the aux file is correct.

Thank you very much for the report!

pgundlach added a commit that referenced this issue Feb 12, 2024
@pgundlach
Copy link
Member

I have updated the stable and the unstable downloads. Thanks again for the report!

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

No branches or pull requests

2 participants