Thread: Endnotes - how?
View Single Post
Old 02-27-2023, 09:29 PM   #4
RMOP
Zealot
RMOP began at the beginning.
 
Posts: 100
Karma: 10
Join Date: Dec 2008
Device: Kindle Paperwhite, TabPRO 8.4, Galaxy Light, Sony PRS-300
Quote:
Originally Posted by enuddleyarbl View Post
There's no tool in Calibre to create footnotes/endnotes. You'll have to do it manually. This is what I do for my footnotes:

Code:
<a id="fn1" href="#fn1a" epub:type="noteref"><sup>n</sup></a>
if the footnote is in the same file (chapter), then you can get by with the "#" -- if it's in a different file (perhaps an Endnote file near the end of the book), you'll need to insert the actual file name in there

Code:
<aside id="fn1a" class="footnote" epub:type="footnote"><p><a href="#fn1"><sup>n</sup></a>.thenote.</p></aside>
EDIT: Oops. Forgot to mention, the 'class="footnote"' is for whatever css class you set up to format the footnote the way you want it. And, if you are using epub3, the epub:type should be "endnote", not "footnote" if that's what you're setting up.
Many thanks. I've made substantial progress, and re-reading your instructions revealed what I am missing. ALL of my endnotes are at the end of the last chapter, meaning that w/o explicitly naming the file containing that chapter, the endnote links work ONLY for those which are ALSO in that last chapter.

I feel like I'm trying to build a piece of fine furniture using a axe and sledge hammer, so out-of-practice am I in a skill which I never pretended to master. So, I'm still a bit fuzzy about what the link should look like when making explicit reference to the file containing the endnotes.

Would, for example #fn1a" be replacged with the actual filename (index_split_018) of that last chapter? or what? I know I'm close since I have the three endnotes working within that last chapter. Just not exactly sure what it should look like. Here are the two snippets of the current (non-working) code for an endnote from a prior chapter:

Code:
<a id="fn14" href="#fn14a" epub:type="endnote"><sup>14</sup></a>”</p>
Code:
<div class="calibre1"><div class="s1"><p class="calibre2"><aside id="fn14a" class="endnote" epub:type="endnote"><p><a href="#fn14"><sup>14</sup></a><i> “Depart, Christian soul, out of this world, in the name of the Father…”</i></p>
Your patience is appreciated.
RMOP is offline   Reply With Quote