LaTeX 向 MathML 的转换

在网页上显示数学公式一直是个难题。尽管已经有 MathML 这个数学公式的 W3C 标准,但其代码的编写繁复,难以手工撰写。另一方面 LaTeX 是学术领域内数学公式编写的事实标准。所以将 LaTeX 代码转换为 MathML 代码显示,便成为一个比较好的方案。

开源工具

MathToWeb

MathToWeb is a free authoring tool that converts mathematical expressions written in AMS-Latex to presentation MathML. It allows the author to write web pages in XHTML (just a strict form of HTML) containing equations in LaTeX rather than MathML, the former being considerably easier to read and write. MathToWeb can be applied to single equations or entire documents containing many hundreds of equations.

一个基于 Java 的网页写作工具。可以用 XHTML 撰写带有 LaTeX 代码的网页,然后转换。支持将AMS-Latex 代码转换为 MathML。提供 GUI 和命令行接口。

LaTeXMathML

当前有两个活跃分支:

标准

MathML

可以在该标准网站找到使用该标准的软件列表,其中有一个代码转换软件列表

研究资料

示例

FreeMind blog by Chiyuan Zhang

该博客使用基于 Ruby 的工具链编译 markdown 文件,生成静态博客。同时使用 pandoc 提供 pdf 版本,效果较好。

博客中有关设置的文章:

该博客作者提供了一个未完善的小工具 (Github Repo)。