1

For example I want to show reduction of fractions to simplest terms by doing prime factorization on numerator and denominator and then showing common terms that can be eliminated.

So something like $6/8=(2)(3)/(2)(2)(2)=3/4$ but showing a strikethrough on the 2s on the top and bottom.

gorlux
  • 129
  • 5

1 Answers1

1

Basically you use CSS, like in jqMath highlight box like bbox in MathJax/MathJs. So write e.g. $$6/8={\cl"cancel"{(2)}(3)}/{\cl"cancel"{(2)}(2)(2)}=3/4$$ and then add .cancel { text-decoration: line-through } to your style sheet.

Community
  • 1
  • 1
Dave Barton
  • 1,429
  • 13
  • 12