View Single Post
Old 02-27-2012, 10:52 PM   #4
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
I'm not sure, but h:title looks like it only selects the title which would not produce much of a TOC.

You could try selecting the default "auto" TOC:
Code:
ebook-convert a.html a.mobi
or
Code:
ebook-convert a.html a.mobi --use-auto-toc
What I typically use is:
Code:
ebook-convert a.html .mobi --output-profile kindle --chapter "//*[name()='h1' or name()='h2' or name()='h3']"
If you get multiple identical TOC entries with this version, replace //*
Code:
ebook-convert a.html .mobi --output-profile kindle --chapter "//h:p[name()='h1' or name()='h2' or name()='h3']"
.
wallcraft is offline   Reply With Quote