View Single Post
Old 09-30-2011, 04:47 AM   #40
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,668
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by virtual_ink
@ DiapDialer, I have a contents page, in its own html file. I also have a toc.ncx file in the epub. How can I make either of these in-line, so that Kindle recognises it?
The html TOC in your epub needs to be identified as the ToC. In Sigil, you can do this by setting the ToC semantic (right click on the the html file-> semantics-> Table of Contents). If you build your epub by hand, you need to identify the ToC with a reference item in the guide section of your OPF file... like so:
Code:
<guide>
    <reference type="toc" title="Table Of Contents" href="Text/Toc.xhtml"/>
    <reference type="cover" title="Cover" href="Text/titlepage.xhtml"/>
    <reference type="text" title="Text" href="Text/EditorsPreface.xhtml"/>
</guide>
Your hrefs will be different obviously, depending on how your html files are named, but the "reference type='toc' " is the part you're probably missing.

Setting the semantic in Sigil simply creates the toc reference item in the OPF automatically.

Last edited by DiapDealer; 09-30-2011 at 04:54 AM.
DiapDealer is online now   Reply With Quote