This is difficult for me to explain, but how do I put words over a symbol? For instance, I want to add words over an equal sign. Anyone know the command/syntax for that?
Also adding ^
doesn't cut it…, I want the text to appear ON TOP.
syntax
This is difficult for me to explain, but how do I put words over a symbol? For instance, I want to add words over an equal sign. Anyone know the command/syntax for that?
Also adding ^
doesn't cut it…, I want the text to appear ON TOP.
Best Answer
You can use a combination of
\stackrel
and\mathclap
(from themathtools
package):If using
mathtools
is not an option, you can use a\makebox
of width0pt
:Even better, if
amsmath
has been loaded, is to use\overset
instead of\stackrel
; a little example using\tiny\sffamily
for "def" :Inside the argument for
\mbox
one can use some of the font modifiers, as I did in my second and third examples.Particularly, I don't like this kind of notation (it's not really necessary); you should consider if you really need the text above the equal sign.