Difference between revisions of "Footnotes"

From Wiki
Jump to navigation Jump to search
(only a start)
 
(Added some examples of footnotes.)
Line 2: Line 2:
  
 
Simply use <cmd>footnote</cmd><tt>[reference]{footnote text}</tt>.
 
Simply use <cmd>footnote</cmd><tt>[reference]{footnote text}</tt>.
You can leave out the reference, but you need it if you like to refer to the same footnote again with <cmd>note</cmd><tt>[reference]</tt>.
+
You can leave out the reference, but you need it if you like to refer to the same footnote again with <cmd>note</cmd><tt>[reference]</tt>. For example:
  
You can setup the exact behaviour of footnotes as usual with <cmd>setupfootnotes</cmd>.
+
<texcode>
 +
This\footnote[footA](Or that, if you prefer} is a sentence with a footnote\footnote{Actually,
 +
two footnotes; this one and footnote \note[footA].}. 
 +
</texcode>
 +
 
 +
<context>
 +
\starttext
 +
\hskip 1in \vskip 7.25in  % A hack to shorten the page.
 +
This\footnote[footA](Or that, if you prefer} is a sentence with a footnote\footnote{Actually,
 +
two footnotes; this one and footnote \note[footA].}. 
 +
\stoptext
 +
</context>
 +
 
 +
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:
 +
 
 +
<texcode>
 +
\setupfootnotes[way=bypage, conversion=set 2]
 +
</texcode>
 +
 
 +
This produces the the following footnotes, using the text of the previous example.
 +
 
 +
<context>
 +
\setupfootnotes[way=bypage, conversion=set 2]
 +
\starttext
 +
\hskip 1in \vskip 7.25in  % A hack to shorten the page.
 +
This\footnote[footA](Or that, if you prefer} is a sentence with a footnote\footnote{Actually,
 +
two footnotes; this one and footnote \note[footA].}. 
 +
\stoptext
 +
</context>
  
 
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!)).

Revision as of 21:13, 22 August 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. ;-)