«

»

Aug 26

Using the LaTeX Plugin for Mathematical Formulas

http://wordpress.org/plugins/latex/

A plugin has been added that allows the writer to utilize LaTeX mathematical commands to build up formulas for their web site. As an example see the following output.

An "in-line" formula

This is an in-line \alpha+\beta\geq\gamma equation.

Adds a LaTeX equation in math model which will be displayed in its own line (Centered).

\alpha+\beta\geq\gamma

z = \frac{A}{2} * x^2 + Bxy + \frac{C}{2}y^2 + Dx^3 + Ex^2y+Fxy^2 + Gy^3

The following code produces the matrix below:
\[\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0
\end{vmatrix} \]

\mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix}\mathbf{i} & \mathbf{j} & \mathbf{k} \\\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0\end{vmatrix}

A Rogers-Ramanujan Identity

1 +  \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots=\prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},\quad\quad\text{for $|q|<1$}.


\[ 1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
\prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},
\quad\quad \text{for $|q|<1$}. \]

More demos can be found at http://www.mathjax.org/demos/tex-samples/

The plugin uses the "MathML" and "LaTeX" and a Javascript code called "MathJax" to render the equations.