View Single Post
Old 03-23-2011, 03:59 PM   #4
Strether
Addict
Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.Strether ought to be getting tired of karma fortunes by now.
 
Strether's Avatar
 
Posts: 395
Karma: 848413
Join Date: Feb 2007
Location: Fresno
Device: Kindle 1, 3, PW2, Kindle 7" HD Fire
Quote:
Originally Posted by HarryT View Post
Create a "Table of Contents" page in your book, containing hyperlinks to each of your chapters. At the start of the page, add an anchor with a name. This will be the point in the book that is jumped to when the table of contents is chosen:

Code:
<a name="toc"></a>
(It doesn't matter what you call it, but "toc" is convenient.)

Now, open your OPF file in MobiPocket Creator, click the "Guide" tab, and enter a line like this:

Title: Table of Contents
Type: toc
Filename: book.html#toc

where the last entry is the name of your book file, of course.

Don't forget to click the "Update" button at the bottom of the page.

Now, build your book, and you will (hopefully!) have a working table of contents link.
Except, if you're running IE-9, at least the beta version, it won't work. A conflict somewhere. I had to uninstall it and revert to IE-8.

Jim
Strether is offline   Reply With Quote