10-29-2012, 12:56 PM | #1 |
Junior Member
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> Code:
ebook-convert "$source" "$result" --chapter "//*[name()='H1' or name()='H2']" --level1-toc "//h:H2" --use-auto-toc What I don't understand ? and don't do right ? P: sorry for my english |
10-29-2012, 10:37 PM | #2 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
lowercase h1 and h2 not H1 and H2
|
10-30-2012, 11:58 AM | #3 |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2012
Device: hanlinv3
|
Thanks. Oh Yes , (I have used H2 because it is H2 in the source, ebook-convert transform html upper->lowercase before creating the TOC ?) now it works but...
--use-auto-toc alone is not sufficient for getting a toc --chapter "//*[name()='h1' or name()='h2']" used alone create a toc --level1-toc "//h:h2" used alone also create a toc I have read old thread which indicate "--level1-toc" should not used without "--chapter" So, what is the role of "--use-auto-toc" ? |
10-31-2012, 10:32 AM | #4 |
Junior Member
Posts: 3
Karma: 10
Join Date: Oct 2012
Device: hanlinv3
|
|
Tags |
calibre command-line toc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Disable Cover for Command Line ebook-convert | bcolflesh | Calibre | 9 | 02-21-2013 11:02 AM |
How to only get command line tool ebook-convert installed. | okidogi | Calibre | 4 | 06-23-2011 10:59 AM |
ABBYY Finereader - Possible to command line/auto convert? | tessel | Workshop | 3 | 04-06-2011 11:08 AM |
ebook-convert: change settings from command line | miwie | Calibre | 1 | 11-30-2010 02:05 PM |
Command Line Options for ebook-convert | godel10 | Calibre | 14 | 08-08-2009 08:28 AM |