View Single Post
Old 08-05-2013, 03:30 AM   #22
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,556
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Hitch View Post
Yes, or, even simpler, same exact effect:

Code:
<h1>Chapter One</h1>
<p>Some text</p>

<h1 id="sec1c" title="Chapter One Contents">&nbsp;</h1>

<h2 id="sec1">Section 1</h2>
<p>Some text</p>

<h2 id="sec2">Section 2</h2>
<p>Some text</p>
I guess the red bits are h1's and not h2's as you had. I'd rather put that dummy title right below the true <h1>, so it would point to the same place (for readers that can use the NCX properly). And I'd make sure it doesn't show at all in the main text, instead of introducing a (possibly unwanted) blank line plus margins. Oh, and that solution only works with Sigil (and maybe similar software), but ePubs can be created in so many different ways
Jellby is offline   Reply With Quote