ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: seyal.zavira@gmail.com
To: ntg-context@ntg.nl
Subject: [NTG-context] Scale notation base on current font
Date: Sat, 08 Jun 2024 11:16:07 -0000	[thread overview]
Message-ID: <171784536743.1997.15533790176512028090@cgl.ntg.nl> (raw)

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
___________________________________________________________________________________

             reply	other threads:[~2024-06-08 11:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-08 11:16 seyal.zavira [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=171784536743.1997.15533790176512028090@cgl.ntg.nl \
    --to=seyal.zavira@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).