
Cookbook /
LaTeXMathJaxSummary: MathJax support for PmWiki
Prerequisites: none
Status: stable
Maintainer: Stefan Röttger (snroettg@gmail.com)
License: Cookbook:Cookbook Licenses
Categories: Math
Discussion: LaTeXMathJaxTalk?
Questions answered by this recipeHow do I easily display formulas in LaTeXstyle with PmWiki?
DescriptionIf 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: InstallationLatest MathJax version: LaTeXMathJax.phpΔ Just copy the above script to your cookbook/ and add UsageExample for inline formula style: The quadratic polynomial $f(t) = c_0 + c_1t + c_2t^2$ has three coefficients $c_0, c_1, c_2$.
Example for centered formula style: $$ \left( \begin{array}{c c c} n & \sum_i t_i & \sum_i t_i^2 \\ \sum_i t_i & \sum_i t_i^2 & \sum_i t_i^3 \\ \sum_i t_i^2 & \sum_i t_i^3 & \sum_i t_i^4 \end{array} \right) \left( \begin{array}{c} c_0 \\ c_1 \\ c_2 \end{array} \right) = \left( \begin{array}{c} \sum_i m_i \\ \sum_i m_i t_i \\ \sum_i m_i t_i^2 \end{array} \right) $$
See alsoThe 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. ContributorsStefan Röttger, Matthias Hopf, Nicolas Poulain CommentsSee discussion at LaTeXMathJaxTalk? 