Difference between revisions of "Footnotes"

From Wiki
Jump to navigation Jump to search
(Added some examples of footnotes.)
m (Edited examples to use Mojca's \strut\vfill suggestion.)
Line 11: Line 11:
 
<context>
 
<context>
 
\starttext
 
\starttext
\hskip 1in \vskip 7.25in % 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].}.   
Line 28: Line 28:
 
\setupfootnotes[way=bypage, conversion=set 2]
 
\setupfootnotes[way=bypage, conversion=set 2]
 
\starttext
 
\starttext
\hskip 1in \vskip 7.25in % 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].}.   

Revision as of 18:59, 3 September 2005

< Structurals | References >

Simply use \footnote[reference]{footnote text}. You can leave out the reference, but you need it if you like 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].}.  

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.

It is possible to place footnotes as endnotes or as marginals ((someone please add an example!)).

If you need footnotes in floats (figures, tables) you need to define local footnotes. ((example?))

Thanks to Oblomov it's also possible to use footnotes in footnotes in footnotes. ;-)