View Single Post
Old 01-25-2022, 05:10 PM   #1
porphyry5
Connoisseur
porphyry5 began at the beginning.
 
Posts: 69
Karma: 10
Join Date: Apr 2013
Device: Kobo Clara, Onyx Boox Monte Cristo
Alternative to "class=chapter" to force a page break

I produce epubs from a single (deprecated) html source file with calibre. The only way I know to produce a forced page break in my kobo and onyx ereaders is by adding the phrase " class=chapter" to specific html tags, for example:
Code:
<html><body>
<p class=chapter><img width=100% src=i/1000.jpg></p> 
<p class=chapter><img width=100% src=i/1001.jpg></p> 
<a name="c/1004.tiff"></a> 
<h3 class=chapter>Foreword</h3>
This does the job very well, except the two <img...> lines appear in the Table of Contents as 'Unknown' chapters, which I would prefer to do without. Does calibre have an alternative to "class=chapter" that will cause it to generate page break without affecting the TOC?
porphyry5 is offline   Reply With Quote