View Single Post
Old 09-01-2014, 03:25 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Ripplinger View Post
When a chapter is also divided up into say a dozen sections, each with their own number, it often happens that the number of the next part is at the end of one page and the text starts on the following page. Is there something that can be added in the stylesheet that will force those 2 parts, the number and first paragraph of the new section, to always stay together?

What I've done in the past is to force a new page when there's a new section within a chapter, but some of them are very short and really don't need that. I'd be happy if I could find a way just to prevent the section number being split from the first paragraph of that section.

I've read about "page-break-before: avoid" (or use "always" if you want to force a page break), but that didn't work to keep the lines together.
There's an easy solution to that problem. Just move the bits at the end of one XML into the next XML. Calibre's Book editor can help you with that.
JSWolf is offline   Reply With Quote