I am having trouble getting the strikeout to work in this equation. I'd appreciate your help. enter image description here

  • 1
    Welcome to TSE. What did you try? Jan 18, 2022 at 8:22
  • Thanks. I have tried variations of the \sout [\frac{(x-2)\sout{(x+1)}}{x+1}=x-2]
    – tina
    Jan 18, 2022 at 19:47

1 Answer 1


Welcome to TeX:SE!

For such purposes is package cancel:


\frac{(x-2)\cancel{(x+1)}}{\cancel{x+1}} = x-2

enter image description here

  • @Mico, you are right. I forgot on divisor. Corrected now.
    – Zarko
    Jan 18, 2022 at 8:39
  • The full code provided did not work however, shortened to this works. [\frac{(x-2)\cancel{(x+1)}}{\cancel{x+1}} = x-2]. Thanks
    – tina
    Jan 18, 2022 at 19:54
  • @tina, I do not understand your comment. What does not work? What error you receive? My solution (as it is) definitely works, so I wonder what you change in your test.
    – Zarko
    Jan 18, 2022 at 21:57
  • I cut and pasted your code (changed nothing) and put it into my document. When I save, if it doesn't work, I see the code; if it does work I see the formatted equation. When I removed the first three lines and the last line of your code - it did work I saw the equation you have screen clipped above. For some reason the system I use doesn't need? like? the begin/end code. I have experienced this issue in the past. Thank you for helping you solved it anyway. :-)
    – tina
    Jan 19, 2022 at 19:24

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