08-06-2024, 10:49 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2017
Device: android
|
How to add a page break in the editor?
Hello.
Firstly, this SW is phenomenal. Excellent work and features. I made a conversion from PDF to EPUB which went very well. After that I started editing the files to fix the problems and I have pretty much cleaned it up. I also set the appropriate headings and created the TOC. The only thing I have trouble finding is how to set page break before the chapters. Thanks in advance. |
08-06-2024, 11:25 AM | #2 |
Grand Sorcerer
Posts: 12,774
Karma: 75242724
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
The best manner is just to make each chapter it's own file.
Sent from my Pixel 7a using Tapatalk |
Advert | |
|
08-06-2024, 02:30 PM | #3 |
Well trained by Cats
Posts: 30,454
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I am a fan of separate file way.
BUT go over to W3C and look for the series of CSS Styles wait for it....... pagebreak-before, pagebreak-after, pagebreak-inside |
08-06-2024, 02:40 PM | #4 |
Guru
Posts: 752
Karma: 1537886
Join Date: Sep 2013
Device: Kobo Forma
|
I agree with both comments, above. But, for giggles, here's how I format my chapter headings in the stylesheet:
Code:
h1, h2, h3, h4 { /* Basic Chapter Heading Styling */ page-break-before: always; page-break-after: avoid; text-align: center; } |
08-06-2024, 06:07 PM | #5 |
Bibliophagist
Posts: 40,631
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
And sadly, you will run into quite a few renderers that will disregard any or all of the page-break directives. You will also find that the page-break-whatever is deprecated and replaced by break-after, break-before and break-inside which are equally likely to be disregarded.
|
Advert | |
|
08-06-2024, 08:24 PM | #6 |
the rook, bossing Never.
Posts: 12,386
Karma: 92073397
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Calibre can split files at <h whatever> Separate files works best and the only way on some platforms.
|
Tags |
break, edit book |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
page-break-before: always; | avresbo | Kobo Reader | 1 | 03-02-2023 09:30 AM |
Do you use page-break-after and page-break-inside? | fluoresce | ePub | 14 | 05-24-2017 02:57 AM |
How to add a page break before each chapter | barryem | Editor | 13 | 10-03-2016 11:11 PM |
No page break for H2 | RickAltman | Calibre | 2 | 06-25-2012 12:02 PM |
PAGE BREAK | JFS-NMF | Recipes | 0 | 03-04-2011 10:15 AM |