Difference between revisions of "Footnotes"

From Wiki
Jump to navigation Jump to search
m (Hint about missing MkIV command page)
(36 intermediate revisions by 17 users not shown)
Line 1: Line 1:
 
< [[Structurals]] | [[References]] >
 
< [[Structurals]] | [[References]] >
 +
 +
{{todo|This page needs to be reorganized: progression from simple to more complex use is a bit circular..}}
 +
 +
==First View==
 +
 +
<texcode>
 +
\section{First}
 +
 +
Way to \ConTeXt\footnote{First footnote.} is painful.
 +
 +
\section{Second}
 +
 +
But \ConTeXt\ is amazing.\footnote{Second footnote}
 +
 +
\placetable
 +
  {Complex Table\footnote{A table head footnote.}}
 +
  {\startlocalfootnotes
 +
  \placelegend
 +
    {\starttable[|l|l|]
 +
      \HL
 +
      \NC First Column \NC Second Column \NC \FR
 +
      \HL
 +
      \NC East\footnote{Footnote inside graphic.} \NC  North \NC \FR
 +
      \NC West        \NC  South          \NC \LR
 +
      \HL
 +
      \stoptable}
 +
    {\placelocalfootnotes}
 +
  \stoplocalfootnotes}
 +
</texcode>
 +
 +
<context>
 +
\starttext
 +
\strut\vfill\
 +
\section{First}
 +
 +
Way to \ConTeXt\footnote{First footnote.} is painful.
 +
 +
\section{Second}
 +
 +
But \ConTeXt\ is amazing.\footnote{Second footnote}
 +
 +
\placetable
 +
  {Complex Table\footnote{A table head footnote.}}
 +
  {\startlocalfootnotes
 +
  \placelegend
 +
    {\starttable[|l|l|]
 +
      \HL
 +
      \NC First Column \NC Second Column \NC \FR
 +
      \HL
 +
      \NC East\footnote{Footnote inside graphic.} \NC  North \NC \FR
 +
      \NC West        \NC  South          \NC \LR
 +
      \HL
 +
      \stoptable}
 +
    {\placelocalfootnotes}
 +
  \stoplocalfootnotes}
 +
\stoptext
 +
</context>
 +
 +
Here we have footnotes of two outer ones, a local one (in the table) and a postponed one (in the graphic).
  
 
==Basic Footnotes==
 
==Basic Footnotes==
  
For basic footnotes, simply use <cmd>footnote</cmd><tt>[reference]{footnote text}</tt>.
+
For basic footnotes, simply use {{cmd|footnote|[reference]{footnote text}}}.
The reference is optional, and can be used to refer to the same footnote again.  Footnotes can be referenced with the usual <cmd>in</cmd> and <cmd>at</cmd> macros (see [[References]]), or the note itself can be reproduced with <cmd>note</cmd><tt>[reference]</tt>.  For example:
+
The reference is optional, and can be used to refer to the same footnote again.  Footnotes can be referenced with the usual {{cmd|in}} and {{cmd|at}} macros (see [[References]]), or the note itself can be reproduced with {{cmd|note|[reference]}}.  For example:
  
 
<texcode>
 
<texcode>
Line 38: Line 97:
 
==Footnote Numbering==
 
==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 with {{cmd|setupnotation|[footnote]}} (MkII: {{cmd|setupfootnotes}}).
 +
(The command page for the MkIV version is still missing, refer to the old version; translate location to alternative and conversion to numberconversion.)
 +
 
 +
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>
 +
\setupnotation[footnote][way=bypage,numberconversion=set 2]
 +
</texcode>
 +
 
 +
In MkII this was:
  
 
<texcode>
 
<texcode>
Line 44: Line 112:
 
</texcode>
 
</texcode>
  
This produces the the following footnotes, using the text of the previous example.
+
This produces the following footnotes, using the text of the previous example.
  
 
<context>
 
<context>
Line 57: Line 125:
 
==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, or even to place footnotes after each paragraph or subsection.
+
The {{cmd|setupfootnotes}} (MkII) 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}}; this can be easily used to create endnotes, or even to place footnotes after each paragraph or subsection.
  
 
<texcode>
 
<texcode>
\setupfootnotes[location=text]
+
\setupfootnotes[location=text] % MkII
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].}.   
 
\placefootnotes
 
\placefootnotes
Line 71: Line 139:
 
\starttext
 
\starttext
 
\setupfootnotes[location=text]
 
\setupfootnotes[location=text]
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].}.   
 
\placefootnotes
 
\placefootnotes
Line 79: Line 147:
 
</context>
 
</context>
  
 +
=== Footnotes at the end of each chapter ===
 +
 +
Another elegant (MkIV) example places all footnotes in a subject (unnumbered section) at the end of each chapter. It is intelligent and will not create an empty subject when there are no footnotes to be placed. At no extra cost, the subject title "Footnote" will be singular or plural depending if there is only one or several footnotes to be placed:
 +
 +
<texcode>
 +
\startsetups chapter:after
 +
    \ifcase\rawcountervalue[footnote]\relax
 +
    \or
 +
        \startsubject[title=Footnote]
 +
            \placefootnotes
 +
        \stopsubject
 +
    \else
 +
        \startsubject[title=Footnotes]
 +
            \placefootnotes
 +
        \stopsubject
 +
    \fi
 +
\stopsetups
 +
 +
\setupnotes[location=none]
 +
\setupnotation[way=bychapter]
 +
 +
\setuphead[chapter][aftersection=\setups{chapter:after}]
 +
</texcode>
 +
 +
===Footnotes in the margin===
 +
 +
First we switch off footnote placement, then we place them manually into the margin.
 +
 +
<texcode>
 +
\setupnote[footnote][location=none]
 +
\setupnotation[footnote][
 +
    align=flushleft,
 +
    location=serried,
 +
    width=broad,
 +
]
 +
\setuptexttexts[margin][]
 +
    [{\framed[%
 +
    align={right,bottom},
 +
    frame=off,
 +
    height=\textheight,
 +
    width=\rightmarginwidth
 +
    ]{\placenotes[footnote]}}]
 +
</texcode>
 +
 +
===... but not at the bottom===
 +
 +
Hraban wanted numbered margin notes, starting in on the same line as the referenced text (like a combination of {{cmd|inmargin}} and {{cmd|footnote}}). Wolfgang answered:
 +
 +
The only way I found to achieve this is by flushing the notes at the end of each footnote
 +
entry which can be done with the next key. The positioning of each margin text is tricky
 +
because {{cmd|placenotes}} adds skips at the begin of the block (which can be reduced with
 +
{{cmd|placelocalnotes}}) but a inline version of the command (e.g. <tt>\placeinlinenotes</tt>) which
 +
flushes the notes without vertical skips and a rule at the begin would help.
 +
 +
<texcode>
 +
\define\PlaceFootnote
 +
  {\inrightmargin{\vtop{\placelocalnotes[footnote][before=,after=]}}}
 +
 +
\setupnote
 +
  [footnote]
 +
  [location=text,
 +
  bodyfont=,
 +
  next=\PlaceFootnote]
 +
 +
\setupnotation
 +
  [footnote]
 +
  [alternative=serried]
 +
 +
\setuplayout
 +
  [width=12cm,
 +
  rightmargindistance=0.5cm,
 +
  rightmargin=5cm]
 +
 +
\starttext
 +
\dorecurse{6}{\input ward\expanded{\footnote{This is a footnote \recurselevel}} }
 +
\stoptext
 +
</texcode>
  
 
==Footnote Formatting==
 
==Footnote Formatting==
  
Footnotes can be placed in multiple columns, using the <tt>n=<i>number</i></tt> option in <cmd>setupfootnotes</cmd>.
+
You can change the font used in the footnotes with
 +
{{cmd|setupfootnotedefinition|[before=\MyFontCommand]}}.
 +
 
 +
Footnotes can be placed in multiple columns, using the <code>n=<i>number</i></code> option of {{cmd|setupnotes}} or {{cmd|setupnote}} (MkII: {{cmd|setupfootnotes}}).
  
 
<texcode>
 
<texcode>
\setupfootnotes[n=3]
+
\setupfootnotes[n=3] % MkII
 
This\footnote[footA](Or that\footnote{Or the other.}, if you prefer.} is a sentence
 
This\footnote[footA](Or that\footnote{Or the other.}, if you prefer.} is a sentence
 
with a footnote\footnote{Actually, two footnotes; this one and \in{footnote}[footA]
 
with a footnote\footnote{Actually, two footnotes; this one and \in{footnote}[footA]
Line 103: Line 251:
 
{{todo|This is ugly, and points up some ConTeXt bugs that need to be fixed.}}
 
{{todo|This is ugly, and points up some ConTeXt bugs that need to be fixed.}}
  
 +
===Footnotes in pagraph form===
 +
 +
When enabling footnotes (actually notes and linenotes) in pagraph form, there is some risk in having no right separation between body and the notes. This can be partially avoided using <code>width=broad</code> ([http://www.ntg.nl/pipermail/ntg-context/2013/073650.html Hans dixit]).
 +
 +
<texcode>
 +
\setupnote
 +
  [footnote]
 +
  [paragraph=yes]
 +
 +
\setupnotation
 +
  [footnote]
 +
  [alternative=serried,
 +
    width=broad,
 +
    distance=.5em,
 +
    display=no]
 +
 +
\starttext
 +
    \dorecurse{500}{text text text\footnote{note} }
 +
\stoptext
 +
</texcode>
  
 
==Footnotes in Floats==
 
==Footnotes in Floats==
  
[[Floating Objects|Floats]] cannot include normal footnotes, because they are likely to float to another page from the page on which they were defined, thus getting the footnotes out of order.  Thus, to include footnotes in a float, one must use local footnotes.  This table, which uses the <cmd>placelegend</cmd> command to create a place for the footnotes, illustrates the process:
+
[[Floating Objects|Floats]] cannot include normal footnotes, because they are likely to float to another page from the page on which they were defined, thus getting the footnotes out of order.  Thus, to include footnotes in a float, one must use local footnotes.  This table, which uses the {{cmd|placelegend}} command to create a place for the footnotes, illustrates the process:
  
 
<texcode>
 
<texcode>
Line 136: Line 304:
 
</context>
 
</context>
  
 +
When using natural tables, the above leads to alignment problems.  An alternative is to use:
 +
 +
<texcode>
 +
\defineframed[noteframed]
 +
\setupframed[noteframed]
 +
  [width=\hsize,
 +
  frame=off,
 +
  align=right,
 +
  %height=fit,
 +
  top=\hbox\bgroup,
 +
  bottom=\egroup]
 +
 +
\starttext
 +
 +
\startlocalfootnotes[n=0]
 +
\placetable
 +
{Caption}
 +
{\placelegend
 +
{\bTABLE
 +
\bTR\bTD One\footnote{First} \eTD\bTD Two\footnote{Second} \eTD\eTR
 +
\bTR\bTD Three\footnote{Third} \eTD\bTD Four\footnote{Fourth} \eTD\eTR
 +
\eTABLE}
 +
{\noteframed{\placelocalfootnotes}}}
 +
\stoplocalfootnotes
 +
 +
\stoptext
 +
</texcode>
 +
 +
<context>
 +
\defineframed[noteframed]
 +
\setupframed[noteframed]
 +
  [width=\hsize,
 +
  frame=off,
 +
  align=right,
 +
  %height=fit,
 +
  top=\hbox\bgroup,
 +
  bottom=\egroup]
 +
 +
\starttext
 +
 +
\startlocalfootnotes[n=0]
 +
\placetable
 +
{Caption}
 +
{\placelegend
 +
{\bTABLE
 +
\bTR\bTD One\footnote{First} \eTD\bTD Two\footnote{Second} \eTD\eTR
 +
\bTR\bTD Three\footnote{Third} \eTD\bTD Four\footnote{Fourth} \eTD\eTR
 +
\eTABLE}
 +
{\noteframed{\placelocalfootnotes}}}
 +
\stoplocalfootnotes
 +
 +
\stoptext
 +
</context>
 +
 +
==Footnotes in a box==
 +
 +
Note that it is necessary to add the command {{cmd|automigrateinserts}} (for example before {{cmd|link=no|starttext}})
 +
in order to correctly handle the placement of footnotes within a box such as {{cmd|framed}} or {{cmd|placeongrid}}...
  
 
==Placing Footnotes Manually==
 
==Placing Footnotes Manually==
  
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).
+
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}} command (which creates a footnote without placing the corresponding symbol in the text) and the {{cmd|note}} 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.
+
For example, to create a footnote to a footnote to a footnote, all but the first footnotes are created with {{cmd|footnotetext}} 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}} commands within the relevant footnotes.  In this example, the lines are broken for clarity; note the <code>%</code> at the end of each line to prevent spurious spaces in the text.
  
 
<texcode>
 
<texcode>
 
This%
 
This%
\footnote(Or that\note[footB], if you prefer.}%
+
\footnote{Or that\note[footB], if you prefer.}%
 
\footnotetext[footB]{Or possibly even the other\note[footC].}%
 
\footnotetext[footB]{Or possibly even the other\note[footC].}%
 
\footnotetext[footC]{It could be something entirely different.}
 
\footnotetext[footC]{It could be something entirely different.}
Line 154: Line 380:
 
\strut\vfill
 
\strut\vfill
 
This%
 
This%
\footnote(Or that\note[footB], if you prefer.}%
+
\footnote{Or that\note[footB], if you prefer.}%
 
\footnotetext[footB]{Or possibly even the other\note[footC].}%
 
\footnotetext[footB]{Or possibly even the other\note[footC].}%
 
\footnotetext[footC]{It could be something entirely different.}
 
\footnotetext[footC]{It could be something entirely different.}
Line 160: Line 386:
 
</context>
 
</context>
  
 +
== Suppressing Footnotes Entirely ==
 +
 +
The boolean {{cmd|link=no|notesenabled}} controls whether footnotes are processed at all.
 +
If set to ''false'', invocations of {{cmd|footnote}} will be ignored.
 +
After it is set to ''true'' again ConTeXt will pick up the footnote counters at their
 +
previous state, so numbering will continuous.
 +
 +
<context source="yes" mode="mkiv">
 +
\setuppapersize [A7]
 +
\starttext
 +
 +
  \dorecurse {2} { foo \footnote {bar} baz \par }
 +
 +
  \notesenabledfalse
 +
 +
  \dorecurse {3} { foo \footnote {bar} baz \par }
 +
 +
  \notesenabledtrue
 +
 +
  \dorecurse {2} { foo \footnote {bar} baz \par }
 +
 +
\stoptext
 +
</context>
 +
 +
== Color of Footnote Links that Refer to the Same Page ==
 +
 +
If you have set footnotes to be interactive and have noticed that your footnote links become red, it is because they are linked to content on the same page on which they appear. This means they are governed by {{cmd|setupinteraction}}’s attribute <code>contrastcolor</code>, rather than <code>color</code>.
 +
 +
To fix the redness (or change it to a different color), try:
 +
 +
<texcode>
 +
\setupinteraction[state=start,color=black,contrastcolor=black]
 +
</texcode>
 +
 +
== Changing footnote interlinespace ==
 +
 +
If you want to change the interlinespace of footnotes without impacting the rest of the document, try:
 +
<texcode>
 +
\startsetups[footnote:interlinespace]
 +
  \setupinterlinespace[line=2.8ex]
 +
\stopsetups
 +
 +
\setupnote[footnote][setups=footnote:interlinespace]
 +
</texcode>
 +
 +
 +
 +
 +
== Special Needs ==
 +
There are numerous ways to display and format footnotes. The following section gathers solutions to some special tasks asked on the mailing list.
 +
 +
=== Hyphenation ===
 +
* Is there a way to turn off hyphenation for the main body of my text, but enable it for the footnotes?
 +
 +
<texcode>
 +
\starttext
 +
 +
\setupnote[footnote][align={normal,hyphenated}]
 +
 +
\setupalign[hyphenated] \input tufte \footnote{\input tufte \relax} \par
 +
 +
\setupalign[nothyphenated,stretch,tolerant] \input tufte
 +
\footnote{\input tufte \relax} \par
 +
 +
\stoptext
 +
</texcode>
 +
 +
===Mark Placement===
 +
* How can I change the placement of the footnote mark?
 +
 +
Currently, footnotes are set so that the left end of the text of the footnote is aligned with the left edge of the text, and the footnote number hangs out into the margin. Is it possible to change this? (For instance, suppose I would like the number aligned to the text-edge, and then a fixed-width space, and then the text?)
 +
 +
This behavior is controlled by the <code>location</code> key of {{cmd|setupnotation}}. Here are some examples:
 +
 +
Note number is typeset in an area with a width of 1 cm, aligned at the left of the text area:
 +
 +
<context source="yes" text="produces">
 +
\definepapersize[wiki][width=8cm,height=8cm]
 +
 +
\setuppapersize[wiki][wiki]
 +
 +
\starttext
 +
 +
\showframe
 +
 +
\setupnotation[footnote][location=left,width=1cm]
 +
\setupnote[footnote][location=page,numbercommand=]
 +
 +
test \footnote{test}
 +
 +
\stoptext
 +
</context>
 +
 +
 +
Suppose that one wants a width of 1.5 em. Then
 +
 +
<texcode>
 +
\setupnote[footnote][margindistance=0em,command=\myfootnotecommand]
 +
\setupnotation[footnote][location=left,hang=1]
 +
 +
\def\myfootnotecommand#1{\hbox to 1.5em{#1.}}
 +
</texcode>
 +
 +
===Line Spacing===
 +
* Can I change the line spacing of a footnote independently of that of the main text?
 +
 +
The way to do this is not obvious, but this is the code you need to use:
 +
 +
<texcode>
 +
\def\setnotebodyfont
 +
{\switchtobodyfont[your desired font size]\setupinterlinespace[your desired spacing]}
 +
</texcode>
 +
 +
===Placement in Bidirectional Documents===
 +
* Can the footnote rule be placed on the right-hand side?
 +
 +
This is possible via setting the <code>rule</code> key of {{cmd|setupnote}} and {{cmd|definenote}}.  In right-to-left documents it is usually desirable to have right-to-left footnotes, where right-aligned footnote rules make more sense aesthetically.  Set <code>rule=right</code> to achieve this.  Prior to 01-04-2016 Beta, this would have turned off the footnote rule completely: one needed to use <code>rule={on,right}</code>.
 +
 +
In a BiDi document the direction of the surrounding text where the {{cmd|footnote}} is invoked determines the direction of the footnote block to come later.  Therefore, some footnotes may be right-to-left whereas others can be left-to-right.  Note that the text of the footnote does not play a role here.  The style designer decides whether left or right footnote rules make more sense.  However, there is a third option: setting <code>rule=paragraph</code> looks at the first paragraph in the footnote block and let that determine the position of the footnote rule.  In other words, if the footnote block of the page starts with an RTL text we end up with a right-aligned footnote rule and a left-aligned rule is typeset otherwise.  (The first line/paragraph of the footnote block on a page need not correspond to the start of a footnote; it can rather be the leftover from a long footnote that started on some previous page.)
  
[http://sexual.1ibanusiks.org/male-sexual-abuse-victim.html] male sexual abuse victim
+
For more fancy footnote rules, you can use <code>rulecommand=\MyRuleCommand</code>Look at the definition of <code>\normalnoterule</code> in strc-not.mkvi for a starting point.
[http://sexual.1ibanusiks.org/free-sexual-spanking.html] free sexual spanking
 
[http://sexual.1ibanusiks.org/dual-relationships--sexual-attractions.html] dual relationships  sexual attractions
 
[http://sexual.1ibanusiks.org/child-prostitution-and-sexual-exploitation.html] child prostitution and sexual exploitation
 
[http://sexual.1ibanusiks.org/acupuncture-sexual.html] acupuncture sexual
 
[http://sexual.1ibanusiks.org/accounts-of-sexual-addiction.html] accounts of sexual addiction
 
[http://sexual.1ibanusiks.org/sexual-pursuits.html] sexual pursuits
 
[http://sexual.1ibanusiks.org/sexual-massages.html] sexual massages
 
[http://sexual.1ibanusiks.org/sexual-intercourse-young-girls-pictures.html] sexual intercourse young girls pictures
 
[http://sexual.1ibanusiks.org/sexual-experience-game.html] sexual experience game
 
[http://sexual.1ibanusiks.org/sexual-deviants.html] sexual deviants
 
[http://sexual.1ibanusiks.org/sexual-abuse-college-students.html] sexual abuse college students
 
[http://sexual.1ibanusiks.org/photos-of-sexual-intercourse.html] photos of sexual intercourse
 
[http://sexual.1ibanusiks.org/photos-of-people-having-sexual-intercourse.html] photos of people having sexual intercourse
 
[http://sexual.1ibanusiks.org/laws-against-sexual-harassment.html] laws against sexual harassment
 
[http://sexual.1ibanusiks.org/interpretation-of-child-sexual-behavior-inventory.html] interpretation of child sexual behavior inventory
 
[http://sexual.1ibanusiks.org/how-to-remember-childhood-sexual-abuse.html] how to remember childhood sexual abuse
 
[http://sexual.1ibanusiks.org/englishfrench-dictionary-of-sexual-terms.html] englishfrench dictionary of sexual terms
 
[http://sexual.1ibanusiks.org/digitopuntura-sexual.html] digitopuntura sexual
 
[http://sexual.1ibanusiks.org/words-with-a-sexual-connotation.html] words with a sexual connotation
 
[http://sexual.1ibanusiks.org/womens-sexual-issues.html] womens sexual issues
 
[http://sexual.1ibanusiks.org/sexual-stories-free.html] sexual stories free
 
[http://sexual.1ibanusiks.org/sexual-position-photos.html] sexual position photos
 
[http://sexual.1ibanusiks.org/sexual-pony-play.html] sexual pony play
 
[http://sexual.1ibanusiks.org/sexual-intercourse-positions-pictures.html] sexual intercourse positions pictures
 
[http://sexual.1ibanusiks.org/sexual-hypnosis.html] sexual hypnosis
 
[http://sexual.1ibanusiks.org/sexual-harrasment-case-study.html] sexual harrasment case study
 
[http://sexual.1ibanusiks.org/sexual-enhancement-product.html] sexual enhancement product
 
[http://sexual.1ibanusiks.org/sexual-disorders.html] sexual disorders
 
[http://sexual.1ibanusiks.org/sexual-discrimination-handouts.html] sexual discrimination handouts
 
[http://sexual.1ibanusiks.org/sexual-activities.html] sexual activities
 
[http://sexual.1ibanusiks.org/sexual-abuse-nightmares.html] sexual abuse nightmares
 
[http://sexual.1ibanusiks.org/free-sexual-photos.html] free sexual photos
 
[http://sexual.1ibanusiks.org/free-photos-about-sexual-positions.html] free photos about sexual positions
 
[http://sexual.1ibanusiks.org/create-sexual-appeal.html] create sexual appeal
 
[http://sexual.1ibanusiks.org/teens-and-sexual-behavior.html] teens and sexual behavior
 
[http://sexual.1ibanusiks.org/sexual-power.html] sexual power
 
[http://sexual.1ibanusiks.org/sexual-positions--free-downloads.html] sexual positions free downloads
 
[http://sexual.1ibanusiks.org/sexual-positions-for-married-couples.html] sexual positions for married couples
 
[http://sexual.1ibanusiks.org/sexual-positions---pictures.html] sexual positions  pictures
 
[http://sexual.1ibanusiks.org/sexual-intercorse.html] sexual intercorse
 
[http://sexual.1ibanusiks.org/sexual-forum.html] sexual forum
 
[http://sexual.1ibanusiks.org/sexual-dysfunction-women.html] sexual dysfunction women
 
[http://sexual.1ibanusiks.org/sexual-domination.html] sexual domination
 
[http://sexual.1ibanusiks.org/private-sexual-nightclubs-in-georgia.html] private sexual nightclubs in georgia
 
[http://sexual.1ibanusiks.org/male-sexual-dysfunction-steroids.html] male sexual dysfunction steroids
 
[http://sexual.1ibanusiks.org/excerpts-from-the-sexual-life-of-catherine-m-.html] excerpts from the sexual life of catherine m
 
[http://sexual.1ibanusiks.org/erotic-sexual-intercourse.html] erotic sexual intercourse
 
[http://sexual.1ibanusiks.org/child-sexual-abuse-psychology-course.html] child sexual abuse psychology course
 
[http://sexual.1ibanusiks.org/casual-sexual-encounters-in-athens--georgia.html] casual sexual encounters in athens  georgia
 
[http://sexual.1ibanusiks.org/black-sexual-asses.html] black sexual asses
 
[http://sexual.1ibanusiks.org/bi-sexual-movies.html] bi sexual movies
 
[http://sexual.1ibanusiks.org/asian-sexual-massage.html] asian sexual massage
 
[http://sexual.1ibanusiks.org/adult-voyeur-sexual-acts-recorded-in-hotels.html] adult voyeur sexual acts recorded in hotels
 
[http://sexual.1ibanusiks.org/women-and-sexual-abuse-statistics.html] women and sexual abuse statistics
 
[http://sexual.1ibanusiks.org/unable-to-have-sexual-intercourse.html] unable to have sexual intercourse
 
[http://sexual.1ibanusiks.org/tao-sexual-yoga.html] tao sexual yoga
 
[http://sexual.1ibanusiks.org/summit-county-ohio-sexual-predator-search.html] summit county ohio sexual predator search
 
[http://sexual.1ibanusiks.org/stories-of-sexual-torture.html] stories of sexual torture
 
[http://sexual.1ibanusiks.org/sexual-torment.html] sexual torment
 
[http://sexual.1ibanusiks.org/sexual-performance-products.html] sexual performance products
 
[http://sexual.1ibanusiks.org/sexual-pain.html] sexual pain
 
[http://sexual.1ibanusiks.org/sexual-health-question.html] sexual health question
 
[http://sexual.1ibanusiks.org/sexual-health-data-set-va.html] sexual health data set va
 
[http://sexual.1ibanusiks.org/sexual-education-for-kids.html] sexual education for kids
 
[http://sexual.1ibanusiks.org/sexual-abuse-statistics-in-united-states.html] sexual abuse statistics in united states
 
[http://sexual.1ibanusiks.org/sexual-abuse-related-to-school-dropout-rates.html] sexual abuse related to school dropout rates
 
[http://sexual.1ibanusiks.org/sexual-abnormalities.html] sexual abnormalities
 
[http://sexual.1ibanusiks.org/mental-health-sexual-abuse.html] mental health sexual abuse
 
[http://sexual.1ibanusiks.org/male-sexual-enhancement-products.html] male sexual enhancement products
 
[http://sexual.1ibanusiks.org/health-care-industry-sexual-assault.html] health care industry sexual assault
 
[http://sexual.1ibanusiks.org/free-diagrams-of-sexual-positions.html] free diagrams of sexual positions
 
[http://sexual.1ibanusiks.org/first-time-bi-sexual-stories.html] first time bi sexual stories
 
[http://sexual.1ibanusiks.org/female-sexual-organs.html] female sexual organs
 
[http://sexual.1ibanusiks.org/contact-sexual-diseases-in-spas.html] contact sexual diseases in spas
 
[http://sexual.1ibanusiks.org/womens--sexual-fantasies-about-men.html] womens  sexual fantasies about men
 
[http://sexual.1ibanusiks.org/woman-on-top-sexual-positions.html] woman on top sexual positions
 
[http://sexual.1ibanusiks.org/statistics-on-sexual-harassment.html] statistics on sexual harassment
 
[http://sexual.1ibanusiks.org/sexual-wedge-pillows.html] sexual wedge pillows
 
[http://sexual.1ibanusiks.org/sexual-satisfaction.html] sexual satisfaction
 
[http://sexual.1ibanusiks.org/sexual-relationship-uk.html] sexual relationship uk
 
[http://sexual.1ibanusiks.org/sexual-predators-nevada.html] sexual predators nevada
 
[http://sexual.1ibanusiks.org/sexual-practices.html] sexual practices
 
[http://sexual.1ibanusiks.org/sexual-position-for-deeper-intimacy.html] sexual position for deeper intimacy
 
[http://sexual.1ibanusiks.org/sexual-intercourse-stories.html] sexual intercourse stories
 
[http://sexual.1ibanusiks.org/sexual-innuendos.html] sexual innuendos
 
[http://sexual.1ibanusiks.org/sexual-harrassment-misunderstood.html] sexual harrassment misunderstood
 
[http://sexual.1ibanusiks.org/sexual-fetish-gifts.html] sexual fetish gifts
 
[http://sexual.1ibanusiks.org/pennsylvania-sexual-harassment-law.html] pennsylvania sexual harassment law
 
[http://sexual.1ibanusiks.org/finding-registered-sexual-predators-in-your-area.html] finding registered sexual predators in your area
 
[http://sexual.1ibanusiks.org/deviant-sexual-behavior-in-children.html] deviant sexual behavior in children
 
[http://sexual.1ibanusiks.org/child-sexual-abuse-signs.html] child sexual abuse signs
 
[http://sexual.1ibanusiks.org/cave-of-sexual-transformation.html] cave of sexual transformation
 
[http://sexual.1ibanusiks.org/alcohol-and-women-and-sexual-disfunction.html] alcohol and women and sexual disfunction
 
[http://sexual.1ibanusiks.org/teacherstudent-sexual-relationship.html] teacherstudent sexual relationship
 
[http://sexual.1ibanusiks.org/soft-porn-sexual-movies-for-women.html] soft porn sexual movies for women
 
[http://sexual.1ibanusiks.org/sexual-transmited-disease.html] sexual transmited disease
 
[http://sexual.1ibanusiks.org/sexual-positions-photo.html] sexual positions photo
 
[http://sexual.1ibanusiks.org/sexual-positions-during-pregnancy.html] sexual positions during pregnancy
 
[http://sexual.1ibanusiks.org/sexual-movies.html] sexual movies
 
[http://sexual.1ibanusiks.org/sexual-mastery-system.html] sexual mastery system
 
[http://sexual.1ibanusiks.org/sexual-assault-victims.html] sexual assault victims
 
[http://sexual.1ibanusiks.org/research-on-sexual-diversity.html] research on sexual diversity
 
[http://sexual.1ibanusiks.org/recidivisim-for-sexual-offenders.html] recidivisim for sexual offenders
 
[http://sexual.1ibanusiks.org/quizzes-sexual-purity-tests.html] quizzes sexual purity tests
 
[http://sexual.1ibanusiks.org/photos-of-sexual-couples.html] photos of sexual couples
 
[http://sexual.1ibanusiks.org/non-sexual-erections.html] non sexual erections
 
[http://sexual.1ibanusiks.org/muisca-sexual-orgies.html] muisca sexual orgies
 
[http://sexual.1ibanusiks.org/montgomery-county-police-sexual-harassment.html] montgomery county police sexual harassment
 
[http://sexual.1ibanusiks.org/interrogation-sexual.html] interrogation sexual
 
[http://sexual.1ibanusiks.org/forcing-him-to-eat-shit-perverted-sexual-whippings.html] forcing him to eat shit perverted sexual whippings
 
[http://sexual.1ibanusiks.org/attorney-ethics-client-sexual-illinois.html] attorney ethics client sexual illinois
 
[http://sexual.1ibanusiks.org/uncensoned-sexual-video-clips.html] uncensoned sexual video clips
 
[http://sexual.1ibanusiks.org/the-art-of-sexual-ecstasy.html] the art of sexual ecstasy
 
[http://sexual.1ibanusiks.org/sexual-positions-for-orgasm.html] sexual positions for orgasm
 
[http://sexual.1ibanusiks.org/sexual-intercourse-photos.html] sexual intercourse photos
 
[http://sexual.1ibanusiks.org/sexual-impaler.html] sexual impaler
 
[http://sexual.1ibanusiks.org/sexual-harassment-words.html] sexual harassment words
 
[http://sexual.1ibanusiks.org/sexual-harassment-training.html] sexual harassment training
 
[http://sexual.1ibanusiks.org/sexual-dream-dictionary.html] sexual dream dictionary
 
[http://sexual.1ibanusiks.org/sexual-cards.html] sexual cards
 
[http://sexual.1ibanusiks.org/permanent-sexual-arousel.html] permanent sexual arousel
 
[http://sexual.1ibanusiks.org/mens-sexual-problems.html] mens sexual problems
 
[http://sexual.1ibanusiks.org/halal-and-haram-sexual-islam.html] halal and haram sexual islam
 
[http://sexual.1ibanusiks.org/genetic-sexual-attraction.html] genetic sexual attraction
 
[http://sexual.1ibanusiks.org/bi-sexual-men-having-sex-pics.html] bi sexual men having sex pics
 
[http://sexual.1ibanusiks.org/answers-to-male-sexual-problems.html] answers to male sexual problems
 
[http://sexual.1ibanusiks.org/waffle-house-sexual-harassment.html] waffle house sexual harassment
 
[http://sexual.1ibanusiks.org/tyler-stevens-sexual-assault-crime.html] tyler stevens sexual assault crime
 
[http://sexual.1ibanusiks.org/trazadone---sexual-side-effects.html] trazadone  sexual side effects
 
[http://sexual.1ibanusiks.org/strange-sexual-practices.html] strange sexual practices
 
[http://sexual.1ibanusiks.org/sexual-video-clips-free.html] sexual video clips free
 
[http://sexual.1ibanusiks.org/sexual-positions-diagrams.html] sexual positions diagrams
 
[http://sexual.1ibanusiks.org/sexual-posion.html] sexual posion
 
[http://sexual.1ibanusiks.org/sexual-health-moncton.html] sexual health moncton
 
[http://sexual.1ibanusiks.org/sexual-experience.html] sexual experience
 
[http://sexual.1ibanusiks.org/sexual-compatibility-in-the-signs.html] sexual compatibility in the signs
 
[http://sexual.1ibanusiks.org/sexual-artwork.html] sexual artwork
 
[http://sexual.1ibanusiks.org/sexual-abuse-poems.html] sexual abuse poems
 
[http://sexual.1ibanusiks.org/images-of-sexual-posititons.html] images of sexual posititons
 
[http://sexual.1ibanusiks.org/illustrated-book-of-sexual-records.html] illustrated book of sexual records
 
[http://sexual.1ibanusiks.org/help-and-advice-on-sexual-deseses.html] help and advice on sexual deseses
 
[http://sexual.1ibanusiks.org/frequent-sex-partners-symptoms-sexual-active.html] frequent sex partners symptoms sexual active
 
[http://sexual.1ibanusiks.org/free-bi-sexual-sex-pics.html] free bi sexual sex pics
 
[http://sexual.1ibanusiks.org/feeling-guilty-during-sexual-activities.html] feeling guilty during sexual activities
 
[http://sexual.1ibanusiks.org/constant-sexual-stimulation-devices.html] constant sexual stimulation devices
 
[http://sexual.1ibanusiks.org/bhabhi-sexual-stories.html] bhabhi sexual stories
 
[http://sexual.1ibanusiks.org/sonic-sexual.html] sonic sexual
 
[http://sexual.1ibanusiks.org/sexual-tourism-in-morocco.html] sexual tourism in morocco
 
[http://sexual.1ibanusiks.org/sexual-teasing.html] sexual teasing
 
[http://sexual.1ibanusiks.org/sexual-preditors-psycological-profile.html] sexual preditors psycological profile
 
[http://sexual.1ibanusiks.org/sexual-positions-to-aid-in-conception.html] sexual positions to aid in conception
 
[http://sexual.1ibanusiks.org/sexual-positions-instruction.html] sexual positions instruction
 
[http://sexual.1ibanusiks.org/sexual-intercourse-education.html] sexual intercourse education
 
[http://sexual.1ibanusiks.org/sexual-intercourse-caught-on-the-webcam.html] sexual intercourse caught on the webcam
 
[http://sexual.1ibanusiks.org/sexual-humiliation.html] sexual humiliation
 
[http://sexual.1ibanusiks.org/sexual-harrasment-training.html] sexual harrasment training
 
[http://sexual.1ibanusiks.org/sexual-fisting.html] sexual fisting
 
[http://sexual.1ibanusiks.org/sexual-crimes-in-virginia.html] sexual crimes in virginia
 
[http://sexual.1ibanusiks.org/sexual-assault-disabled.html] sexual assault disabled
 
[http://sexual.1ibanusiks.org/pictures-of-sexual-positions.html] pictures of sexual positions
 
[http://sexual.1ibanusiks.org/nude-female-photos-sexual-positions.html] nude female photos sexual positions
 
[http://sexual.1ibanusiks.org/kirkland-ellis-sexual-harassment.html] kirkland ellis sexual harassment
 
[http://sexual.1ibanusiks.org/indiana-child-sexual-abuse-statutes.html] indiana child sexual abuse statutes
 
[http://sexual.1ibanusiks.org/hot-sexual-women.html] hot sexual women
 

Revision as of 08:10, 24 October 2017

< Structurals | References >


TODO: This page needs to be reorganized: progression from simple to more complex use is a bit circular.. (See: To-Do List)


First View

\section{First}

Way to \ConTeXt\footnote{First footnote.} is painful.

\section{Second}

But \ConTeXt\ is amazing.\footnote{Second footnote}

\placetable
  {Complex Table\footnote{A table head footnote.}}
  {\startlocalfootnotes
   \placelegend
     {\starttable[|l|l|]
      \HL
      \NC First Column \NC Second Column \NC \FR
      \HL
      \NC East\footnote{Footnote inside graphic.} \NC  North \NC \FR
      \NC West         \NC   South          \NC \LR
      \HL
      \stoptable}
     {\placelocalfootnotes}
   \stoplocalfootnotes}

Here we have footnotes of two outer ones, a local one (in the table) and a postponed one (in the graphic).

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. Footnotes can be referenced with the usual \in and \at macros (see References), or the note itself can be reproduced 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 \in{footnote}[footA] on \at{page}[footA], denoted by \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 with \setupnotation[footnote] (MkII: \setupfootnotes). (The command page for the MkIV version is still missing, refer to the old version; translate location to alternative and conversion to numberconversion.)

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:

\setupnotation[footnote][way=bypage,numberconversion=set 2]

In MkII this was:

\setupfootnotes[way=bypage, conversion=set 2]

This produces the following footnotes, using the text of the previous example.

Alternate Footnote Locations

The \setupfootnotes (MkII) 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, or even to place footnotes after each paragraph or subsection.

\setupfootnotes[location=text] % MkII
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 more text, with more footnotes\footnote{Specifically, this one.}.
\placefootnotes

Footnotes at the end of each chapter

Another elegant (MkIV) example places all footnotes in a subject (unnumbered section) at the end of each chapter. It is intelligent and will not create an empty subject when there are no footnotes to be placed. At no extra cost, the subject title "Footnote" will be singular or plural depending if there is only one or several footnotes to be placed:

\startsetups chapter:after
     \ifcase\rawcountervalue[footnote]\relax
     \or
         \startsubject[title=Footnote]
             \placefootnotes
         \stopsubject
     \else
         \startsubject[title=Footnotes]
             \placefootnotes
         \stopsubject
     \fi
\stopsetups

\setupnotes[location=none]
\setupnotation[way=bychapter]

\setuphead[chapter][aftersection=\setups{chapter:after}]

Footnotes in the margin

First we switch off footnote placement, then we place them manually into the margin.

\setupnote[footnote][location=none]
\setupnotation[footnote][
    align=flushleft,
    location=serried,
    width=broad,
]
\setuptexttexts[margin][]
    [{\framed[%
    align={right,bottom},
    frame=off,
    height=\textheight,
    width=\rightmarginwidth
    ]{\placenotes[footnote]}}]

... but not at the bottom

Hraban wanted numbered margin notes, starting in on the same line as the referenced text (like a combination of \inmargin and \footnote). Wolfgang answered:

The only way I found to achieve this is by flushing the notes at the end of each footnote entry which can be done with the next key. The positioning of each margin text is tricky because \placenotes adds skips at the begin of the block (which can be reduced with \placelocalnotes) but a inline version of the command (e.g. \placeinlinenotes) which flushes the notes without vertical skips and a rule at the begin would help.

\define\PlaceFootnote
  {\inrightmargin{\vtop{\placelocalnotes[footnote][before=,after=]}}}

\setupnote
  [footnote]
  [location=text,
   bodyfont=,
   next=\PlaceFootnote]

\setupnotation
  [footnote]
  [alternative=serried]

\setuplayout
  [width=12cm,
   rightmargindistance=0.5cm,
   rightmargin=5cm]

\starttext
\dorecurse{6}{\input ward\expanded{\footnote{This is a footnote \recurselevel}} }
\stoptext

Footnote Formatting

You can change the font used in the footnotes with \setupfootnotedefinition.

Footnotes can be placed in multiple columns, using the n=number option of \setupnotes or \setupnote (MkII: \setupfootnotes).

\setupfootnotes[n=3] % MkII
This\footnote[footA](Or that\footnote{Or the other.}, if you prefer.} is a sentence
with a footnote\footnote{Actually, two footnotes; this one and \in{footnote}[footA]
on \at{page}[footA], denoted by \note[footA].}.  


TODO: This is ugly, and points up some ConTeXt bugs that need to be fixed. (See: To-Do List)


Footnotes in pagraph form

When enabling footnotes (actually notes and linenotes) in pagraph form, there is some risk in having no right separation between body and the notes. This can be partially avoided using width=broad (Hans dixit).

\setupnote
   [footnote]
   [paragraph=yes]

\setupnotation
   [footnote]
   [alternative=serried,
    width=broad,
    distance=.5em,
    display=no]

\starttext
     \dorecurse{500}{text text text\footnote{note} }
\stoptext

Footnotes in Floats

Floats cannot include normal footnotes, because they are likely to float to another page from the page on which they were defined, thus getting the footnotes out of order. Thus, to include footnotes in a float, one must use local footnotes. This table, which uses the \placelegend command to create a place for the footnotes, illustrates the process:

\startlocalfootnotes[n=2]
\placetable{A table with footnotes.}
  \placelegend
    {\starttable[|l|r|]
      \HL
      \VL One\footnote{First} \VL Two\footnote{Second} \VL\FR
      \VL Three\footnote{Third} \VL Four\footnote{Fourth} \VL\LR
      \HL
      \stoptable}
    {\placelocalfootnotes}
\stoplocalfootnotes

When using natural tables, the above leads to alignment problems. An alternative is to use:

\defineframed[noteframed]
\setupframed[noteframed]
  [width=\hsize,
   frame=off,
   align=right,
   %height=fit,
   top=\hbox\bgroup,
   bottom=\egroup]

\starttext

\startlocalfootnotes[n=0]
\placetable
{Caption}
{\placelegend
{\bTABLE
\bTR\bTD One\footnote{First} \eTD\bTD Two\footnote{Second} \eTD\eTR
\bTR\bTD Three\footnote{Third} \eTD\bTD Four\footnote{Fourth} \eTD\eTR
\eTABLE}
{\noteframed{\placelocalfootnotes}}}
\stoplocalfootnotes

\stoptext

Footnotes in a box

Note that it is necessary to add the command \automigrateinserts (for example before \starttext) in order to correctly handle the placement of footnotes within a box such as \framed or \placeongrid...

Placing Footnotes Manually

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 \footnotetext command (which creates a footnote without placing the corresponding symbol in the text) and the \note 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 \footnotetext 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 \note commands within the relevant footnotes. In this example, the lines are broken for clarity; note the % at the end of each line to prevent spurious spaces in the text.

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.

Suppressing Footnotes Entirely

The boolean \notesenabled controls whether footnotes are processed at all. If set to false, invocations of \footnote will be ignored. After it is set to true again ConTeXt will pick up the footnote counters at their previous state, so numbering will continuous.

\setuppapersize [A7]
\starttext

  \dorecurse {2} { foo \footnote {bar} baz \par }

  \notesenabledfalse

  \dorecurse {3} { foo \footnote {bar} baz \par }

  \notesenabledtrue

  \dorecurse {2} { foo \footnote {bar} baz \par }

\stoptext

Color of Footnote Links that Refer to the Same Page

If you have set footnotes to be interactive and have noticed that your footnote links become red, it is because they are linked to content on the same page on which they appear. This means they are governed by \setupinteraction’s attribute contrastcolor, rather than color.

To fix the redness (or change it to a different color), try:

\setupinteraction[state=start,color=black,contrastcolor=black]

Changing footnote interlinespace

If you want to change the interlinespace of footnotes without impacting the rest of the document, try:

\startsetups[footnote:interlinespace]
  \setupinterlinespace[line=2.8ex]
\stopsetups

\setupnote[footnote][setups=footnote:interlinespace]



Special Needs

There are numerous ways to display and format footnotes. The following section gathers solutions to some special tasks asked on the mailing list.

Hyphenation

  • Is there a way to turn off hyphenation for the main body of my text, but enable it for the footnotes?
 \starttext

 \setupnote[footnote][align={normal,hyphenated}]

 \setupalign[hyphenated] \input tufte \footnote{\input tufte \relax} \par

 \setupalign[nothyphenated,stretch,tolerant] \input tufte
 \footnote{\input tufte \relax} \par

 \stoptext

Mark Placement

  • How can I change the placement of the footnote mark?

Currently, footnotes are set so that the left end of the text of the footnote is aligned with the left edge of the text, and the footnote number hangs out into the margin. Is it possible to change this? (For instance, suppose I would like the number aligned to the text-edge, and then a fixed-width space, and then the text?)

This behavior is controlled by the location key of \setupnotation. Here are some examples:

Note number is typeset in an area with a width of 1 cm, aligned at the left of the text area:

\definepapersize[wiki][width=8cm,height=8cm]

\setuppapersize[wiki][wiki]

\starttext

\showframe

\setupnotation[footnote][location=left,width=1cm]
\setupnote[footnote][location=page,numbercommand=]

test \footnote{test}

\stoptext 

produces


Suppose that one wants a width of 1.5 em. Then

\setupnote[footnote][margindistance=0em,command=\myfootnotecommand]
\setupnotation[footnote][location=left,hang=1]

\def\myfootnotecommand#1{\hbox to 1.5em{#1.}}

Line Spacing

  • Can I change the line spacing of a footnote independently of that of the main text?

The way to do this is not obvious, but this is the code you need to use:

\def\setnotebodyfont
{\switchtobodyfont[your desired font size]\setupinterlinespace[your desired spacing]} 

Placement in Bidirectional Documents

  • Can the footnote rule be placed on the right-hand side?

This is possible via setting the rule key of \setupnote and \definenote. In right-to-left documents it is usually desirable to have right-to-left footnotes, where right-aligned footnote rules make more sense aesthetically. Set rule=right to achieve this. Prior to 01-04-2016 Beta, this would have turned off the footnote rule completely: one needed to use rule={on,right}.

In a BiDi document the direction of the surrounding text where the \footnote is invoked determines the direction of the footnote block to come later. Therefore, some footnotes may be right-to-left whereas others can be left-to-right. Note that the text of the footnote does not play a role here. The style designer decides whether left or right footnote rules make more sense. However, there is a third option: setting rule=paragraph looks at the first paragraph in the footnote block and let that determine the position of the footnote rule. In other words, if the footnote block of the page starts with an RTL text we end up with a right-aligned footnote rule and a left-aligned rule is typeset otherwise. (The first line/paragraph of the footnote block on a page need not correspond to the start of a footnote; it can rather be the leftover from a long footnote that started on some previous page.)

For more fancy footnote rules, you can use rulecommand=\MyRuleCommand. Look at the definition of \normalnoterule in strc-not.mkvi for a starting point.