View Single Post
Old 03-01-2012, 10:28 PM   #5
kindleren
Member
kindleren began at the beginning.
 
Posts: 24
Karma: 10
Join Date: Jan 2012
Device: kindle 4
Quote:
Originally Posted by wallcraft View Post
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']"
.
Think you for your reply.I have try it ,but it still doesn't work.
That's really a difficult problem.
kindleren is offline   Reply With Quote