0

I want to have the "^" sign over the "=" sign.

I have tried \newcommand{\defeq}{\overset{^}{=}}, \newcommand{\defeq}{\stackrel{\text{^}}{=}}, \newcommand{\defeq}{\overset{\^}{=}} and different combinations of these, but none have worked yet. Also, I would like my command only to work in math mode (in the {$$}, \begin{equation}, and such environments). I do not want it to work in textmode, so the output of \defeq , {$\defeq$} should be , ^= (but the ^ over the =).

Vebjorn
  • 1,778
  • Yes @campa. However, that post did not include how to make the command exclusively work in math mode. So it is not entirely a duplicate. – Vebjorn Oct 29 '19 at 12:58
  • Sorry, I misunderstood that last sentence (close vote retracted). But why would you want that? – campa Oct 29 '19 at 13:26

1 Answers1

3

You can try \newcommand{\defeq}{\mathrel{\hat=}}.