## Wednesday, December 25, 2013

### LaTeX in blogger

you may or may not be aware that i also maintain a math & science & philosophy blog. an important reason for starting this as a separate blog on wordpress was that the mathematical typesetting of formulas used to be difficult on blogger. but recently things have changed, and now it is possible to use LaTeX (math formatting language/software) also in blogger, through the platform of mathjax, see here how to run this on blogger.

so, just because i like math formulas also aesthetically, let me write some simple formula here. Let $f:\mathbb{R}\rightarrow\mathbb{R}$ be given by:

$$f(x)=\int\frac{\theta(y)^2x}{\sin^2(\frac{1}{2}xy)+1}dy$$

whatever that may mean... and i'm left with the problem of deciding whether i should integrate the two blogs or not...

[update: since this post scores way too high on google search, let me include the instructions for installing mathjax:

to get mathjax to work in blogger, go to your blogger account. click through to your blog's dashboard called overview', and then click template' on the left-hand menu. (at this point i myself always backup first, top right side). next click "edit html". after the first <head> you see, paste:

<script src='http://cdn.mathjax.org/mathjax/latest/MathJax.js' type='text/javascript'>
MathJax.Hub.Config({
HTML: ["input/TeX","output/HTML-CSS"],
TeX: { extensions: ["AMSmath.js","AMSsymbols.js"],
equationNumbers: { autoNumber: "AMS" } },
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
tex2jax: { inlineMath: [ ['$','$'], ["\$","\$"] ],
displayMath: [ ['$$','$$'], ["\$","\$"] ],
processEscapes: true },
"HTML-CSS": { availableFonts: ["TeX"],
linebreaks: { automatic: true } }
});
</script>

you can now use $...$ or $...$ for inline equations, and $$...$$ or $...$ for displaying equations centered in their own line.]