View Single Post
Old 10-10-2008, 05:03 AM   #12
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: 25,426
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oh I'm sorry I misunderstood. The --level1-tov and --level2-toc are meant for a single HTML file. If you want to use them with multiple HTML files, I would suggest creating the following HTML in the individual files:

Code:
<h1 class="level1_toc">chapter title</h1>
<h2 class="level2_toc">subsection title1</h2>
<h2 class="level2_toc">subsection title2</h2>
Then run:
Code:
html2epub --level1-toc '//h1[@class="level1_toc"]' --level2-toc '//h1[@class="level2_toc"]' index.html
kovidgoyal is online now   Reply With Quote