[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MathML
From: |
Søren Hauberg |
Subject: |
MathML |
Date: |
Sun, 17 Jul 2005 20:36:37 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050404) |
Hi,
I've been playing a bit with the generation of HTML documentation. If I
use texi2html I can get images in the html documents containing math
(texi2html can call latex2html). Now, it would be better to use makeinfo
instead og texi2html, as it supports texinfo better. The problem is that
makeinfo can't generate math contents automaticly.
It seems to me that the new and fancy way to present math online is
using MathML.
My question is would patches that add's MathML to the documentation be
accepted?
I think I should mention that MathML isn't a very easy to read format
and even small things can take up alot of space. Here's an example:
The following TeX:
$$ {\rm mean}(x) = \bar{x} = {1\over N} \sum_{i=1}^N x_i $$
becomes this in MathML:
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mi mathvariant="normal">mean</mi>
<mfenced>
<mi>x</mi>
</mfenced>
<mo>=</mo>
<mover>
<mi>x</mi>
<mo>-</mo>
</mover>
<mo>=</mo>
<mfrac>
<mn>1</mn>
<mi>N</mi>
</mfrac>
<munderover>
<mo>∑</mo>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>N</mi>
</munderover>
<msub>
<mi>x</mi>
<mi>i</mi>
</msub>
</math>
/Søren