Thread: EPUB output
View Single Post
Old 10-01-2008, 08:53 PM   #147
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,438
Karma: 27757438
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The only way you can have a hierarchical TOC from a single HTML file would be to create it manually in an NCX file. I can then add an option --from-ncx which will load the TOC from the NCX file. NCX is just a simple XML file that defines a TOC. For examples look at the contents of the EPUB files created by html2epub.

Note that currently if you create an OPF file that has a reference to a TOC and pass that to html2epub, html2epub will use the TOC.
kovidgoyal is offline   Reply With Quote