Difference between revisions of "Footnotes"
m (Edited examples to use Mojca's \strut\vfill suggestion.) |
(Rearranged page slightly, added footnote-in-footnote example.) |
||
Line 1: | Line 1: | ||
< [[Structurals]] | [[References]] > | < [[Structurals]] | [[References]] > | ||
− | + | ==Basic Footnotes== | |
− | + | ||
+ | For basic footnotes, simply use <cmd>footnote</cmd><tt>[reference]{footnote text}</tt>. | ||
+ | The reference is optional, and can be used to refer to the same footnote again with <cmd>note</cmd><tt>[reference]</tt>. For example: | ||
<texcode> | <texcode> | ||
− | This\footnote[footA](Or that, if you prefer} is a sentence with a footnote\footnote{Actually, | + | This\footnote[footA](Or that, if you prefer.} is a sentence with a footnote\footnote{Actually, |
two footnotes; this one and footnote \note[footA].}. | two footnotes; this one and footnote \note[footA].}. | ||
</texcode> | </texcode> | ||
Line 12: | Line 14: | ||
\starttext | \starttext | ||
\strut\vfill % A hack to shorten the page. | \strut\vfill % A hack to shorten the page. | ||
− | This\footnote[footA](Or that, if you prefer} is a sentence with a footnote\footnote{Actually, | + | This\footnote[footA](Or that, if you prefer.} is a sentence with a footnote\footnote{Actually, |
two footnotes; this one and footnote \note[footA].}. | two footnotes; this one and footnote \note[footA].}. | ||
\stoptext | \stoptext | ||
</context> | </context> | ||
+ | |||
+ | Thanks to Oblomov, it's also possible to use footnotes in footnotes, as in this example. | ||
+ | |||
+ | <texcode> | ||
+ | This\footnote(Or that\footnote{Or possibly even the other.}, if you prefer.} is a sentence | ||
+ | with a footnote. | ||
+ | </texcode> | ||
+ | |||
+ | <context> | ||
+ | \starttext | ||
+ | \strut\vfill % A hack to shorten the page. | ||
+ | This\footnote(Or that\footnote{Or possibly even the other.}, if you prefer.} is a sentence | ||
+ | with a footnote. | ||
+ | \stoptext | ||
+ | </context> | ||
+ | |||
+ | ==Footnote Numbering== | ||
You can setup the exact behaviour of footnotes as usual with <cmd>setupfootnotes</cmd>. For example, to use footnotes with standard footnote symbols (which ConTeXt has defined as the conversion "set 2"), with the footnote counter resetting on each page, one would use the following: | You can setup the exact behaviour of footnotes as usual with <cmd>setupfootnotes</cmd>. For example, to use footnotes with standard footnote symbols (which ConTeXt has defined as the conversion "set 2"), with the footnote counter resetting on each page, one would use the following: | ||
Line 29: | Line 48: | ||
\starttext | \starttext | ||
\strut\vfill % A hack to shorten the page. | \strut\vfill % A hack to shorten the page. | ||
− | This\footnote[footA](Or that, if you prefer} is a sentence with a footnote\footnote{Actually, | + | This\footnote[footA](Or that, if you prefer.} is a sentence with a footnote\footnote{Actually, |
two footnotes; this one and footnote \note[footA].}. | two footnotes; this one and footnote \note[footA].}. | ||
\stoptext | \stoptext | ||
</context> | </context> | ||
+ | |||
+ | ==Alternate Footnote Locations== | ||
It is possible to place footnotes as endnotes or as marginals ((someone please add an example!)). | It is possible to place footnotes as endnotes or as marginals ((someone please add an example!)). | ||
+ | |||
+ | ==Footnotes in Floats== | ||
If you need footnotes in [[Floating Objects|floats]] (figures, tables) you need to define local footnotes. ((example?)) | If you need footnotes in [[Floating Objects|floats]] (figures, tables) you need to define local footnotes. ((example?)) | ||
− | |||
− |
Revision as of 19:27, 3 September 2005
< Structurals | References >
Contents
Basic Footnotes
For basic footnotes, simply use \footnote[reference]{footnote text}. The reference is optional, and can be used to refer to the same footnote again with \note[reference]. For example:
This\footnote[footA](Or that, if you prefer.} is a sentence with a footnote\footnote{Actually, two footnotes; this one and footnote \note[footA].}.
Thanks to Oblomov, it's also possible to use footnotes in footnotes, as in this example.
This\footnote(Or that\footnote{Or possibly even the other.}, if you prefer.} is a sentence with a footnote.
Footnote Numbering
You can setup the exact behaviour of footnotes as usual with \setupfootnotes. For example, to use footnotes with standard footnote symbols (which ConTeXt has defined as the conversion "set 2"), with the footnote counter resetting on each page, one would use the following:
\setupfootnotes[way=bypage, conversion=set 2]
This produces the the following footnotes, using the text of the previous example.
Alternate Footnote Locations
It is possible to place footnotes as endnotes or as marginals ((someone please add an example!)).
Footnotes in Floats
If you need footnotes in floats (figures, tables) you need to define local footnotes. ((example?))