I want to make it clear that 2 factors cancel out to simplify the equation for example.

I've tried using \st like this


but that just strikes through the center and i cant seem to compile with st inside of the $$

enter image description here

  • 2
    Just use the cancel package and say \cancel{...} for the expressions you wish to strike out. \documentclass[fleqn]{article} \usepackage{amsmath} \usepackage{cancel} \begin{document} \begin{align*} \frac{x^2-5x+6}{-x+2} & =\frac{(x-2)(x-3)}{-(x-2)} \\ &=\frac{\cancel{(x-2)}(x-3)}{-\cancel{(x-2)}}\\ &=-x+3 \end{align*} \end{document} modulo typos. – Schrödinger's cat Sep 11 '19 at 20:49

Browse other questions tagged or ask your own question.