Changes

Jump to navigation Jump to search
1,767 bytes added ,  08:10, 24 October 2017
m
Hint about missing MkIV command page
==Footnote Numbering==
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>
</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:
\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>
{{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]).
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>
===Mark Placement===
* How can I change the placement of the footnote mark?
</texcode>
===Line Spacing===
* Can I change the line spacing of a footnote independently of that of the main text?
</texcode>
===Placement in Bidirectional Documents===
* Can the footnote rule be placed on the right-hand side?

Navigation menu