Jump to content

CGI Script Problem


stroxis

Recommended Posts

I get an error when trying to access the script (http://maths.heliohost.org/cgi-bin/mimetex.cgi).

 

What it does is basically transforms LaTeX input into images without the requirement of LaTeX binaries to be present on the server. This is a pre-compiled i386 Linux version which I downloaded from their site (http://www.forkosh.com/mimetex.html).

 

For those who don't know what LaTeX is:

LaTeX is a document markup language and document preparation system for the TeX typesetting program. It is very handy for displaying scientifical formulae and data.

 

I wondered if there is any way to fix this or even better - if you have real LaTeX installed on the server.

 

Thank you in advance.

Link to comment
Share on other sites

You need the source code?

 

It consists of several files written in C (http://www.forkosh.com/mimetex.zip - source code)

 

Compilation command: cc -DAA mimetex.c gifsave.c -lm -o mimetex.cgi

 

Example input: ht_p://domain.com/cgi-bin/mimetex.cgi?

x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}

 

The output should be an image containing the proper mathematical display of the formula: http://www.forkosh.dreamhost.com/cgi-bin/m...t{b^2-4ac}}{2a}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...