Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mathJaxOpt = document.createElement('script');
- mathJaxOpt.type = 'text/x-mathjax-config';
- mathJaxOpt[(mathJaxOpt.innerText===undefined?"textContent":"innerText")] = 'MathJax.Hub.Config({AsciiMath: { fixphi: true, useMathMLspacing: true, displaystyle: false, decimalsign: "."}, tex2jax: {inlineMath: [[\'$\',\'$\']]}});';
- document.getElementsByTagName('head')[0].appendChild(mathJaxOpt);
- mathJax = document.createElement('script');
- mathJax.type = 'text/javascript';
- mathJax.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_HTMLorMML"; // only asciiMath AM_HTMLorMML, Only LaTeX and TeX TeX-AMS-MML_HTMLorMML, for all TeX-MML-AM_HTMLorMML
- document.getElementsByTagName('head')[0].appendChild(mathJax);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement