# \cancel: org-mode Latex export yes, HTML export no [closed]

The title says it all. I've got \cancel working fine in my org-mode Latex export, but org-mode HTML export doesn't know about, render \cancel. Basically I need to strike through something in a math formula, like I'm "canceling out" a factor. Someone suggested MathJax is the problem, i.e., MathJax doesn't know about \cancel.

...
$\frac{1}{(2^3)(5)} + \frac{1}{3^4} + \frac{1}{\cancel{(2^2)}(23)}$

What can a poor org-mode beginner do?

## closed as off-topic by ChrisS, Svend Tveskæg, moewe, user13907, egregOct 9 '15 at 10:27

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – ChrisS, Svend Tveskæg, moewe, Community, egreg
If this question can be reworded to fit the rules in the help center, please edit the question.

• mathjax is off-topic here – user31729 Oct 8 '15 at 13:15

Off-topic or no, this is what I finally found, i.e., put this code somewhere at the top of your org-mode file:

#+begin_html
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {extensions: ["cancel.js"]},
tex2jax: {
inlineMath: [ ['$','$'], ['\$','\$'] ],
processEscapes: true
}
});
</script>
#+end_html

...and \cancel can be used just fine in an HTML export. Also, this

(setq org-html-mathjax-template (concat org-html-mathjax-template "
<script type=\"text/x-mathjax-config\">