Hi there,
I just spent... 8 hours... trying to solve this TOC issue. I must precise I'm a complete beginner and non-native English speaker. Sorry if I misunderstand things sometime.
I tried and do what's described here. My first issue is the following:
- if I UNCHECK "Do ot add a TOC to..." like explained by medwatt, my eBook display 2 TOC: the initial, inline one I creatdd in Word, PLUS the "metadata" one at the very end of the ebook. This second one is the one that is recognized when I use the "GO TO... Tables of Contents" functionality.
- When I CHECK the "Do ot add a TOC to..." option, my ebook only display the inline TOC of my Word document. But in piste of me trying to follow the process you describe, I'm unable to have it recognized by the "GO TO..." functionality.
Here is what I did:
1. In Word, I created a Bookmark just before my TOC. I named the bookmark "CIU"so that I do not mistake it with anything else when editing my files.
2. I saved the file as a WEB PAGE, FILTERED.
3. In CALIBRE, I converted that WEB PAGE into EPUB. I had to check the "No default Cover" in the EPUB Ouput option.
4. Still in CALIBRE, I right-clicked on the book and select TWEAK BOOK and EXPODE BOOK.
5. I select the OPF file and open it into WordPad. Here, I'm not sure I'm not already "corrupting" the file format? Is there any free text editor I should better use to do that? Or is there no risk here?
6. I know that my initial TOC is in the file "TT_Test Bkmrk et EPUB_split_002.html" and the bookmark is named CIU.
7. Then it should give me the following:
<reference type="toc" title="Table of Contents" href="TT_Test Bkmrk et EPUB_split_002.html#CIU"/>
My issue is that I do not where to add this line in the OPF file. I can see the <guide/> tag, but I cannot find the <guide> tag.
Then, I'm not even sure that this edit is well-taken into account. Well, I'm not a coder and very new to eBook. Can anyonre please advise me?
Here is my edited OPF file:
Code:
<?xml version='1.0' encoding='utf-8'?>
<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uuid_id">
<metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns

pf="http://www.idpf.org/2007/opf" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:calibre="http://calibre.kovidgoyal.net/2009/metadata" xmlns:dc="http://purl.org/dc/elements/1.1/">
<meta name="calibre:title_sort" content="Le TT_BOOKMARK"/>
<dc:language>en</dc:language>
<dc:creator opf:role="aut">Unknown</dc:creator>
<meta name="calibre:timestamp" content="2012-12-16T12:03:01+00:00"/>
<dc:title>Le TT_BOOKMARK</dc:title>
<dc:date>0101-01-01T00:00:00+00:00</dc:date>
<dc:contributor opf:role="bkp">calibre (0.9.10) [http://calibre-ebook.com]</dc:contributor>
<dc:identifier id="uuid_id" opf:scheme="uuid">b3376e2e-2f8e-4252-a4aa-b82187a3f450</dc:identifier>
</metadata>
<manifest>
<item href="TT_Test Bkmrk et EPUB_split_000.htm" id="html7" media-type="application/xhtml+xml"/>
<item href="TT_Test Bkmrk et EPUB_split_001.htm" id="html6" media-type="application/xhtml+xml"/>
<item href="TT_Test Bkmrk et EPUB_split_002.htm" id="html5" media-type="application/xhtml+xml"/>
<item href="TT_Test Bkmrk et EPUB_split_003.htm" id="html4" media-type="application/xhtml+xml"/>
<item href="TT_Test Bkmrk et EPUB_split_004.htm" id="html3" media-type="application/xhtml+xml"/>
<item href="TT_Test Bkmrk et EPUB_split_005.htm" id="html2" media-type="application/xhtml+xml"/>
<item href="TT_Test Bkmrk et EPUB_split_006.htm" id="html1" media-type="application/xhtml+xml"/>
<item href="page_styles.css" id="page_css" media-type="text/css"/>
<item href="stylesheet.css" id="css" media-type="text/css"/>
<item href="toc.ncx" media-type="application/x-dtbncx+xml" id="ncx"/>
</manifest>
<spine toc="ncx">
<itemref idref="html7"/>
<itemref idref="html6"/>
<itemref idref="html5"/>
<itemref idref="html4"/>
<itemref idref="html3"/>
<itemref idref="html2"/>
<itemref idref="html1"/>
</spine>
<reference type="toc" title="Table of Contents" href="TT_Test Bkmrk et EPUB_split_002.html#CIU"/>
<guide/>
</package>