seyal zavira schrieb am 08.06.2024 um 17:09:
Thanks
sorry for incomplete example the code below shows the problem better: \setupinteraction[state=start] \definenote[Mynote][location=text,before={},] \setupnote[Mynote] [location=left, textcommand={\tfa \raise 0.2ex\hbox}, ]
\definefont[highfont][name:ibmplexsansbold*default at 10pt] \definehighlight[newhigh][color=darkblue,style=highfont]
\starttext \input{knuth} \Mynote{refrence}
\startitemize \item \newhigh{\input{knuth}\Mynote{refrenceTwo}} \stopitemize
\placenotes[Mynote] \stoptext
as you can see the note number has same style all over the document. but i want it to have style base on current font and if the font changes, the style should change, while maintaining the ratio of sizes(i.e., at the half of current font). i attached the resulted pdf
1. You can use the \offset command to raise the footnote number. 2. Disable the value of the textstyle to ensure you get current style for the footnote number. %%%% begin example \define[1]\MyNoteTextcommand {\offset[y=-0.2ex]{#1}} \definenote [Mynote] \setupnote [Mynote] [location=text, textstyle=, textcommand=\MyNoteTextcommand] \starttext \input{knuth}\Mynote{First note.} \startstyle[style=\ss] \input{knuth}\Mynote{Second note.} \stopstyle \startstyle[style=\tt\bf] \input{knuth}\Mynote{Third note.} \stopstyle \placenotes[Mynote] \stoptext %%%% end example Wolfgang