How to create a nicer equal sign with a hat?

Basically I need something like https://tex.stackexchange.com/questions/103408/symbol-for-corresponds-to-equals-sign-with-hat – I have tried hat(=) or with ouset using ouset(=, hat) but both have the hat too small. I’m wondering if I can overlap just = and hat, but didn’t find a function to do that.

grafik

Thanks in advance!

I managed to do something very cursed:

$=#box(width: -.3em)[#move(dx: -.95em, $hat$)] AA BB$

$=#move(dx: -.95em, $hat$) AA BB$
  
$= AA BB$

but this feels very brittle and probably will break in surprising ways. Is there something a bit better?

Would that work for you? From Accent Function – Typst Documentation .

#math.hat("=")

$hat(=)$

image

2 Likes

How about eq.est?

4 Likes
$phi hat(=) hat("=") eq.est (0, theta.alt)$

grafik

I think I prefer the second one a bit better. Thansk a lot @vmartel08 and @ssotoen !

Edit: no I think hat("=") won’t work: it creates a very narrow gap:

You can use class to set the correct variant.

class("relation", hat("="))
3 Likes