View Single Post
Old 06-22-2010, 04:23 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Kivgaen View Post
Hmm...

So what if your .epub document was generated with automatic styles, and uses the following code:

Code:
<p class="h1"> Heading 1</p>

<p class="h2">Heading 2</p>

<p class="tf">First paragraph without any indent</p>

<p class="tx">Second paragraph, with indent.</p>


with associated styles already generated...
If I already have the above structure, and I don't want to screw it up or mess with the way my document looks, THEN how would I generate a TOC?
Someone else will have to step in with the definitive answer, but my guess is you need to change the stylsheet:
make a h.h1 class out of the p.h1 class and change the p tag pairs to h1 in your book (repeat for h2 and h3 )
theducks is online now   Reply With Quote