I've seen several models over the net that provide different solutions, but none of them was what I was looking for, especially that I am not a LaTeX guru.
So far, the neatest model to post equations on blogger is described on Fundamental Thinking. The method uses Peter Jepsen's ASCIIMathML script.
Here's how to set it up on your blog:
- Download ASCIIMathML.js and host it somewhere online such as your google pages website. This will allow you to modify the script to fit your needs (like changing the forecolor of the equations). Alternatively, you can just point to the location of the script (http://www1.chapman.edu/~jipsen/mathml/ASCIIMathML.js)
- In Blogger, add a new HTML/Java Script widget
- Add the following to the new widget
(In case you decided to host the script on your own website, you will need to replace src with the correct location).
Now you're all set. All you need to to do is either learn the ASCIIMathML syntax, type in LaTeX, or copy from Mathtype as LaTeX.
To type in LaTeX, you have to wrap your equations with a dollar sign.
Alternatively, you can use some online LaTeX editors such as Thornahawk's Numerical Analysis notes or CodeCogs', and then copy and paste the code into your post.
Finally, if you use MathType, you can set it up so that it copies the equations as LaTeX. Here's how you do it
Make sure you replace the \[ and \] generated by MathType by the dollar sign.
- In Mathtype, go to
- Select "Translation to other language"
- Select "TeX -- LaTeX 2.09 and later"
- Deselect "include MathType data in translation"
This, I think, is by far the easiest way of getting your equations into blogger. Sometimes, the translation generated by MathType is not well interpreted by the ASCIIMathML script. For example, type the following in MathType
This will not be translated correctly with the ASCIIMathML.
After all this, I think we need a better solution.
UPDATE: As Bob Mathews from design science (the makers of MathType) has kindly noted, if you choose the Format/Inline Equation in MathType, the LaTeX code will exclude the \[ and \] symbols.