EPUB: Difference between revisions
No edit summary |
No edit summary |
||
| Line 13: | Line 13: | ||
</container> | </container> | ||
</pre> | </pre> | ||
==EPUB-specific markup== | |||
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. Move the footnote text to the end of the file, and enclose it in an <tt>aside</tt> tag ala: | |||
<syntaxhighlight lang="html"> | |||
<aside epub:type="footnote" id="SOMEID"> | |||
<div class="footnote"><a href="#CALLSITE">*</a> Footnote text.</div> | |||
</aside> | |||
</syntaxhighlight> | |||
Use of <tt>epub:type="footnote"</tt> ought result in the text being hidden. | |||
Wrap the callsite with an <tt>a</tt> tag: | |||
<syntaxhighlight lang="html"> | |||
<a epub_type="noteref" href="#SOMEID" id>Callsite text.</a> | |||
</syntaxhighlight> | |||