Advertisement
robjohn

fixed MathJax bookmarklet

Dec 5th, 2011
835
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. javascript:(function(){if(window.MathJax===undefined){var%20script%20=%20document.createElement("script");script.type%20=%20"text/javascript";script.src%20=%20"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML";var%20config%20=%20'MathJax.Hub.Config({'%20+%20'extensions:%20["tex2jax.js"],'%20+%20'tex2jax:%20{%20inlineMath:%20[["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]],%20displayMath:%20[["$$","$$"],["\\\\[","\\\\]"]],%20processEscapes:%20true%20},'%20+%20'jax:%20["input/TeX","output/HTML-CSS"]'%20+%20'});'%20+%20'MathJax.Hub.Startup.onload();';if%20(window.opera)%20{script.innerHTML%20=%20config}%20else%20{script.text%20=%20config}%20document.getElementsByTagName("head")[0].appendChild(script);}else{MathJax.Hub.Queue(["Typeset",MathJax.Hub]);}$('html').ajaxComplete(function(){MathJax.Hub.Queue(["Typeset",MathJax.Hub]);});})();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement