06-29-2015, 05:39 AM | #1 |
Connoisseur
Posts: 80
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Epub conversion adds page break after chapter headings
Literally what it says on the tin; I'm trying to convert an .epub file (into another .epub file, if that's relevant) but each time I do, Calibre inserts a page break between the chapter heading and the chapter title.
I have tried leaving the 'Detect chapters t (XPath expression) box completely blank, chapter mark: none, and 'Insert page breaks before (XPath expression): /, as well as all three in tandem. In each case my chapter files get split in two, one with the chapter heading and the other with the chapter title and main body of the chapter. There is an image between the chapter heading and chapter title, if that means anything. Can anyone help, please? |
06-29-2015, 06:38 AM | #2 |
Enthusiast
Posts: 29
Karma: 12030
Join Date: May 2012
Location: Croatia
Device: Kindle PW2 & PW3
|
read this thread (my question and kovid's answers):
https://www.mobileread.com/forums/sho...d.php?t=261335 maybe it will give you more ideas where to look |
06-29-2015, 11:30 AM | #3 |
Connoisseur
Posts: 80
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
Thank you, but that didn't help.
I tried changing the h2 tags of the chapter titles into p tags, but that hasn't helped either. |
06-29-2015, 11:51 AM | #4 | |
Wizard
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
bernie |
|
06-29-2015, 12:19 PM | #5 |
Connoisseur
Posts: 80
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
I don't know what I'm looking for? The css looks like this
<p class="centerImage"><img src="../images/00002.jpeg" alt="image" class="epubimage"/></p> and the image size is 4.6 KB; height 110px, width 118px. |
06-29-2015, 12:57 PM | #6 | |
Wizard
Posts: 2,082
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
This is an example of an image css Code:
.calibre2 { height: auto; max-height: 100%; width: auto; max-width: 100%; } bernie |
|
06-29-2015, 01:00 PM | #7 | |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
In the linked CSS (near the top of the code) needed if there is more than 1 CSS file (very legal). the style info for .centerImage and .epubimage I suspect the second sets the size and the first sets center and margins |
|
06-29-2015, 04:22 PM | #8 |
Connoisseur
Posts: 80
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
I found a page-break-before: always in the chapter title css, not the image, so I've fixed that. Will comment once Calibre finishes converting the file (it's huge, it's been at it for hours already) to see if that was the problem.
|
06-29-2015, 05:44 PM | #9 |
Well trained by Cats
Posts: 29,817
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Edit the file (CSS in this case). No need to convert to the same format
|
06-30-2015, 12:10 AM | #10 |
Connoisseur
Posts: 80
Karma: 9400
Join Date: Aug 2010
Location: Helsinki
Device: Kindle Paperwhite 2018
|
That WAS the problem. (I had to convert for other reasons, it's fine). Thanks for the help, everyone!
|
Tags |
.epub, page breaks |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
MOBI to EPUB conversion in calibre adds page breaks | waynn | Conversion | 15 | 04-05-2017 03:05 PM |
weird page break in html->epub conversion | iaw4 | Calibre | 1 | 01-16-2014 03:09 PM |
RTF Conversion (Underlined/Italics chapter headings) | Gwen Morse | Conversion | 2 | 08-27-2013 01:52 PM |
After conversion: pagebreaks after chapter headings | droid3p0 | Conversion | 8 | 06-14-2012 10:50 AM |
Chapter Headings on their own page? Help! | Lee5150 | Calibre | 3 | 10-06-2011 08:12 AM |