LaTeXMathML

Summary: Translating LaTeX math notation dynamically to Presentation MathML
Version: 2007-10-04
Prerequisites: pmwiki-2.0.0
Status: Stable
Maintainer: Nicolas Poulain
Categories: Markup Math
Download: LaTeXMathML.zipΔ (see also LaTeXMathJax)
Discussion: LaTeXMathML-Talk

Questions answered by this recipe

  • How can I translate LaTeX math notation dynamically to Presentation MathML

Description

Embed MathML contents in webpages with LaTeX syntax.

Notes

LaTeXMathML is a JavaScript program has been created by modifying Peter Jipsen's ASCIIMathML.js script.
See :http://www.maths.nottingham.ac.uk/personal/drw/lm.html for informations.

  1. Download LaTeXMathML.zipΔ
  2. Unzip LaTeXMathML.zip package into your PmWiki's root folder so that
    1. the LaTeXMathML.php file goes into your PmWiki's cookbook/ directory
    2. the LaTeXMathML.js file goes into a new directory called LaTeXMathML/ into your PmWiki's pub/ directory
  3. Add the following line to a local customization file:
    include_once('cookbook/LaTeXMathML.php');

The script adds $$ ... $$ and $...$ markups that display MathML from LaTeX syntax, the first form centers the equation, while the second generates the equation "inline".

Release Notes

Here is a version of the script, which uses MathJax instead of MathML. Now the script works with all browsers and not just Mozilla. PHP 5.5 is supported as well as PHP versions prior to 5.5.

Latest MathJax version: LaTeXMathJax.phpΔ

Just copy the script to your cookbook/ and add include_once("cookbook/LaTeXMathJax.php"); to your local/config.php .

Comments

See Discussion at LaTeXMathML-Talk

Contributors

Nicolas Poulain Stefan Röttger

Comments

See discussion at LaTeXMathML-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.