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.
Basically you use CSS, like in jqMath highlight box like bbox in MathJax/MathJs . So write eg $$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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.