How to strike out inside LaTeX equations?

Posted by Aamir on Stack Overflow See other posts from Stack Overflow or by Aamir
Published on 2010-04-18T21:00:16Z Indexed on 2010/04/18 21:03 UTC
Read the original article Hit count: 774

Please see the snippet below and tell me how can I achieve the same strike-out effect as in the main text. I am using the version of LaTeX from the latest Ubuntu repositories.

\documentclass{article}
\usepackage{ulem}
\begin{document}
The sout tag works perfect in the \sout{main text area} but not inside the equations.
$$
list = [1, \sout{2}, 3, \sout{4}, 5, \sout{6}, 7, \sout{8}, 9, \sout{10}]
$$
Any clue?
\end{document}

Here is LaTeX output

© Stack Overflow or respective owner

Related posts about latex

Related posts about strikethrough