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 support for pagebreaks for LaTeX input and HTML output. #805
base: main
Are you sure you want to change the base?
Conversation
Depends on 4aa6b78bb83f85714055fafd72240dec79a95a03 in pandoc-types.
I suspect that build error is because of the above-mentioned dependency. |
This is a start, but really the new element needs to be supported in all of the writers, and possibly in some auxiliary functions as well. (Otherwise we'll get compiler warnings about non-exhaustive pattern matches, and runtime errors if people try to use a writer that doesn't support the new element on a document that has it.) You're seeing compiler warnings when you compile the code with your patch, right? |
Ah, yes. I'll research what constitutes a page break for the other outputs, add that, and resubmit. |
For ConTeXt, page breaks are introduced by |
I am currently using \clearpage and \cleardoublepage which are the appropriate LaTeX Commands. If Pandoc has a feature like this, IMHO it should be marked as such. In particular it should have the option to break to the next odd page. |
+++ Bernhard Weichel [Apr 06 13 07:03 ]:
Are there any cases where you need "break to next odd page" other than |
yes there are. For example if I am writing a quality manual which includes forms. If such a form has two pages, I want to start it at an odd page, such if someone prints the document, he gets the form on one sheet of paper. Another uscase is, that if i deliberately want that a diagram starts on the left page such that the explanation comes to the right page. In this case, I want to break to the next even page. |
On Sat, 6 Apr 2013, Bernhard Weichel wrote:
I added "NewPage" to Pandoc-types. Perhaps I should add "ClearPage" and David Griffith |
+++ David Griffith [Apr 07 13 16:00 ]:
LaTeX has I'm a bit concerned about the idea that pandoc should support all If we were to attempt to support these fine-grained options, they
I'm not sure. |
On Sun, 7 Apr 2013, John MacFarlane wrote:
Funny that you mention that all formals "don't provide the kind of
and a few other esoteric options that I am not mentioning here. Clearly, it does not make sense for pandoc to support all of these.
For the ConTeXt page-break model, a good approximation will be
Another option, which I have suggested in the past for bold and emphasis,
and let the user configure what it does. In ConTeXt, this means that the
but the user can override it, if needed. The drawback of such a proposal Aditya |
How are these pagebreakes specified in the markdown input? |
No syntax has been decided on as yet. +++ Bernhard Weichel [May 10 13 02:13 ]:
|
Representing page breaks in Markdown: the simplest idea seems to be to use the ASCII character 0x0C (NP - new page; or FF - form feed). This is the standard tty directive for new page, and is understood and represented comprehensibly (if not intuitively) by the text editors I checked. The biggest downside is that entering and displaying this character does not seem to be supported by most browser text input areas (neither Webkit nor Gecko do, except with Javascript support). But this does not seem crippling if it is not meant to be "frontline" markup and the alternatives will be intrusively nonconservative. |
bump |
See #3230 |
This patch requires a new type in pandoc-types. I have submitted a pull request there too.
Depends on
DavidGriffith/pandoc-types@4aa6b78 in pandoc-types