02-23-2023, 09:44 PM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite
|
Force visibility for epub:type="footnote"
Hi, I want to use aside with epub:type="footnote" to define, well, my footnotes, but I also want to be able to show the footnotes at the end of each chapter. A bit of wanting to eat my cake and have it too.
As far as I can tell, most devices hide the epub:type="footnote", is there a way to force it to show it? I'm a bit new on EPUB3, so there's still a lot of stuff I don't know. Thanks in advance! |
02-23-2023, 10:06 PM | #2 |
A Hairy Wizard
Posts: 3,223
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
I’m also not familiar enough with ePub3 … I’ve been exclusively ePub2 for a while. I know someone here would be able to tell you if it’s possible.
If it can’t be done with an aside then, worst case, although a little duplication of effort, you could put a copy of your footnotes at the end of a given chapter as a “normal” footnote… You’d see your aside/pop up AND the note at the end of the chapter. |
Advert | |
|
02-23-2023, 11:29 PM | #3 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Code:
aside { display: block !important; } |
|
02-24-2023, 10:50 AM | #4 |
Junior Member
Posts: 8
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite
|
Thank you! It seems to work great in all devices and apps I tried it, except in Apple Books, I don't know if maybe there's a solution to that, or if iBooks just doesn't recognize !important...
|
02-24-2023, 10:53 AM | #5 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite
|
Quote:
I might just end up avoiding aside and going just for div if I can't find a solution for iBooks, I'l keep looking. |
|
Advert | |
|
02-24-2023, 01:39 PM | #6 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Code:
<aside class="note" epub:type="rearnote"> <p id="note1"><a href="cap001.xhtml#ref1">1</a> This is my first endnote.</p> </aside> Code:
<p>This is the paragraph<a epub:type="noteref" href="notes.xhtml#note1" id="ref1"><sup>1</sup></a> with the endnote.</p> By the way, if you are not going to use <aside> then you are not going to have popup endnotes under iBooks. Last edited by RbnJrg; 02-24-2023 at 01:44 PM. |
|
02-24-2023, 06:09 PM | #7 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite
|
Quote:
What I wanted to do was put the endnotes in the end of each chapter, like for example Verso Books does with its ebooks. With rearnotes this works perfectly everywhere. Thank you again! |
|
02-24-2023, 11:34 PM | #8 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
02-27-2023, 04:38 PM | #9 | ||
Wizard
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
In EPUB3, the 2 valid things you can put in your <aside> notes are:
- - - Side Note: rearnote (and a few others) were valid for a very short time, early on in EPUB3's life, but quickly got deprecated since nobody was using it. - - - Quote:
which covers everything you'd ever want to know about footnotes (and endnotes) in ebooks. People only tend to get in trouble with "Why are my popup footnotes not working?" when they try to create complex, convoluted, and messy code. Just remember—KISS (Keep It Simple, Stupid), and your code should work across most apps/programs. Last edited by Tex2002ans; 02-27-2023 at 04:41 PM. |
||
02-28-2023, 12:39 AM | #10 | |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
|
|
02-28-2023, 11:17 AM | #11 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Dec 2015
Device: Kindle Paperwhite
|
Quote:
|
|
02-28-2023, 04:13 PM | #12 |
Wizard
Posts: 1,610
Karma: 8399999
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Don't use "endnote", use "rearnote" and all will work flawlessly under old versions of Thorium. The last version (2.2.0) supports "endnote". But my advice to you is: use <aside class="note" epub:type="rearnote"> because is VALID. Tex2002ans is a great connoisseur of everything related to electronic books but he forgets that not all ereaders have updated his software to comply with the latest specifications of W3C (for example, one of my favourite app, PocketBook is still using an old version of webkit and doesn't support popup footnotes/endnotes). For that reason "rearnote" works better than "endnote". And as long as epubcheck doesn't give an error message, you should continue to use "rearnote" (as I do).
|
Tags |
epub3, footnotes, html |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Browser Viewer: Request to hide <aside epub:type="noteref"> | nqk | Calibre | 7 | 07-11-2018 01:49 AM |
Can a file have multiple semantic tags (epub:type, reference type="…")? | jcsalomon | ePub | 7 | 02-19-2018 12:40 PM |
The element type "p" must be terminated by the matching end-tag "</p>". | uieluck | ePub | 10 | 02-12-2013 08:04 PM |
"ELF binary type "0" not known" Error. When run Kindlegen | chovan | Amazon Kindle | 4 | 02-09-2012 12:49 PM |
ePub to Mobi: can't get the reference type="text" to work | LaoTseu | Conversion | 7 | 09-14-2011 01:06 AM |