Thanks to Weiqi Gao for working out how to get MathJax working on blogger again.
- Go to your blog and sign in.
- Select Template.
- Select edit HTML
- copy and paste the codes just before the < / HEAD > tag. You can be more successful if you go to http://checkmyworking.com/2012/01/how-to-get-beautifully-typeset-maths-on-your-blog/#blogger to copy.
<script type="text/x-mathjax-config"> // <![CDATA[ MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']], displayMath: [['\\[','\\]'], ['$$','$$']]}}); blogger.ui().viewType_.prototype.onRenderComplete=function(){MathJax.Hub.Queue(['Typeset',MathJax.Hub])}; // ]]> </script> <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
- Click on Save Template, and you’re done!
- To test write the
Maths between dollars is inline: $\sum_{k=1}^n k = \frac{n(n+1)}{2}$. Maths between slash-square-brackets is display: \[\sum_{k=1}^n k = \frac{n(n+1)}{2}\]
$\lim_{x\rightarrow 0}$
- It should look like this! enjoy!
$\sum_{k=1}^n k = \frac{n(n+1)}{2}$
\[\sum_{k=1}^n k = \frac{n(n+1)}{2}\]
$\lim_{x\rightarrow 0}$
reference:
http://checkmyworking.com/2012/01/how-to-get-beautifully-typeset-maths-on-your-blog/#blogger
No comments:
Post a Comment