View Single Post
Old 12-07-2007, 12:59 PM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,470
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As a first step use
--force-page-break-before-tag=h[12]

If that doesn't do the trick, look at the HTML source and try to figure out the correct argument to --force-page-break-before-tag or
to --force-page-break-before-attr

You can check how many page breaks are in the output lrf by using lrf2lrs and then counting the the number of <Page elements. On linux
Code:
grep -c "<Page" book.lrs
kovidgoyal is offline   Reply With Quote