tags:

views:

116

answers:

3

I would like to build a website in ASP.NET, which would display many equations. I would like to generate them automaticly, so I need to use some library, that would allow me to generate images from TeX or LaTex dynamicly. For performance resaons, I would like to have it running on my local server.

I tried to used MimeTex with the Eq2Img project from CodeProject, but I was not satisfied with the quality of the images, and couldn't find any options to customize it.

Now I'm trying to use Mathtran, but as the official FAQ says: "You'll need a Unix or Linux server with TeX, Python and dvipng installed.".

My question is: is someone sucessfull in using Mathtran running locally with ASP.NET application, or can give some other solution to the problem?

Thanks for any answer!

+1  A: 

You can roll your own solution pretty easily. Feed your source to LaTeX to create a DVI file. Then use dvipng to create a PNG file, and then show that in your web page.

Edit: more detail and other options available from WikiBooks.

Iceman
Thank you for your answer. I will look at these solutions, and see if I will be able to use them.
Adam
Thanks for the wiki link! By the way: divpng is also using Miktex.
Adam
A: 

The FAQ also says: "The software that provides this service is open source, and can be downloaded and installed on your own web-server or desktop machine (Unix/Linux only at present)." Since you can definitely get TeX, Python, and dvipng for Windows, you just need to replace whatever Unix infrastructure Mathtran is using with similar Windows parts. Most likely the developers of Mathtran just haven't had the need to use a Windows server themselves, and the wording "at present" suggests that they would likely accept a patch to make it work on Windows too.

Jouni K. Seppänen
Thanks for suggestion. As for now I will probably try to run it on a Linux based server and create a WebService.
Adam
A: 

Can you use the MathTran web service per http://www.mathtran.org/wiki/index.php/TeX_image?

FrodoH
As I wrote in the post, I would like the solution to work on my local servers, because performance is critical for me. There will be many images on single site, and the content will be generated always automaticly so no caching is available.
Adam