ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Scale notation base on current font
@ 2024-06-08 11:16 seyal.zavira
  2024-06-08 11:54 ` [NTG-context] " Pablo Rodriguez via ntg-context
  2024-06-08 14:02 ` vm via ntg-context
  0 siblings, 2 replies; 8+ messages in thread
From: seyal.zavira @ 2024-06-08 11:16 UTC (permalink / raw)
  To: ntg-context

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:

this MWE change the notation size:
\definenote[Mynote][location=text,before={},]
\setupnote[Mynote]
    [location=left,
     textcommand=\tfb \raise 0.2ex\hbox,
    ]
\starttext
hello \Mynote{refrence}
\placenotes[Mynote]
\stoptext

but i cannot set it for \tfxx.
also it's relative to my main body font, and my current font and 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.

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,
    ]
\starttext
hello \Mynote{refrence}
\placenotes[Mynote]
\stoptext

it doesn't work.

how i should define such notes?
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-06-08 16:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-08 11:16 [NTG-context] Scale notation base on current font seyal.zavira
2024-06-08 11:54 ` [NTG-context] " Pablo Rodriguez via ntg-context
2024-06-08 14:02 ` vm via ntg-context
2024-06-08 15:09   ` seyal zavira
2024-06-08 15:25     ` Wolfgang Schuster
2024-06-08 15:49       ` seyal.zavira
2024-06-08 15:35     ` Pablo Rodriguez via ntg-context
2024-06-08 16:56       ` seyal.zavira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).