12-14-2016, 10:02 PM | #1 |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Page Break vs Chapter Split
I understand about inserting a split marker before h1 then executing the command in Sigil to split the chapters... and it generates separate HTML pages for each split marker.
If, after I do that, I want a page break at certain points can I insert a split marker to achieve that, then just not issue the Split at Markers command anymore? IOW, I don't want more HTML pages generated... I just want page breaks at certain points for reading ease, to create a little break and white space so the reader has to turn the page to get to the next section. Thanks! |
12-15-2016, 03:19 AM | #2 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
Something like this: Code:
<p class="newsection">Joey walked off into the jungle.</p> Code:
p.newsection { page-break-before: always; } |
|
Advert | |
|
12-15-2016, 04:54 AM | #3 | |
Grand Sorcerer
Posts: 5,636
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Code:
hr.sigil_split_marker { visibility: hidden; page-break-before: always !important; } |
|
12-15-2016, 01:12 PM | #4 |
Guru
Posts: 878
Karma: 2457540
Join Date: Nov 2011
Device: none
|
Yes you do! The method for reliably getting a page break on all reading devices is to start a new HTML file. This doesn't imply a new chapter heading or anything. Just a page break.
This may not be a good idea though. You'll be surprised how often it will result in an ugly orphaned line or couple of lines as your text flows in to various screen sizes, in the user's choice of font size. White Space is not as useful a tool in an eBook as on the printed page. Last edited by exaltedwombat; 12-15-2016 at 01:17 PM. |
12-15-2016, 01:12 PM | #5 |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Thank you both for your answers. They were both very helpful.
|
Advert | |
|
12-15-2016, 01:15 PM | #6 |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
The reason I don't want more HTML pages is b/c it's a long book and already have over 64 HTML pages when split at Chapter h1 headings. Plus it's consistent to place them at h1 and rename all the files after the chapters so I can navigate through later if I need to to look for something. I prefer not to also have subchapter HTML files. Just a personal preference for my own process.
|
12-15-2016, 01:19 PM | #7 |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Speaking of the HTML files, when I rename them in Sigil to the chapter titles, will Sigil still keep them in order and not alphabetize them... and/or do I need to keep the number designation at the end of the filename for Sigil?
(I am not splitting until the very end as it's easier to work with a single file at this point, but I do have the split markers in.) Last edited by Trane; 12-15-2016 at 01:26 PM. |
12-15-2016, 01:29 PM | #8 |
Grand Sorcerer
Posts: 27,968
Karma: 198535232
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Renaming html files won't cause them to be reordered in Sigil's Book Browser. And as long as the html flename is absolutely unique for the epub, there doesn't have to be a number suffix (at the end) at all if you don't want one.
A lot of people rename en masse and Sigil will automatically advance the number pattern (right-click on multiple selected files and select Rename. You can then choose a "starting point" for the mass rename), but there's no compelling reason that you HAVE to use numbers. "chapter_one.xhtml" works as well as "Chap0001.xhtml". Last edited by DiapDealer; 12-15-2016 at 01:34 PM. |
12-15-2016, 01:34 PM | #9 | |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Quote:
|
|
12-15-2016, 01:41 PM | #10 | |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Referring to my wanting to put a page break in certain places:
Quote:
In the end I may resort to just letting the book split there and end up with a few sub-chapter HTML files, but it's my nature to be consistent as in most cases that serves better in the long run for various and sometimes unforeseen or unanticipated reasons. Streamline is good. |
|
12-15-2016, 01:44 PM | #11 | |
A Hairy Wizard
Posts: 3,212
Karma: 19000001
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Cheers, |
|
12-15-2016, 01:49 PM | #12 | |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Quote:
|
|
12-15-2016, 01:54 PM | #13 | |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Quote:
I first tried Dreamweaver and hated it. The UI is so small you can't see where or what any of the tools are, and the Preview mode (equal to Book mode in Sigil) is unbearably slow. Plus it crashed frequently. After fooling with it for a day, I gave it up along with the headache it gave me. I had installed Sigil a few yrs back but hadn't used it yet. When I tried it I was so impressed! So responsive, easy to navigate and can even edit in Preview without any lag. But that's a great tip about using the Find command to get where you need to go when the files are split. I wouldn't have thought of that. Sharp as a bunny, quick as a tack. |
|
12-15-2016, 01:56 PM | #14 |
Resident Curmudgeon
Posts: 76,049
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You are better to split the HTML files because some popular Reading software (such as Marvin) do not respect pagebreak but you have no issues with split HTML.
I did report the issue with Marvin (both version 2.x and 3.x have this bug) and it's not been fixed in either version. Last edited by JSWolf; 12-15-2016 at 01:59 PM. |
12-15-2016, 01:58 PM | #15 |
Groupie
Posts: 165
Karma: 51147
Join Date: Dec 2016
Device: android tablet
|
Thanks much. Yes, that's the impression I got from the previous replies as well. Looks like the only sure bet for all readers is a split and separate HTML file.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add a page break before each chapter | barryem | Editor | 13 | 10-03-2016 10:11 PM |
Epub conversion adds page break after chapter headings | Siavahda | Calibre | 9 | 06-30-2015 12:10 AM |
Preventing chemical symbol from being split by page or line break | Nick Payne | ePub | 8 | 10-23-2013 03:06 AM |
Manual page break as chapter | ardeegee | ePub | 4 | 04-08-2011 11:35 PM |
How to avoid page break after heading/chapter | tkirke | ePub | 6 | 01-22-2010 02:12 PM |