Changes

Jump to navigation Jump to search
1,085 bytes added ,  08:07, 24 October 2017
add section about margin notes
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