Recover Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttp://yahoo.com/
Integration
3rd Party Links *
Videos featuring the Editor *
* Warning: CodeCogs is not responsible for content on external sites.
Products » Equation Editor »

Equations in Blogger

Download

js latexit.js

Javscript Options

  • LatexIT.add('p',true);
  • LatexIT.add('li',true);

Example

If you use Blogger, then you can incorporate equations into your blogs using the CodeCogs javascript:

<script type="text/javascript" src="http://latex.codecogs.com/latexit.js?div&li&p">
</script>

Configuring Blogger

To install this script within Blogger, follow these instructions:

  • First Log in to Blogger: http://www.blogger.com
  • If you're not already in the 'Dashboard' page, select it from the top menu. It should look like this:

    dashboard

  • Within the 'Manage Blogs' section, select 'Design', to get:

    layout

  • On the right side, click 'Add a Gadget', to get:

    add a gadget

  • Scroll down and select 'HTML/Javascript', to get:

    configure

  • Enter the following text into the 'Content' area:
    <script type="text/javascript" src="http://latex.codecogs.com/latexit.php?p&li&div"></script>
    
  • Now select 'Save' and exit.

This script will only convert equations that it finds within paragraphs, defined in HTML with <p>...</p> and <li>...</li>. Although its tempting to argue that equations found anywhere should be converted, this is dangerous because other scripts may place javascript within your page, which might also contain '$'. In particular if you use any jQuery scripts on your page then you're likely to experience problems.

Example Usage

In your blog, you can now write something along the lines of:
Einstein's most famous equation is \$E=mc^2\$.
Newton derived the equation \\[s=ut+\sfrac{1}{2}at^2\\]
which should create the following in your published blog:
Einstein's most famous equation is $E=mc^2$.
Newton derived the equation \[s=ut+\sfrac{1}{2}at^2\]