How can I strike through an expression (e.g. "2x") obliquely, e.g. from bottom left to top right, so as to indicate cancellation? With the \sout command from the ulem package, I can only strike horizontally.


1 Answer 1


The cancel package seems to do exactly what you want:




\( \cancel{2x} \)

\( \cancel{1234567890} \)


cancelled items

If you're not satisfied with how the cancellation starts below the 1 and ends above the 0, have a look at Diagonal strikeout starting too low and ending too high.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .