More TOC questions
I'm sorry to expose my ignorance yet again, but I just don't comprehend how to get Calibre to set up TOCs the way I want them.
First question:
I'm learning how to do a template for ebooks in XHTML 1.1 and CSS. My markup for the TOC is
<div id="TOC">
<h3>Table of Contents</h3>
<p>Preface</p>
....
</div>
With this and and the CSS I can produce an ebook in Mobipocket format with Calibre which works as a TOC. I 'turn off' the XPath stuff in Calibre by using / as the search term.
But Calibre produces, without me asking for it, a TOC at the end of the ebook, after all the text. And when I press the button on my Cybook which takes me to the Go To option and select Table of Contents the Cybook takes me to this TOC generated by Calibre and not to mine generated from the markup - I know it's not mine because it is at the end of the ebook and because it is not offset from the left margin as mine is.
How do I stop Calibre from generating the second TOC, or how to I get my Cybook to go to my TOC and not Calibre's TOC?
Second question:
The ebook I'm preparing now has several footnotes in the text which I'm going to make into end notes. Because XHTML 1.1 does not accept the 'a name' option I have to use an id for each footnote. On the trial runs I've done so far Calibre puts an entry for each footnote into its TOC at the end of the book, which is certainly not what I want.
If I can't stop Calibre from generating its own TOC at the end of the book is there any way in which I can stop it including each end note in the TOC?
Please note that I have read the XPath tutorial, and am none the wiser.
Regards, Alex
|