Hi Aditya,
On Mon, Oct 27, 2025 at 4:48 AM Aditya Mahajan <[email protected]> wrote:
>
> On Sun, 26 Oct 2025, Aditya Mahajan wrote:
>
> > Hi,
> >
> > How can I tweak the distance between an accent and a letter in math mode? I
> > want to use $\overleftarrow{x}$ and $\overrightarrow{x}$ and ideally I'd
> > like both of them to be visually placed at the same location as $\vec$, but
> > they are too high for my preference. How can I change that. (I want to do
> > this with stixtwo, if that matters).
>
> Actually, I realized that unicode has a left pointing vector accent as well.
> So, I can get what I want by simply defining
>
> \definemathtopaccent[\v!top][cev]["20D6]
> \definemathtopaccent[\v!top][vec]["20D7]
Good! There are
\definemathtopaccent[\v!top:\v!stretch][wideoverleftarrow] ["20D6]
\definemathtopaccent[\v!top:\v!stretch][wideoverrightarrow] ["20D7]
so you could look at the setups to see if you want top or top:stretch
(maybe you already did).
>
>
> > In the second example in $a^{\vec{π}}$ the vector has incorrect horizontal
> > spacing, but that is a separate issue I guess.
>
> This remains with stixtwo. It is not present with \cev, so not sure what is
> going on.
what is going on is that apparently stixtwo 20D7 has sty and ssty
versions, but 20D6 does not. This seems to be the only (of the few I
tested) fonts that has this. So, what happens is probably that we need
to take care of that situation. (Do you use them in superscripts or
was that just testing?)
/Mikael
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
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
___________________________________________________________________________________