Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

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

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

Comments

Achoo, 02 July 2008: Thanks for the great job! However, while the markup $ .. $ for inline mode works fine, I can't manage to make the display mode $$ .. $$ to work. Any ideas/clues? (note: when I unzip the attachment it gives the date of 2006 instead of 2007, is it possible that the old version is uploaded by mistake?)

See Also

Contributors

Nicolas Poulain

Edit - History - Print - Recent Changes - Search
Page last modified on July 02, 2008, at 10:35 AM