Monday, February 20, 2012

Enable LaTeX in Blogger

The method is as follows:

1) Registry on Blogger: http://www.blogger.com
2) Create a site on Google sites for keeping your files: https://sites.google.com
(Take a look at mine: https://sites.google.com/site/boyouepii/)
3) Create a Picassa album for including photos inside your blog.(Optional)

You can do all of this steps with your same Google Account.

Now if you want to add $latex \textrm{\LaTeX} $ functionality then:

Download this file: https://sites.google.com/site/boyouepii/mathtex.js?attredirects=0&d=1

And, if you want, change its name to for example: mylatex.js.

Upload this file to your Google sites account and copy the link URL.
Then inside Blogger, on the configuration:

Design>Page Elements>Add a Gadget>HTML/JavaScript

Create a Gadget named, for example, LaTeX and include inside it this HTML Code:

<script src="here include the link to your mylatex.js file" type="text/javascript">
</script>
<script type="text/javascript">
replaceMath( document.body );
</script>


And that′s everything, now you can try to write a post including(without line breaks):



$latex \displaystyle \lim_{n \to \infty} \sum_{k=1}^{n} \frac{1}{k^2} = \frac{\pi^2}{6} $

2 comments:

  1. Thank you, where do I get the way of writing with latex?

    ReplyDelete
    Replies
    1. Just search "the not so short introduction to latex"

      Delete