Sunday, March 20, 2011

jqMath in Blogger!

This is a test showing that we can use jqMath in Google Blogger.

If $ax^2+bx+c=0$ with $a≠0$, then:
$$x={-b±√{b^2-4ac}}/{2a}$$

Some Fraktur letters:  $\fr A$ $\fr B$ $\fr C$

To do this in your blog, choose “Design” or “Template”, and then “Edit HTML”.  You need to add some things near the beginning of your HTML template.  It may help you to use your browser’s “View Source” command on this page, to see how I’ve changed my template.  The things you need to add are:

An attribute in your html tag:  xmlns:m="http://www.w3.org/1998/Math/MathML"

Some lines early in your <head> (but probably after any 'X-UA-Compatible' element):

    <link href='http://fonts.googleapis.com/css?family=UnifrakturMaguntia' rel='stylesheet'
        type='text/css' />
    <link rel="stylesheet" href="http://mathscribe.com/mathscribe/jqmath-0.4.3.css" />
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> 
    <script src="http://mathscribe.com/mathscribe/jqmath-etc-0.4.3.min.js"></script>

The first <link> above is for Fraktur letters; if you don't use them, you can leave this link out, and your blog may load slightly faster.

Then in your blog posts, include jqMath strings as in:
If \$ax^2+bx+c=0\$ with \$a≠0\$, then: \$\$x={-b±√{b^2-4ac}}/{2a}\$\$
Cheers, Dave B.

12 comments:

  1. thank you very much. very helpful

    ReplyDelete
  2. Wonderfull!
    What about including mathscribe component in a Google gadget. This would be very usefull to include formulas in Google Sites :)

    ReplyDelete
  3. Just to be clear, that's four extra HTTP requests being sent? Isn't there a better way?

    ReplyDelete
  4. If $ax^2+bx+c=0$ with $a≠0$, then: $$x={-b±√{b^2-4ac}}/{2a}$$

    ReplyDelete
  5. If $ax^2+bx+c=0$ with $a≠0$, then: $$x={-b±√{b^2-4ac}}/{2a}$$

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete