pandoc icon indicating copy to clipboard operation
pandoc copied to clipboard

Add pagebreaks to Pandoc

Open hubertp-lshift opened this issue 9 years ago • 5 comments

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 https://github.com/jgm/pandoc-types/pull/28

hubertp-lshift avatar Nov 14 '16 11:11 hubertp-lshift

I wonder this could be implemented using the FORM FEED character for textual output formats.

wilx avatar Nov 16 '16 06:11 wilx

@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 avatar Dec 16 '16 14:12 hubertp-lshift

@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.)

jgm avatar Jan 16 '17 11:01 jgm

I've reverted this. It needs more thought and discussion.

jgm avatar Jan 22 '17 09:01 jgm

The place for discussion is probably https://github.com/jgm/pandoc/issues/1934

mb21 avatar Jan 22 '17 11:01 mb21