You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
duplicateThis issue or pull request already existsfeature requestNew feature or requestlayoutRelated to the layout category, which is about composing, positioning, etc.
Using the pagebreak function with the to argument will sometimes generate pages. These pages are affected by enclosing set rules (e.g. adding header and footer), but there's no way that I could find to apply rules just to those generated pages.
To fix this, I propose a new argument to pagebreak, generate-pages, which is called to create the pages inserted for even-odd alignment purposes. The default value would be () => page[].
Alternative solutions:
A method on location to check if the page the location is in was generated.
The same, but for checking if it was blank. This one would be more generally applicable, but it might be hard to define "blank" in a useful way.
Use Case
e.g.
remove header and footer from inserted pages to leave them blank
I would add that I think we should instead have a new method on location to determine whether the page is part of a "jump", allowing this feature to be done solely using a context on the header and footer and background for all of the aforementioned features. Otherwise, I think this makes a lot of sense!
duplicateThis issue or pull request already existsfeature requestNew feature or requestlayoutRelated to the layout category, which is about composing, positioning, etc.
Activity
Dherse commentedon Jun 23, 2024
I would add that I think we should instead have a new method on
locationto determine whether the page is part of a "jump", allowing this feature to be done solely using acontexton the header and footer and background for all of the aforementioned features. Otherwise, I think this makes a lot of sense!jamesrswift commentedon Jun 24, 2024
Could
pagebreakbe merged into 'page' with aweak: falseparam? Then redefinepagebreakusingpage.withfreundTech commentedon Jun 24, 2024
Related: #2722
laurmaedje commentedon Jul 16, 2024
While #2722 is a bit tighter in scope, the intent is the same, so a well-designed solution covers both. So I'll close this as a duplicate.