View Single Post
Old 11-22-2013, 02:52 PM   #10
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by SBT View Post
Ah, I think I know the answer to this one...

No.

I don't know if it is actually a part of the EPUB specification, and I'm too lazy to look it up, but all the readers I've come across have an implicit page break on new files. There's no way to work around it, I'm afraid, apart from writing your own custom reader...
Um, what about the css
Code:
page-break-before: avoid;

Where did that go, exactly? It was created for exactly this usage situation, and I can't imagine any reader would refuse to respect that.

Put that in the top element of each new page (or alternatively, use page-break-after: avoid; at the END of each page). In fact, calibre will automatically split all files above a certain size (configurable) during every ePub conversion, for EXACTLY this reason, and takes care of adding the page-break-(whichever):avoid.

Although this shouldn't be a problem in any book that splits on each chapter...
eschwartz is offline   Reply With Quote