MathJax in blogger.com is useful when I need to input equation in my blog. This is a instruction and test of using MathJax in blogger.com.
- set blogger.com template to “Simple”. “Dynamic Views” seems not working.
- edit HTML by adding the following code between
<head>
and</head>
:<script src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML' type='text/javascript'/>
- type math equation in the blog.
Note that, enclosing math in single $
‘s does not work. Instead, I use (
and )
for inline math and [
and ]
for displayed math. For example:
(frac{2}{3}) \[z=sqrt{x^2+y^2}\]
You can enable automatic equation numbering and referencing with one extra script. Here’s a demo of its capabilities: “A self-contained derivation of Kepler’s laws from Newton’s laws“.