View Single Post
Old 01-17-2013, 01:46 PM   #11
Jeff L
Zealot
Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.Jeff L ought to be getting tired of karma fortunes by now.
 
Posts: 117
Karma: 584308
Join Date: Oct 2010
Location: San Francisco
Device: Kindle
You have several options.

You can delete the entire entry in Structure Detection or selectively add or subtract from it. That is, remove "h1" or add "h3" and so on. That is, leave in the headings you want to break on (like chapter headings) and remove the ones where no break should occur.


The problem appears to be multiple uses of a given heading on the title page. Something like this perhaps:

<h1>First line of title</h1>
<h1>Second line of title</h1>


You could change this to:

<h1>First line of title <br/>
Second line of title</h1>


In the second example, "<br/>" is a line break. In this case, there is only one heading instead of two, so the page break should occur only once.



If you remove the *entire* entry in Structure Detection, then you must control the page breaks yourself. Usually, this is done with a style and code at the point where the page break is to occur.

So in the <style> section of the html that you got from saving as a "web page, filtered" file, you can add something like this:

.pagebreak {
page-break-before: always;
}


Then at the point where you want the page break (e.g. before each chapter), add this code:

<div class="pagebreak"> </div>


You can also just reformat the title page in Word without using headings. Just recreate the same font size and text-alignment using regular paragraph styles.


Your idea of using a graphic for the title page is also fine. Just remember to set margins and text-alignment. Size the graphic to a useful size (a little below 600 px height perhaps) and then set height and/or width to 100% or something appropriate as different ereader devices have different dimensions.
Jeff L is offline   Reply With Quote