[Tex/LaTex] How to make this definition symbol “… =[df] …”

latex-misc

I'm not sure what LaTeX command to use to generate a definition that looks like this:

Triangle = [df] a shape with three sides

Best Answer

You can use this command (for math mode):

\newcommand\eqdef{\mathrel{{=}\textrm{\footnotesize[def]}}}

But a traditional \stackrel{\text{def}}{=} is just as fine:

enter image description here

Related Question