-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Footnotes are great. How do I do them?
There are three main styles of footnote that I can recall seeing:
- End of page.
- End of chapter.
- End of book.
End of page requires a page-oriented format like PDF, with fixed layout. PDF is probably doable (see the library printed on dub), but text reflow and the like will be a decent chunk of work. I could chuck it over to LaTeX instead, which does footnotes on its own.
In the HTML family, hyperlinking to the end of the chapter should be pretty doable. Separate chapters is just unnecessary, especially when a major use case is serially published chapters.
BBcode doesn't support footnotes.
Markdown supports links, and I can manually put in <a name="foo"> as html, even though that's a bit ugly.
Then there are the footnote symbols. Numbers are simple -- superscript plus reduced font size, and you get an infinite number of them. English typography uses *, †, ‡, §, |, ¶, normally in that order, so I can use those as long as a chapter has no more than five footnotes.
Probably calls for an \info command to set the set/style of marks (numeric / english / explicit space-separated list).
What about multiple things with the same footnote? Could do same text means same footnote.
What about nested footnotes? Depth-first traversal for ordering.