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
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.