First, copy the following text:
<script type="text/javascript" src="https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"> </script>
Second, go to your blogs 'overview' page and click on the 'template' link on the left sidebar.
Toward the top of the template page, you should see a 'live on blog' section.
Click on 'Edit HTML' and you will be taken to a page that looks something like this:
There is a section at the beginning that starts with <head> and ends with </head>, which I've highlighted in the picture. What you want to do is paste that text from earlier somewhere in between <head> and </head>. I did it right before </head>. Now click 'save template' then 'back'.
If everything went according to plan, you should now be able to write equations with LaTeX, directly into your blog, or write them into your LaTeX editor of choice and copy them into your blog. You don't need to go into the html editor to enter the code for an equation, you just enter it directly into the compose editor. I've seen another method that involves doing basically the same thing, but rather than put it into the site template, you would do it for each and every new post you create. That seems like a lot of work when you could do it this way. Either way, now you can do fancy equations like: $$x=\frac {-b \pm\sqrt {b^2-4ac}} {2a}$$
No comments:
Post a Comment