Changes

Jump to navigation Jump to search
1,239 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>
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>

Navigation menu