I want to use \cancel command in TeXnicCenter but it is giving error while using that..
Basically I want to show cancellation of 2 with 2, using \frac.
Like:
\frac{2}{2} but I want to show it like: \(\frac{\cancel{2}}{\cancel{2}}\).
And I am unable to do it, can anybody please tell me how to do it..

cancelpackage? – Joseph Wright Apr 09 '13 at 07:23\usepackage{cancel}– Qrrbrbirlbel Apr 09 '13 at 20:31\cancelcomes from thecancelpackage. i found this question (and the answer) very helpful and am surprised it was closed as "too localized." please re-open. – abcd Sep 15 '17 at 15:08