View Single Post
Old 04-10-2012, 08:28 AM   #3
Kratos
Connoisseur
Kratos began at the beginning.
 
Posts: 60
Karma: 10
Join Date: Mar 2011
Location: UK
Device: Kindle 3, iPhone, iPad, PC
DiapDealer Im finding it quite difficult so thanks for taking the time to help.To keep things simple its probably best I create a separate html ToC rather then muck about with my code. So let me reiterate and see if I've understood this right.

* I first unzip the original epub

* I create a separate html table of contents. With this code listed at the top
Code:
<a id="toc"></a>
Is there any examples or links on how to format it right? I add this into unzipped epub folder.

* I then add the Guide code you listed above to my OPF file. -In my OPF there isn't a Guide section. There is metadata, manifest, and a spine toc=ncx. So I add it between metadata and manifest?

And it will look like this
Code:
<guide>
  <reference href="Text/your_file_name.xhtml" title="Table Of Contents" type="toc" />
</guide>
But then where do I put this?
Code:
<reference href="Text/your_file_name.xhtml#toc" title="Table Of Contents" type="toc" />
* I then rezipped the folder into an epub and use Kindle Previewer to convert it into a mobi and the ToC should work.

Is that right?!

Also, do I need to put some markers at the start of each html document (chapter page) so the ToC can find it?

Last edited by Kratos; 04-10-2012 at 08:33 AM.
Kratos is offline   Reply With Quote