I have a webpage that displays a latex .tex file. I would like to be able to compile this latex .tex file online.
In order to compile a latex file via the shell one needs to type the following:
> latex onlinefile.tex
this will compile the file and produce two files: onlinefile.ps and onlinefile.dvi. I would like to be able to compile the onlinefile.tex file by clicking a submit button on my webpage.
How can I achive this?