ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] vertical position of \overparent in concrete math
@ 2024-08-05  8:33 fv leung
  2024-08-05 14:52 ` [NTG-context] " Mikael Sundqvist
  0 siblings, 1 reply; 2+ messages in thread
From: fv leung @ 2024-08-05  8:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I have a formula involving \overparent to be typeset in kpfonts and concrete.

There is no problem with kpfonts. But the \overparent in concrete is just too high. I can adjust the position with [distance=-1ex] . Is there a better way to adjust the position? Like using goodies (don't know how)?

Thanks in advance!

\starttext

\start
  
  \setupbodyfont[kpfonts,10pt]
  
  \m{\overparent{ABCD}=100\pi}

\stop

\start
  
  \setupbodyfont[concrete,10pt]
  
  \m{\overparent{ABCD}=100\pi}  \m{\overparent[distance=-1ex]{ABCD}=100\pi}

\stop

\stoptext
___________________________________________________________________________________
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] 2+ messages in thread

* [NTG-context] Re: vertical position of \overparent in concrete math
  2024-08-05  8:33 [NTG-context] vertical position of \overparent in concrete math fv leung
@ 2024-08-05 14:52 ` Mikael Sundqvist
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael Sundqvist @ 2024-08-05 14:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

On Mon, Aug 5, 2024 at 2:21 PM fv leung <fvleung@gmail.com> wrote:
>
> I have a formula involving \overparent to be typeset in kpfonts and concrete.
>
> There is no problem with kpfonts. But the \overparent in concrete is just too high. I can adjust the position with [distance=-1ex] . Is there a better way to adjust the position? Like using goodies (don't know how)?
>
> Thanks in advance!
>
> \starttext
>
> \start
>
>   \setupbodyfont[kpfonts,10pt]
>
>   \m{\overparent{ABCD}=100\pi}
>
> \stop
>
> \start
>
>   \setupbodyfont[concrete,10pt]
>
>   \m{\overparent{ABCD}=100\pi}  \m{\overparent[distance=-1ex]{ABCD}=100\pi}
>
> \stop
>
> \stoptext

In concrete-math.lfg, add

                {
                    tweak = "accentdimensions",
                },

after the flattenaccents tweak. (This will be added for the next release.)

/Mikael
___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2024-08-05 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-05  8:33 [NTG-context] vertical position of \overparent in concrete math fv leung
2024-08-05 14:52 ` [NTG-context] " Mikael Sundqvist

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).