Installing mathtex.cgi

In order to make and install mathtex.cgi, latex and dvipng are prerequisite. You need to install latex first and divpng will come along with it.

You can follow the instruction

  1. http://www.forkosh.dreamhost.com/source_mathtex.html#install

Following will show how I have done with it for example.

# wget http://www.forkosh.com/mathtex.zip
# mkdir mathtex
# cd mathtex
# unzip ../mathtex.zip
# cc mathtex.c –DLATEX=\\"$(which latex)\\" \\
–DDVIPNG=\\"$(which dvipng)\\" –o mathtex.cgi
# cp mathtex.cgi /public_html/xxx.../cgi-bin/

For test of mathtex.cgi, in your web browser, you can do it by

www.example.com/cgi-bin/mathtex.cgi?x^2+y^2

It will give you the gif image showing equation by latex syntax.

Friday, November 27th, 2009 at 18:12
  • Feb 7th, 2010 at 13:30 | #1

    Hello, Nice to meet you, I want to know that can you introduce a good & FREE host that provides the facilities to install mathtex on itself?

    Thanks in advance

    • Feb 7th, 2010 at 13:49 | #2

      Hi, Vahid,

      Thank you for interesting of this plug-in. Unfortunately, I don’t know which provider provides free hosting for the mathtex. I am using other vendor requiring a payment per yearly basis.

      If you want, you can refer to http://blog.breadncup.com/yw-latex-wp-plugin/ to get free mathtex.cgi provider.

      Thanks,

      - Bread

    • Jul 24th, 2010 at 05:37 | #3

      Try Google Chart API :-)

      E.g.:http://chart.apis.google.com/chart?cht=tx&chl=x%20=%20%5Cfrac%7B-b%20%5Cpm%20%5Csqrt%20%7Bb%5E2-4ac%7D%7D%7B2a%7D

  • Feb 8th, 2010 at 10:44 | #5

    I really thank you, for your rapid & complete reply.

  • Feb 8th, 2010 at 12:23 | #7

    Hello, I have a question, how much web space is enough to install LaTeX and dvipng in order torun mathtex on my server?

    • Feb 8th, 2010 at 12:40 | #8

      Hi Vahid,

      The tarball size: less than 2.0 MB
      Uncompressed codes: less than 10.0 MB
      Installing: Around 2.0 GB

      Hope above information would help.

      Thanks,

      - Bread

  • Feb 8th, 2010 at 12:53 | #9

    Your help is highly appreciated. Which server do you use, is it cost effective?

    • Feb 8th, 2010 at 12:56 | #10

      I have been using hostmonster for four years, and I am satisfied so far. If you do googling, you may find low priced and high quality service provider as well. Good luck.

      - Bread

  • Feb 8th, 2010 at 12:59 | #11

    Really thanks. Nice meeting you.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">