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

Gregoritex's lua callbacks ruin fancyhdr processing #1603

Open
pietvo opened this issue Jan 3, 2025 · 1 comment
Open

Gregoritex's lua callbacks ruin fancyhdr processing #1603

pietvo opened this issue Jan 3, 2025 · 1 comment

Comments

@pietvo
Copy link

pietvo commented Jan 3, 2025

When you add a multiline header to a document, and the pagebreak is taken when a Gregorio score is active, the Lua callbacks post_linebreak and disable_hyphenation ruin the header (same with footer). So gregoriotex should reset these callbacks during header and footer processing and reinstall them after that. (Only if a score is being processed). Fancyhdr version 4.5 and later have hooks to make this possible.

gregoriotex 2021/03/13 v6.0.0
LuaHBTeX, Version 1.18.0 (TeX Live 2024) (format=lualatex 2024.12.27)

@pietvo
Copy link
Author

pietvo commented Jan 3, 2025

gregoriotest.pdf
gregoriotest.zip

On the first page the header is cut off and not hyphenated. On the following pages the header is correct, because the page break is outside of the score.

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

1 participant