I love Calibre/Sigil for constructing epub files, but what I don’t love is the Calibre generated TOC which picks up H1 and H2 Chapter Heading Styles. I don’t like it because it forces you to use H1 and H2 heading styles, not just bookmarks, for everything that you want to include in your epub TOC. Here’s what I do instead:
I manually contruct a TOC for every Word (e-book) file, for Smashwords the TOC is in the front of the book where their Guide suggests (?…more like demands) that it be. But I move the TOC to the back of the epub and prc files.
For the Kindle Content (prc) format, that TOC in the back is no big deal because I build a Guide within MobiPocket Creator that “guides” the reader to the TOC no matter where it is. BUT, in Calibre, there is no guide. There is a Structure and TOC detector feature. And although there is a little square in the TOC feature that suggests that if it’s checked, then Calibre will force their generated TOC onto your file (and vice versa, without checking it, your manual TOC within your document will be used)…they lie. They force their TOC no matter what if you even touch those two screens (Structure and TOC).
To force THEM (Calibre) to use your beautifully constructed TOC instead of theirs, do this: 1) On the Structure Detection screen, erase everything…except Chapter Mark (choose None) and Remove Falce Margins (check that box). 2) Table of Contents screen, leave everything blank except the default Number of links (50) and Chapter threshold (6). This will insure (on most files) that the epub will pick up and use YOUR manually constructed (in Word…but don’t use Word’s TOC build feature) TOC.
I’ve found that sometimes Calibre will mix up the placement though. You’ll have all your Chapters in order, but sometimes the Excerpts and other items will be before the Chapters not after even though you have them listed in your TOC as following the Chapters. If this doesn’t bother you, and it shouldn’t, then…there you go! You’ve forced your own TOC.
Of course you could play by Calibre rules, and just make sure that everything that you want in your TOC has been styled H1 or H2 chapter headings…but if you’d like something to not match the style of H1 or H2 (bold, centered, italics, etc) and still be in your TOC, then you have to individually edit that entry: For instance…”Dear Reader” letter. You want that included in your TOC, but neither the H1 or H2 style looks good. Instead you want the “Dear Reader” line flush left with 12 pts trailing space. You of course can edit this from your Word (paragraph) feature on the format bar (Word again). However, sometimes an e-book will pick up on the H1/H2 style and disregard your edits and…there you are…your Reader Letter is centered/bold/18pt trailing space…not good and you won’t know it until you’ve finished building your epub/prc file.
So I would just manually construct a TOC, link each entry to a bookmarked item within your doc, and then make Calibre use it using the method above. As I mentioned before, you won’t have trouble with the prc file because you’ll be constructing a Guide to your TOC (as well as beginning page and cover of course).