EPUB: Difference between revisions
No edit summary |
|||
| Line 17: | Line 17: | ||
Ensure you've referenced <tt>xmlns:epub="http://www.idpf.org/2007/ops</tt> in your <tt>html</tt> tag. | Ensure you've referenced <tt>xmlns:epub="http://www.idpf.org/2007/ops</tt> in your <tt>html</tt> tag. | ||
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. | 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 epub:type="footnote" id="SOMEID"> | ||
| Line 26: | Line 26: | ||
Wrap the callsite with an <tt>a</tt> tag: | Wrap the callsite with an <tt>a</tt> tag: | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
<a | <a epub:type="noteref" href="#SOMEID" id>Callsite text.</a> | ||
</syntaxhighlight> | </syntaxhighlight> | ||