ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: seyal zavira <seyal.zavira@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Scale notation base on current font
Date: Sat, 8 Jun 2024 11:09:11 -0400	[thread overview]
Message-ID: <CADiGc-mk1tT50mjfWbgVspuGQ41qyWF4R9PdYu9dZKWkxmZR9A@mail.gmail.com> (raw)
In-Reply-To: <df747866-a2a6-4b0b-8f60-3d5ffbf03d19@klankschap.nl>


[-- Attachment #1.1: Type: text/plain, Size: 1908 bytes --]

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

On Sat, Jun 8, 2024 at 10:04 AM vm via ntg-context <ntg-context@ntg.nl>
wrote:

>
>
> On 08/06/2024 13:16, seyal.zavira@gmail.com wrote:
> > \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
>
>
> add {} this works:
>
> \setupnote[Mnote]
> [location=left,
> textcommand={\scale[height=0.7ex] \raise 0.2ex\hbox},
> ]
>
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3188 bytes --]

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 15259 bytes --]

[-- Attachment #3: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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 15:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-08 11:16 [NTG-context] " 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 [this message]
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=CADiGc-mk1tT50mjfWbgVspuGQ41qyWF4R9PdYu9dZKWkxmZR9A@mail.gmail.com \
    --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).