How to write crossed-out math in LaTeX?



The comments above should have solved the problem. But I thought a minimal example will go a long way:


\[ x+\cancel{5y}=0\]
\[ x+\bcancel{5y}=0\]
\[ x+\xcancel{5y}=0\]
\[ x+\cancelto{\infty}{5y}=0\]

The first three commands work in text mode also i.e., \cancel{5y}, \bcancel{5y} and 
\xcancel{5y} works but \verb|\cancelto{\infty}{5y}| is not. 

Leave a Reply

Your email address will not be published. Required fields are marked *