Search code examples
javascripthtmlequationmath-mode

I want to use 'LaTeX' syntax (MathJax) in my blog


I checked many instructions on how to set LaTeX in blogspot. I went to "add a gadget", "Configure HTML/JavaScript", and How to use LaTeX on blogspot?.

Then I posted this code:

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js">
MathJax.Hub.Config({
 extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
 jax: ["input/TeX", "output/HTML-CSS"],
 tex2jax: {
     inlineMath: [ ['$','$'], ["\\(","\\)"] ],
     displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
 },
 "HTML-CSS": { availableFonts: ["TeX"] }
});
</script>

But nothing happened successfully.

What would be a screenshot of the process?


Solution

  • Try removing the extra comma after the displayMath delimiters. These extra commas often confuse Internet Explorer, so if you are using Internet Explorer as your browser, that might be the issue.