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

[help wanted] How to create a page break? #15

Closed
aahnik opened this issue Oct 12, 2020 · 2 comments
Closed

[help wanted] How to create a page break? #15

aahnik opened this issue Oct 12, 2020 · 2 comments

Comments

@aahnik
Copy link

aahnik commented Oct 12, 2020

When there is an h1 tag, a new chapter starts. And it always starts from a new page.

But there is certain stuff, which I want to start from a new page.

I read and tried multiple methods, like

  1. This stack overflow answer Pandoc EPUB Page Break
  2. This open issue in Pandoc Page-break in other output formats than LaTeX #1934

Different people have suggested different methods. But nothing seems to be working in markdown --> epub.

I want to create a new page, for certain pages, without using an h1 tag.
That means I don't want to make it a chapter. Just a page.

Any help would be much appreciated!

@wikiti
Copy link
Owner

wikiti commented Oct 17, 2020

Hi @aahnik ! I'll try my best to help you.

I've tried to use the following HTML block on a simple MD chapter, and it does work on Okular viewer:

Paragraph before page break.

<div style="page-break-before: always;"></div>

Paragraph after page break.

Perhaps your current ebook viewer does not handle those kind of blocks?

@aahnik
Copy link
Author

aahnik commented Oct 19, 2020

This technique may work in some epub readers.

But unfortunately did not work in the readers I use

It worked in okular as you said.

Is there any universal way ?

@aahnik aahnik closed this as completed Nov 1, 2020
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