I want to use \cancel{·}
in mathjax. with a crossed line of different color, explained here.
I use
\[
enter code here
\require{xcolor}
\require{cancel}
\renewcommand\CancelColor{\color{red}}
\cancel{x^2}
\]
But is not working. Any ideas?
for future references, a good answer was given in tex Stack Exchange here