on February 9, 2011 by Simon Cockell in Events, Comments (2)

MathJax-LaTeX version 0.2 released

The new release of Knowledgeblog’s MathJax-LaTeX plugin is now available from wordpress.org.

This release introduces the ability to configure the location of the MathJax javascript library for your system, so if you are already using MathJax on your server for some other purpose, you don’t have to install a second instance just for the plugin to work. Other than this important addition the plugin functions as before, follow the installation instructions to get it working on your site.

Examples

Below are some examples of the syntax for MathJax-LaTeX, and the equations that are rendered in response.

The probability of getting \(k\) heads when flipping \(n\) coins:

[latex syntax='display']P(E)   = {n \choose k} p^k (1-p)^{ n-k}[/latex]

This is an inline equation: [latex syntax='inline']\sqrt{3x-1}+(1+x)^2[/latex]  it should be rendered without affecting the text around it.

OK, one more, definition of \(e\):

[latex syntax='display']e = \lim_{n\to\infty} \left( 1 + \frac{1}{n} \right)^n[/latex]

[mathjax]

The probability of getting \(k\) heads when flipping \(n\) coins:

\[P(E) = {n \choose k} p^k (1-p)^{ n-k}\]

This is an inline equation: \(\sqrt{3x-1}+(1+x)^2\)  it should be rendered without affecting the text around it.

OK, one more, definition of \(e\):

\[e = \lim_{n\to\infty} \left( 1 + \frac{1}{n} \right)^n\]

Tags: , ,

2 Comments

  1. Guest

    March 16, 2011 @ 4:16 pm

    It doesn’t seem to support MathJax 1.1. I get an error message saying MathJax need a configuration file, which your plugin isn’t supplying.

  2. admin

    March 16, 2011 @ 4:38 pm

    “It doesn’t seem to support MathJax 1.1.”

    We will investigate this to see if we can replicate. Currently, my own blog is running MathJax 1.1 through the CDN (http://www.mathjax.org/2011/03/15/news/mathjax-launches-cdn-service-with-1-1-release/). In practice, this is likely to be a better way of running mathjax anyway, since it removes the load on your blog server, removes the need to 100M of images fonts and is likely to be quicker.

    Basically, on the admin page, click “over-ride default mathjax location” and then paste in this URL.

    http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML

    We’ll release a new version of the plugin this week or next, I would think. I suspect that this will become the default!

    Thanks for the feedback.

Leave a comment

Login