View Single Post
Old 10-29-2012, 12:56 PM   #1
mccnews
Junior Member
mccnews began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2012
Device: hanlinv3
Convert command line autotoc

Hello,
I am trying to use calibre in command-line on linux.
First try: html ->epub, keep simple, I want just add a toc in the epub

in my html, chapter titles are as this:
Code:
<H2>1<BR>One and Two</H2>
<h1> is use only onetime for book title

Code:
ebook-convert "$source" "$result" --chapter "//*[name()='H1' or name()='H2']"  --level1-toc "//h:H2"  --use-auto-toc
And nothing, nada, not any title in toc !!
What I don't understand ? and don't do right ?

P: sorry for my english
mccnews is offline   Reply With Quote