Mathematical notation in latex

737 Views Asked by At

How can I write in latex the $=$ symbol with the word 'def' above it??!

It is because Ive to make use of a definition.

2

There are 2 best solutions below

0
On BEST ANSWER

\stackrel{\mathrm{def}}{=} produces your desired $\stackrel{\text{def}}{=}$

2
On

If AMSMATH package has been loaded, is to use "\overset":

Example.

\documentclass{article}
\usepackage{amsmath}

\newcommand\myeq{\mathrel{\overset{\makebox[0pt]  
{\mbox{\normalfont\tiny\sffamily def}}}{=}}}

\begin{document}

\begin{align*}
a &\myeq b \\
  &=c \\
  &= d.
\end{align*}

\end{document}

enter image description here