-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add pagebreaks to Pandoc #3230
base: main
Are you sure you want to change the base?
Add pagebreaks to Pandoc #3230
Conversation
Added to check that our change in Pandoc that adds page breaks (PR jgm/pandoc#3230) leads to correctly formatted .tex documents.
I wonder this could be implemented using the FORM FEED character for textual output formats. |
This requires an updated version of pandoc-types that introduces PageBreak definition. Not that this initial commit only introduces ODT pagebreaks and distinguishes for it page breaks before, after, or both, the paragraph, as read from the style definition.
Update all writers to take into account page breaks. A straightforwad, far from complete, implementation of page breaks in selected writers. Readers will have to follow in the future as well.
92bb7e5
to
0d43370
Compare
@wilx for the purpose of latex/odt, maybe. I didn't try it. But I think pagebreaks is such a common (and desired) feature that it deserves its own definition for the purpose of other readers/writers. |
@hubertp-lshift I've merged this into the typeclass branch (which will become pandoc 2.0). However, I'm not sure it's right for PageBreak to be an Inline element. It seems more appropriate as a Block. Can you comment on why you chose to make it an Inline? (This may be more natural in ODT, but we should also consider other output formats.) |
I've reverted this. It needs more thought and discussion. |
The place for discussion is probably #1934 |
A first stab at adding pagebreaks to Pandoc. Fully implemented for ODT (reader & writer).
Also added a few other writers, when the underlying format supported them out of the box.
Depends on jgm/pandoc-types#28