EPUB: Difference between revisions
No edit summary |
|||
| Line 19: | Line 19: | ||
When using reflowable EPUB, there's no real concept of a page, and thus no real concept of footnotes. One can move them to the end of a chapter, but an arguably better solution is a popup. Enclose the footnote text in an <tt>aside</tt> tag ala: | When using reflowable EPUB, there's no real concept of a page, and thus no real concept of footnotes. One can move them to the end of a chapter, but an arguably better solution is a popup. Enclose the footnote text in an <tt>aside</tt> tag ala: | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
<aside epub:type="footnote" id="SOMEID"> | <aside hidden epub:type="footnote" id="SOMEID"> | ||
<div class="footnote"><a href="#CALLSITE">*</a> Footnote text.</div> | <div class="footnote"><a href="#CALLSITE">*</a> Footnote text.</div> | ||
</aside> | </aside> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Use of <tt>epub:type="footnote"</tt> ought result in the text being hidden. | Use of <tt>epub:type="footnote"</tt> ought result in the text being hidden, but you might need <tt>hidden</tt> in your <tt>aside</tt> tag. | ||
Wrap the callsite with an <tt>a</tt> tag: | Wrap the callsite with an <tt>a</tt> tag: | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||