Blogspot is pretty bad at displaying math; \( \mathrm{\LaTeX} \) is pretty awesome at displaying math. So how do we get Blogspot and \( \mathrm{\LaTeX} \) working with each other? Using MathJax!
All it takes is the addition of one line to the HTML code for each blog, and presto! we can include \( \mathrm{\TeX} \)and \( \mathrm{\LaTeX} \) commands into our blog. And not only can we do inline math, like \( \int_{0}^{2 \pi} \mathrm{d}x = 2 \pi \), but also display math, like:
\[ \begin{eqnarray} (a + b)^2 & = & (a + b) \cdot (a + b) \\ & = & a^2 + ab + ba + b^2 \\ & = & a^2 + 2ab + b^2 \end{eqnarray} \]
Truly remarkable! Now all I need to do is update all my old math posts using MathJax and good ol’ \( \mathrm{\LaTeX} \).
All it takes is the addition of one line to the HTML code for each blog, and presto! we can include \( \mathrm{\TeX} \)and \( \mathrm{\LaTeX} \) commands into our blog. And not only can we do inline math, like \( \int_{0}^{2 \pi} \mathrm{d}x = 2 \pi \), but also display math, like:
\[ \begin{eqnarray} (a + b)^2 & = & (a + b) \cdot (a + b) \\ & = & a^2 + ab + ba + b^2 \\ & = & a^2 + 2ab + b^2 \end{eqnarray} \]
Truly remarkable! Now all I need to do is update all my old math posts using MathJax and good ol’ \( \mathrm{\LaTeX} \).
No comments:
Post a Comment