Thread: Creator Should my ToC have links?
View Single Post
Old 01-12-2012, 04:43 PM   #7
Billi
Wizard
Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.Billi ought to be getting tired of karma fortunes by now.
 
Billi's Avatar
 
Posts: 3,278
Karma: 13547747
Join Date: Jun 2009
Location: Berlin
Device: Cybook, iRex, PB, Onyx
You can do it in html. Then you have something like this:

- Make a list of all the chapter titles at the beginning or at the end of your book. It will look something like this:
<A name=toc><p>Contents</p></A>
<a href="#ch1"><p>title chapter 1</p></a>
<a href="#ch2"><p>title chapter 2</p></a>
<a href="#ch3"><p>title chapter 3</p></a>

- Then wrap an anchor around each chapter title, e.g.:
<a id="ch1"><h2>title chapter 1</h2></a>
<p>chapter 1</p>
<a id="ch2"><h2>title chapter 2></h2></a>
<p>chapter 2></p>
and so on.

- In Mobipocket Creator, insert a New guide item into the Guide section:
Title: Table of Contents Type: toc Filename: ????.html#toc

But it would be better to find out why the other way didn't work.
Billi is offline   Reply With Quote