# LaTeXMathJax

## Questions answered by this recipe

How do I easily display formulas in LaTeX-style with PmWiki?

## Description

If you know how to typeset formulas with LaTeX, you can typeset formulas with PmWiki in the very same style.

In LaTeX formulas are typeset using the $-sign as formula delimiter. A centered formula on its own line is typeset with the double $-sign, For example, the following formula markup

$$ \sum_{i=1}^{n}i = \frac{n(n+1)}{2} $$

displays as:

## Installation

Latest MathJax version: LaTeXMathJax.phpΔ

Just copy the above script to your *cookbook/* and add `include_once("cookbook/LaTeXMathJax.php");`

to your *local/config.php* .

## Usage

Example for in-line formula style:

Example for centered formula style:

## See also

The above recipe started as a variant of the LaTeXMathML recipe. The original recipe uses the LaTeXMathML javascript package, which is working with Mozilla only. The LaTeXMathJax recipe uses MathJax, which supports a broad variety of browsers like Chrome, Safari and Firefox.

## Contributors

Stefan Röttger, Matthias Hopf, Nicolas Poulain

## Comments

See discussion at LaTeXMathJax-Talk?

**User notes?** : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.