Friday, 5 April 2013

Latex enabled in Google Blogger

1. Mathjax
http://www.mathjax.org/

2. Getting Started with Mathjax
http://docs.mathjax.org/en/latest/start.html

3. Open your google blogger and click "Design" on the top right of your home page
Design
4. Click "Edit Html" and paste the following scripts after the first <head> tag
<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

The default math delimiters are $ $...$ $ and \ [...\ ] for displayed mathematics, and \(...\) for in-line mathematics. Note in particular that the $...$ in-line delimiters are not used by default. If you want to use single-dollars for in-line math mode, you must enable that explicitly in your configuration:

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>

5. Test in new post

Display Math:
  • $ $a^2+b^2=c^2$ $
$$a^2+b^2=c^2$$

  • \ [ a^2+b^2=c^2 \ ]
\[ a^2+b^2=c^2 \]

Inline Math:
  • \ ( a^2+b^2=c^2 \ )      \( a^2+b^2=c^2 \)





No comments :

Post a Comment