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\]