# TeX on Webpage

1. Dec 28, 2005

### -Job-

How do thse forums implement the TeX functionality? Did it come with the vBulletin software or is it separate? I want to get a TeX tool on my server but i haven't alot of experience with it. I assume that, in these forums, there is a compiler for TeX which is called by a PHP script producing images which are then linked to the respective posts. Is this the case or is there an actual PHP based TeX compiler script?

2. Dec 29, 2005

### -Job-

After alot of searching and experimenting i ended up downloading MikTeX (for windows), from www.miktex.com. Compiling is a as simple as:
latex -job-name=<output file's name> <input file's name> -output-directory=<out put directory>

So now i should be able to call this from a PHP or ASP.NET script and i'll be all set.
Except of course that it outputs as a .dvi file, and i want an image, but i'll get around it.

3. Dec 29, 2005

### -Job-

Yes, there is a dvipng tool which builds a png image from the dvi file. It comes with MikTex, so no extra files to install, you call it with:
dvipng <path to input dvi file> -o <path to output file>

So it's a two step process, but it's doable. How cool.

4. Dec 29, 2005

### -Job-

Yes, it's working!

5. Dec 30, 2005

### James R

Seems you solved your own problem.

6. Dec 30, 2005

### -Job-

I'm still curious how these boards implement it. I think there must be an easier way. For those who are curious, this is what i have:
http://www.bloo.us/tex/services/previewer.aspx [Broken]
It works with the Latex found in posts throughout these forums. I'm thinking of doing a full LaTex editor this coming semester in my independent study class.

Last edited by a moderator: Apr 21, 2017 at 10:48 PM