I finally found what I needed to make TOC work in a single html file.
Once I propagate this to my kindle books, the Table of Contents button will no longer be grayed out!
The essence:
<!-- TABLE OF CONTENTS -->
<mbp:pagebreak />
<guide>
<reference type="toc" title="Table of Contents" href="#toc"></reference>
</guide>
<a name="toc"/><h2>Contents</h2>
<blockquote><a href="#chap1">1. Beginnings</a></blockquote>
<blockquote><a href="#chap2">2. Zombie Mashup</a></blockquote>
and so on...
<!-- CHAP ONE STARTS HERE -->
<mbp:pagebreak />
<a name="chap1"/><h2>1. Beginnings</h2>
and so on...
Enjoy, live long, and prosper,
Robert
Hi, Scott,
Somehow, I can't see your html.
If you're on facebook, friend me there and I'll do what I can to help!
Robert
Posted by: Robert Devereaux | July 24, 2011 at 08:37 PM
Hello Robert,
First of all, thank you for your concise help here.
I tried your elusive trick, but still no TOC. Below is the entire html file (renamed TOC Test.txt for the Kindle).
(BTW, I tried for quite a while to post HTML, but the code was always translated. I hope you can either see what I tried to post, or perhaps ignore what I tried and post a stand-alone "book" you know will work.)
Again, thanks,
Scott
TOC Test
Contents
1. Beginnings
2. Zombie Mashup
1. Beginnings
2. Zombie Mashup
Posted by: Scott Rauch | July 18, 2011 at 11:41 AM