![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
|
How to add a page break before each chapter
I'm reading an epub that has each chapter starting right at the end of the previous chapter with no page break. Not a big thing. I can live with it if need be. But I wonder if there's some fairly easy way in Calibre to add page breaks at the start of a chapter.
In the editor I did try adding a <br> tag but that didn't seem to do anything. I don't know a lot about HTML and less about CSS. I do understand a few of the basics but even most of the basics aren't clear to me. I don't do enough editing of books to justify learning CSS. I'm 75 and learning new things doesn't come easy anymore. Anyway, if anyone can tell me a simple way to do this I'd appreciate it. And if anyone tells me to learn CSS I won't get mad but I probably won't do it. I know when I was answering a question like this in a forum about programming in my younger days that would have been my answer. ![]() Any help will be appreciated. Any suggestions that I learn CSS will be ignored gracefully. ![]() Barry |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,270
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Split each chapter into a separate file.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
|
I looked for a way to do that but I didn't see one. Where do I find that option?
Barry |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,270
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Ugh.. I don't have easy access to calibre right now (my PC is dead and I just sneak onto my wife's PC when I can).
See https://manual.calibre-ebook.com/edi...ing-html-files |
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,882
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
But it may be simpler if all you want is a new page page-break-before: always In the CSS style for the chapter title (assumes it has its own class) |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
|
I just found where to do that with the scissor shaped icon at the bottom of the right panel. That seemed to be working okay until near the middle of the book I came to a chapter where the chapter number was at the end of the file and the chapter name was at the beginning of the next file. Normally the chapter name directly follows the chapter number, on the next line.
The text of the book is divided into (I think) two files. There are five files altogether but the text is in those two files. The 5 are HTML files and then there are CSS files in addition. I'm guessing this is just a badly formatted file and maybe I'll just leave it be. I don't think I know what I'm doing. Thanks for the suggestion. Barry |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
|
I'll look at adding that line to the style sheet.
Thanks, Barry |
![]() |
![]() |
![]() |
#8 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,882
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
|
Well, I tried that and nothing happened. I tried adding it to the class for the title and to the class of the line before each chapter which seems like it might define the start of the chapter. It begins with <P ...
Anyway it's probably not worth all this. I'm halfway through the book. I thought it might be an easy fix and I guess it's not. Thanks for the help. Barry |
![]() |
![]() |
![]() |
#10 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,882
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
BTW The Calibre Viewer can not be in Scroll mode, it ignores that command |
|
![]() |
![]() |
![]() |
#11 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
|
I didn't know to validate it and I didn't know I needed a semi-colon. I'm about to call it a night. I'll give that a try in the morning.
Thanks, Barry |
![]() |
![]() |
![]() |
#12 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,882
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() A semicolon is needed unless it is the last attribute before the } and it never hurts, even there |
|
![]() |
![]() |
![]() |
#13 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,459
Karma: 68781975
Join Date: Oct 2012
Location: Arkansas
Device: Paperwhite 4
|
Well, thanks to a lot of help from you guys and the fact that I find it hard to give up, I finally did it!!
Frankly I didn't understand about half the answers I got so I started digging. I didn't learn much about CSS or HTML in the process but I learned a lot about the editor in Calibre. Well, maybe not a lot but more than I knew. Most importantly I learned that it has a help file, which I didn't know before. I'm not sure that would have helped me but I used it to look up things described in the answers you guys gave me that I didn't know about, such as how to merge pages, etc, and I now have a repaired book. ![]() Unfortunately I'm nearly done reading it but this was more about knowing how to fix that sort of thing than it really being a problem, so that's okay. I had another book with a related problem and I learned enough in the process to fix that book as well. At the moment I'm feeling pretty good. That'll last till the next thing I can't figure out. But that's just life. ![]() Thanks again for your help. It worked. Barry |
![]() |
![]() |
![]() |
#14 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,600
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR Last edited by BetterRed; 10-03-2016 at 10:14 PM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Epub conversion adds page break after chapter headings | Siavahda | Calibre | 9 | 06-30-2015 12:10 AM |
What are SGF Chapter Marker and Chapter Break? | webphone | Sigil | 1 | 05-25-2011 02:43 PM |
Manual page break as chapter | ardeegee | ePub | 4 | 04-08-2011 11:35 PM |
Chapter break | crutledge | Sigil | 2 | 08-19-2010 07:37 AM |
How to avoid page break after heading/chapter | tkirke | ePub | 6 | 01-22-2010 02:12 PM |