View Single Post
Old 02-12-2012, 04:40 AM   #6
Billi
Wizard
Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.
 
Billi's Avatar
 
Posts: 3,388
Karma: 14190103
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
Quote:
Originally Posted by Bronzato View Post
Sometimes I have a title at the last line of a page (on my reader) and I have the paragraph at the next page. Is there a way to avoid this? Maybe edit this EPUB file in Calibre?
Every Epub is a zipped collection of a number of files, one of them has the name *.css (* -> insert the actual name of your file here). This is a style sheet and tells your reading device how to arrange your text.

You may insert there something like this:

h2 {
page-break-before: always;
page-break-inside: avoid;
page-break-after: avoid;
font-size: 150%;
text-align: center;
margin-top: 0em;
margin-bottom: 0.75em;
}

Tag all your titles as h2 in your html file. The first three lines tell your reader, to make a page break before every title, but never inside and never afterwards.
This is of course only an example, you can change everything there. Play around a little bit with the settings to see what's happening.
Billi is offline   Reply With Quote