Site »

# Embedding LaTeX in wiki pages

You can use MathJax to embed LaTeX code in wiki pages. There are two versions of the syntax.

For an inline formula, enclose the LaTeX code in {}:

 (:mathjax:) {$\frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).$}  {$\frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).$}

And for a block formula, use an extra set of dollar signs—{}:

 {$$\frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).$$}  {$$\frac{d}{dx}\left( \int_{0}^{x} f(u)\,du\right)=f(x).$$}

NOTE: The (:mathjax:) directive need only appear once, on any page where MathJax is to be used. It instructs PmWiki to load the MathJax package when displaying that page (by default, it’s not loaded, for faster page loads).