I am writing a presentation with beamer
\documentclass[a4paper]{beamer}
\usepackage{amsmath}
\begin{document}
\begin{frame}
\[\hat{H}=\sum(-\frac{\nabla_i^2}{2m})+\sum(-\frac{\nabla_i^2}{2M})+\dots\]
\end{frame}
\end{document}
Now, I want to show in my presentation that we can ignore the 2nd term \sum(-\frac{\nabla_i^2}{2M})
possibly putting a cross over it.
So, in the next frame, I will like to have
\[\hat{H}=\sum(-\frac{\nabla_i^2}{2m})+
\A_RED_CROSS_OVER_THIS_TERM{\sum(-\frac{\nabla_i^2}{2M})}+\dots\]
Is this possible?
EDIT
\documentclass[a4paper]{beamer}
\usepackage{amsmath,color}
\definecolor{red}{RGB}{255,127,0}
\usepackage[makeroom]{cancel}
\renewcommand{\CancelColor}{red}
\begin{document}
\begin{frame}
\[\hat{H}=\sum(-\frac{\nabla_i^2}{2m})+\xcancel{\sum(-\frac{\nabla_i^2}{2M})}+\dots\]
\end{frame}
\end{document}
Tried this, and color has not changed.
cancel
and the command\cancel{<expression>}
or\xcancel{<expression>}
. You can even redefine the color if you use thecolor
package and the command\renewcommand{\CancelColor}{<color_command>}
.cancel
package for you to customize the display of the cross ftp.oleane.net/pub/CTAN/macros/latex/contrib/cancel/cancel.pdf