PHP-based LaTeX parser — where to begin?

前端 未结 6 1387
情话喂你
情话喂你 2020-12-30 13:31

The project: I want to build a LaTeX-to-MathML translator in PHP. Why? Because I\'m a mathematician, and I want to publish math on my Drupal site. It doesn\'t have to tra

6条回答
  •  情书的邮戳
    2020-12-30 14:35

    Don't write the parser yourself unless you want to do that as a learning experience. Just call existing LaTeX toolchains from PHP.

    LaTeX2HTML is about as good as you're going to get, and here's an (old) description of a LaTeX to MathML convertor from the maintainer of LaTeX2HTML.

提交回复
热议问题