View Single Post
Old 10-03-2009, 04:19 AM   #1
PaulChernoch
Junior Member
PaulChernoch began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Aug 2009
Device: Kindle 2
How do I specify TOC pattern?

I am building my book using HTML. Now that I have the hang of the HTML and CSS that the Kindle 2 supports, it's on to the TOC.

This is how I call the conversion program:

ebook-convert "Behold the Dawn.html" .mobi --use-auto-toc --cover=behold-the-dawn-cover.jpg --isbn=978-0-9789246-1-4 --publisher="PenForASword Publishing" --authors="K. M. Weiland" --author-sort="Weiland, K. M." --level1-toc=h1

I want all the h1 bracketed places to be in the TOC. But this only gets me the ones that have the word Chapter in the names.

For example, this gets into the auto TOC:

<h1 height="50"><a name="chapter_I">Chapter I</a></h1>

But this does not get into the TOC:

<h1 height="50"><a name="Glossary">Glossary</a></h1>

So what do I specify for the --level1-toc expression on the command line? Are there other settings I need as well?

(I am using 0.6.13 of Calibre on a Mac OS X 10.5.8.)

- Paul
PaulChernoch is offline   Reply With Quote