Friday 17 August 2012

Using LaTeX on Blogspot / Blogger.


In a slightly meta fashion the first post is about how to use Latex in blogs on Blogspot/Blogger. I got the answer from http://tex.stackexchange.com/questions/13865/how-to-use-latex-on-blogspot

Here's the key part: just copy this script into the raw template html for your blog (go to template designer and ignore the warnings to edit the raw html, you can put it just after the </head> closing tag and before the <body> opening tag)

<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>

The nice thing about MathJax appears to be that it's now hosted online for all to use, no need to have local files. Note in the address line CDN stands for Content Delivery Network (i.e. it's not going to go away soon!

Just to prove it works, you can do inline stuff $\Pi_{i,j}^{\alpha}f(x,y,z)^3$ as well as display style stuff, $$\Pi_{i,j}^{\alpha}f(x,y,z)^3,$$ by using single and double dollars respectively.

Sunday 12 August 2012

Welcome!

So I've created this blog as a resource for myself, and anyone else who stumbles across it while searching, giving information and answers to how to solve various problems I've come across.

Hopefully others out there will find these posts useful at some point too, but I can always just use them as my own resource to look back on when I come across the same problems to solve again to see if I've found ways to deal with them already in the past and just forgotten. :)