Is there a way to do strikethrough math formula in the math mode?
I had known this:
\usepackage[normalem]{ulem}
\sout{ ...}
and
\usepackage{soul}
\st{...}
are useful but they can not be used in the math mode. So one needs to turn it to the \text mode then do it. Is there any better way out?
I also know this:
\usepackage[makeroom]{cancel}
\cancel{}
\cancelto{}
but they do not look like the strikethrough lines.
Thanks! See also this.
Best Answer
This will get you started. Note, this does not strike out each component individually; you have to do that yourself.
The
\bgroup
...\egroup
serves two purposes. First is preserves the contents of\box0
. It also means you can use\mathsout
as an exponent etc. without having to enclose it in braces.