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

Page break element in publisher file #2213

Open
kcrisman opened this issue Jul 18, 2024 · 1 comment
Open

Page break element in publisher file #2213

kcrisman opened this issue Jul 18, 2024 · 1 comment

Comments

@kcrisman
Copy link
Contributor

See this pretext-support thread at the end for discussion of an automatic way to handle desired page breaks that might happen in a pdf conversion. Here is the idea from @Alex-Jordan

In the publisher file, latex element, a pagebreaks element. It has one attribute that is a space-separated list of xml:ids. During assembly, following each element with an xml:I'd from this list, a pi:pagebreak is inserted. And then acted on in latex as a \newpage or something.
This makes it a publisher duty, not author. And you could maintain several different publisher files (letter vs a4? PDF for print vs for screen? etc.) Without worrying about turning certain pagebreaks on and off in the author's source as the publisher tries to make different versions.

@rbeezer commented

I think I'd allow for multiple such elements, maybe a publisher wants one per
chapter, just to stay organized. (Might not fit with Alex's new
publisher-attribute scheme, but not too rough to organize anyway.)

@sean-fitzpatrick
Copy link
Contributor

A related issue that could be handled in the same way: the need to occasionally enlarge a page by one or two lines to avoid a page break that strands a single line of text on the following page.

(In LaTeX one might add a line like \enlargethispage{2\baselineskip})

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