Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 04-09-2018, 05:44 PM   #1
LeoD
Junior Member
LeoD began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2018
Device: none
Unwated Page Breaks

Hello,

I've seen other threads discussing page breaks, but none of them seemed to directly address my problem.

I've converted from .docx to epub using Calibre. My book has a lot of images in it, and I want some of them to occupy their own entire page, separate from the text. I've done this by inserting a "page break" in Word after the relevant images. However, this creates an entire unwanted blank page between the image and the text. (Before I put these page breaks in, the text was right up against the image on the same page.)

I can't figure out what the CSS coding is for this so that I can fix it in the editor. Any pointers?

Thanks!
LeoD is offline   Reply With Quote
Old 04-09-2018, 05:57 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,532
Karma: 26944418
Join Date: Mar 2012
Location: Sydney Australia
Device: none
How is the text following the 'single-page' image styled in Word. Try defining and using a style that has Page break before set in the Paragraph options?

BR
BetterRed is offline   Reply With Quote
Advert
Old 04-09-2018, 05:58 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,754
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by LeoD View Post
Hello,

I've seen other threads discussing page breaks, but none of them seemed to directly address my problem.

I've converted from .docx to epub using Calibre. My book has a lot of images in it, and I want some of them to occupy their own entire page, separate from the text. I've done this by inserting a "page break" in Word after the relevant images. However, this creates an entire unwanted blank page between the image and the text. (Before I put these page breaks in, the text was right up against the image on the same page.)

I can't figure out what the CSS coding is for this so that I can fix it in the editor. Any pointers?

Thanks!
Code:
page-break-before, page-break-after
also will happen if the margins on the image (and preceding P) use up all the available space
theducks is offline   Reply With Quote
Old 04-10-2018, 12:34 AM   #4
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
When the image fills the page (height: 100%; width: 100%; or width: auto; ), you don't need the page-break codes, so delete those codes. Also, make sure the CSS codes for the image (the class code listed above the .jpg code) has 0 for all four margins, and make sure there are no codes above or below the image where you've used   to add spacing.
deback is offline   Reply With Quote
Old 04-11-2018, 05:42 PM   #5
LeoD
Junior Member
LeoD began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2018
Device: none
Hey guys, thanks for the tips. I tried them all and they didn't work. Also, I noticed that there was no code for "page-break-before" or "page-break-after". The page is being broken by the presence of separate index_split files, nothing else.

I had the width and height settings of the pictures set to "auto." I noticed that when I set width and height to something arbitrary and tiny, like 100px by 100px, the unwanted blank pages disappeared. Is it possible that the "auto" setting is creating the unwanted blank pages by sizing the picture too big? So far, I've only checked this in the ebook viewer that comes with Calibre. Any idea if this will be a problem on an actual ebook reader?

Thanks!
LeoD is offline   Reply With Quote
Advert
Old 04-11-2018, 06:11 PM   #6
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,754
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by LeoD View Post
Hey guys, thanks for the tips. I tried them all and they didn't work. Also, I noticed that there was no code for "page-break-before" or "page-break-after". The page is being broken by the presence of separate index_split files, nothing else.

I had the width and height settings of the pictures set to "auto." I noticed that when I set width and height to something arbitrary and tiny, like 100px by 100px, the unwanted blank pages disappeared. Is it possible that the "auto" setting is creating the unwanted blank pages by sizing the picture too big? So far, I've only checked this in the ebook viewer that comes with Calibre. Any idea if this will be a problem on an actual ebook reader?

Thanks!
New file = implied pagebraek
I tend to us splits AS new chapters, where I want a break.
The only other time, is a forced-to-split case, to stay under 260K for older ADE based devices.
I like splits.I believe the performance improves with small chunks
theducks is offline   Reply With Quote
Old 04-12-2018, 11:19 AM   #7
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Another thing is:

Remove any height or width lines in the .css file for the class that is listed above the <img> lines. This will also cause blank pages after the image. The height and width lines must be in the CSS for the class inside the <img> lines.
deback is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with assigning correct page breaks and page numbers to a textbook [converting fr cateroseg Calibre 0 02-14-2018 10:32 PM
Page Breaks etc genfind General Discussions 6 02-24-2012 02:20 PM
epub to mobi h1 page breaks not starting on new page wannabee Conversion 4 08-02-2011 12:46 AM
Adding page breaks in Calibre breaks ePubcheck validation bookraft Conversion 16 03-01-2011 01:23 PM
Page breaks enarchay Calibre 18 05-31-2009 06:57 PM


All times are GMT -4. The time now is 06:11 AM.


MobileRead.com is a privately owned, operated and funded community.