View Single Post
Old 07-29-2025, 02:53 PM   #1
Buhaj
Groupie
Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.Buhaj ought to be getting tired of karma fortunes by now.
 
Buhaj's Avatar
 
Posts: 175
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kobo Libra 2, Kindle PW3
Set footnotes to show by default

In last few books I read, I was only able to see footnotes when clicking on a hyperlink, see images 1 and 2.

I want to be able to set footnotes in such a way that they will be displayed on the same page by default. See image 3.

I have converted all ebooks with Calibre, to remove potential unnecessary formatting. In this chapter's xhtml file, the code is

Code:
<a id="footnote-226-backlink" class="footnote" href="naglowki_001_0014.xhtml#footnote-226">1</a><span class="reset">
The code on the file with the footnote content is

Code:
<div class="footnote1">
    <p class="calibre9"><a id="footnote-226" href="naglowki_001.xhtml#footnote-226-backlink" class="calibre14">1</a> Nick Miller, ‘<i class="calibre15">Why are they giving us the money?’ Behind China’s plans to ‘rescue’ a*decrepit rail link</i>, „The Sunday Morning Herald”, 20.07.2018, <a href="https://www.smh.com.au/world/europe/why-are-they-giving-us-the-money-behind-china-s-plans-to-rescue-a-decrepit-rail-link-20180606-p4zjwk.html" class="calibre14">https://www.smh.com.au/world/europe/why-are-they-giving-us-the-money-behind-china-s-plans-to-rescue-a-decrepit-rail-link-20180606-p4zjwk.html</a> (dostęp: 21.05.2022).</p>
Why are footnotes not displaying properly, and what custom code should I add to enable it (if possible)? Can it be Calibre that broke the formatting?

Also, in Calibre, I have EPUB output set to EPUB2. Shall I change it to EPUB3? I read in a post that default on-page footnotes require EPUB3, can this be true?
Attached Thumbnails
Click image for larger version

Name:	1. text.jpg
Views:	44
Size:	183.7 KB
ID:	217190   Click image for larger version

Name:	2. footnote.jpg
Views:	38
Size:	188.4 KB
ID:	217191   Click image for larger version

Name:	3. settings.jpg
Views:	41
Size:	93.0 KB
ID:	217192  

Last edited by Buhaj; 07-29-2025 at 02:55 PM. Reason: Included attachments, links were not working
Buhaj is offline   Reply With Quote