On 6/8/24 13:16, seyal.zav...@gmail.com wrote:
> Hi all,
>
> There's a problem when I want to define the note so that it's
> displayed according to the size and font of the text:

Not sure I’m getting your point.

But this should show a difference in font size:

  \definenote[Mynote]
  \starttext
  \color[green]{\tfd hello \Mynote{refrence} not really required}

  \switchtobodyfont[36pt]
  \color[green]{hello \Mynote{refrence} not really required}
  \stoptext

> but i cannot set it for \tfxx.
> also it's relative to my main body font, and my current font andI
> color doesn't apply to text.
> for example if my current text has color red with another font the
> note doesn't change according to it, and will display identical
> everywhere.

Could you show how the second paragraph above doesn‘t inherit both size
and color from the current font?

Sorry, otherwise I simply don’t get it.

> And when I try to define it like this MWE:
>
> \definenote[Mynote][location=text,before={},]
> \setupnote[Mynote]
>     [location=left,
>      textcommand= \scale [height=0.7ex] \raise 0.2ex\hbox,
>     ]

I don’t think the text command value is right.

Besides, if you intend the second paragraph from the sample, this
approach looks unnecessarily complex for me.

I hope it might help,

Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to