LaTeX, HTML, PHP, math rendering?

February 8th, 2010 | by admin |

How do I put it all together? How do I get my server to render images (png or jpg) into HTML webpages from a LaTeX code?

I have Apache web server, with the latest PHP and MySQL software.

I also have MikTeX and dvipng, etcetera… for converting LaTeX into images and pdfs.

But I cant get a web page that uses PHP to convert TeX and render it as an image.

Check this out…

For the LaTeX code: c=\sqrt{a^2+b^2}
……. …………… …._____
which yields: c = √a² + b²

<img
src=" www.forkosh. dreamhost. com /mathtex.cgi?c=\sqrt{a^2+b^2}" alt="" width="200" border="0" />

Check out what the URL renders:
http://www.forkosh.dreamhost.com/mathtex.cgi?c=\sqrt{a^2+b^2}

It doesnt look nearly as pretty as Wikipedia’s rendering of LaTeX

  1. 2 Responses to “LaTeX, HTML, PHP, math rendering?”

  2. By Colanth on Feb 8, 2010 | Reply

    You’re correct, you can’t get one, you’ll have to write one.
    References :

  3. By CogitoErgoCogitoSum on Feb 8, 2010 | Reply

    Check this out…

    For the LaTeX code: c=\sqrt{a^2+b^2}
    ……. …………… …._____
    which yields: c = √a² + b²

    <img
    src=" http://www.forkosh. dreamhost. com /mathtex.cgi?c=\sqrt{a^2+b^2}" alt="" width="200" border="0" />

    Check out what the URL renders:
    http://www.forkosh.dreamhost.com/mathtex.cgi?c=\sqrt{a^2+b^2}

    It doesnt look nearly as pretty as Wikipedia’s rendering of LaTeX
    References :

Post a Comment