Difference between revisions of "Footnotes"
(Rearranged page slightly, added footnote-in-footnote example.) |
(Example of footnotes placed as endnotes.) |
||
Line 55: | Line 55: | ||
==Alternate Footnote Locations== | ==Alternate Footnote Locations== | ||
− | + | The <cmd>setupfootnotes</cmd> command offers some options for the placement of footnotes; for instance, the <code>location=columns</code> option places the footnotes in a single column (of a multicolumn page) rather than across the whole page. The <code>location=text</code> option places the footnotes in text at a location specified by <cmd>placefootnotes</cmd>; this can be easily used to create endnotes. | |
+ | |||
+ | <texcode> | ||
+ | \setupfootnotes[location=text] | ||
+ | This\footnote[footA](Or that, if you prefer.} is a sentence with a footnote\footnote{Actually, | ||
+ | two footnotes; this one and footnote \note[footA].}. | ||
+ | \placefootnotes | ||
+ | This is some text after the footnotes. | ||
+ | </texcode> | ||
+ | |||
+ | <context> | ||
+ | \starttext | ||
+ | \setupfootnotes[location=text] | ||
+ | This\footnote[footA](Or that, if you prefer.} is a sentence with a footnote\footnote{Actually, | ||
+ | two footnotes; this one and footnote \note[footA].}. | ||
+ | \placefootnotes | ||
+ | This is some text after the footnotes. | ||
+ | \stoptext | ||
+ | </context> | ||
==Footnotes in Floats== | ==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 20:00, 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
The \setupfootnotes command offers some options for the placement of footnotes; for instance, the location=columns
option places the footnotes in a single column (of a multicolumn page) rather than across the whole page. The location=text
option places the footnotes in text at a location specified by \placefootnotes; this can be easily used to create endnotes.
\setupfootnotes[location=text] This\footnote[footA](Or that, if you prefer.} is a sentence with a footnote\footnote{Actually, two footnotes; this one and footnote \note[footA].}. \placefootnotes This is some text after the footnotes.
Footnotes in Floats
If you need footnotes in floats (figures, tables) you need to define local footnotes. ((example?))