Previous Up Next

3.7.4  Translating an expression to MathML

The mathmml command will take an expression and return the result in MathML. For example, if you enter

mathml(1/4 + 1/4)

you will get

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"" [
<!ENTITY mathml "">
<html xmlns="">

<math mode="display" xmlns="">




which is the number 1/2 in MathML form, along with enough information to make it a complete HTML document.

Previous Up Next