Changes

Jump to navigation Jump to search
1,675 bytes added ,  21:38, 9 September 2005
Added another section on manually doing footnotes. Still buggy, though.
{\placelocalfootnotes}
\stoplocalfootnotes
</context>
 
 
==Placing Footnotes Manually==
 
{{todo|This doesn't seem to be working quite right yet. A ConTeXt bug, or a wrong answer?}}
 
In some cases, ConTeXt's footnoting system may not be able to do exactly what you want. For instance, you may want to place a footnote in a table so that the footnote appears with the rest of the footnotes on the page, or you may want to create a footnote to a footnote to a footnote. Many of these cases can be handled by using the <cmd>footnotetext</cmd> command (which creates a footnote without placing the corresponding symbol in the text) and the <cmd>note</cmd> command (which places the footnote symbol in the text, but does not create a footnote).
 
For example, to create a footnote to a footnote to a footnote, all but the first footnotes are created with <cmd>footnotetext</cmd> commands, which are placed in the main text -- thereby ensuring that the footnotes are numbered and appear in the correct order. Then, these footnotes are referenced by <cmd>note</cmd> commands within the relevant footnotes. In this example, the lines are broken for clarity; note the <tt>%</tt> at the end of each line to prevent spurious spaces in the text.
 
<texcode>
This%
\footnote(Or that\note[footB], if you prefer.}%
\footnotetext[footB]{Or possibly even the other\note[footC].}%
\footnotetext[footC]{It could be something entirely different.}
is a sentence with nested footnotes.
</texcode>
 
<context>
\strut\vfill
This%
\footnote(Or that\note[footB], if you prefer.}%
\footnotetext[footB]{Or possibly even the other\note[footC].}%
\footnotetext[footC]{It could be something entirely different.}
is a sentence with nested footnotes.
</context>

Navigation menu