[Tex/LaTex] Annotation on mathematical symbol math-mode Is it possible to annotate the equal-symbol like in the picture below? \begin{equation} E[|A\cup B|]=E[|A|+|B|-|A\cap B|]=E[|A|]+E[|B|]-E[|A\cap B|] \end{equation} Best Answer You could use the \overset macro, which is provided by the amsmath package: \documentclass{article} \usepackage{amsmath} % for \overset and \text macros \begin{document} \begin{equation} E[|A\cup B|]=E[|A|+|B|-|A\cap B|] \overset{\text{linearity}}{=} E[|A|]+E[|B|]-E[|A\cap B|] \end{equation}\ \end{document} Addendum: If you also need the vertical arrow below "linearity", just replace \overset{\text{linearity}}{=} with \overset{\substack{\text{linearity} \\ \downarrow}}{=} The \substack macro is also provided by the amsmath package. Related Solutions[Tex/LaTex] Mathematical symbol looks bad in glossary You could try \displaystyle which forces the rendering of math output like in display. You should be cautious because of the line spacing that this causes, which could be ugly. Anyway here is an example \documentclass[a4paper]{memoir} \usepackage{amsmath} \begin{document} \begin{align*} \sum\limits_{\tau=-\infty}^{T}\mathop{}_{\mkern -25mu \delta} \end{align*} $\displaystyle\sum\limits_{\tau=-\infty}^{T}\mathop{}_{\mkern -20mu \delta}$ \end{document} with result Without glossary code it's difficult to know any better though Related Question
Best Answer
You could use the
\overset
macro, which is provided by theamsmath
package:Addendum: If you also need the vertical arrow below "linearity", just replace
with
The
\substack
macro is also provided by theamsmath
package.