I had an idea this morning and would like to share and to know if someone has already developed it somewhere!
A Mozilla group is currently building a JavaScript Application able to transform any PDF code into HTML5, so you don't need any plugin to external PDF reader (Adobe, Evince, Xpdf,...). It is currently an extension, but may go in the browser kernel in the future https://github.com/mozilla/pdf.js.
Using that and an online text editor (codeMirror), some application of mine are running PDFlatex on server side...providing some (La)TeX online facilities. This is common.
What about having the same kind of JavaScript able to parse (La)TeX code directly and of course rendering a PDF ready for printout and page orientation on your screen? For the end user, it has a PDF Web browser but he has the (LaTeX) code when asking to view the source code. The final HTML5 code is not really seen except for debugging, and become like the assembly code in classical C development.
This would provide access to (LaTeX) source code of any scientific paper... rather to reinvent a Math formula and if I'm not wrong, This it IS the idea Knuth had few decades ago when building TeX. People should share (La)TeX code, not DVI, PS nor PDF code. The client browser (Firefox, Chrome, Opera, Safari and others) should handle PDFlatex process locally!
Let me explain my requirements another way;
I am working for the industry for 20 years and I use to use TeX and LaTeX at University like many of you I guess. Looking at our real main requirements in documentation systems, I think that Industry, at least critical embedded systems I work for needs:
A programmable document system; where you can can process customer requirements within informal English statements to derive and automate many things like requirement traceability, design doc, tests sequences,...
A very nice/professional rendering, perfect graphs, tables, diagrams...
Insurance that such document is such version and the content won't change. The Web does not provide some "digital signature/ digest" visible on print-out. The best "permalink","perma-content" system is the PDF format and that is why official documents are PDF (unfortunately, this is a not optimized format, but is it used every where you need static documents)
It is well known that PDF document produced from LaTeX satisfy really better those requirements than MS Word or other LibreOffice when only the latter are used in the industry.
What may change this approach is the arrival of "cloud computing", not a revolution idea by itself, but the fact that you are never Downloading files.
The jsPDF extension from Mozilla and the Chrome embedded PDF reader are making the first step, showing that PDF are really like other HTML pages (Google is also finding them) and this is very important for industry that requires those static (permalink/perma-content) documents.
Because best quality PDF are coming from LaTeX/TikZ source, it is now an opportunity to provide to the industry a real efficient document system on the cloud.
But if you (TeX experts) are fighting on such or such tiny advanced function for a variant of TeX, we won't have any chance to see a Web LaTeX and more important any chance to see LateX used in the industry one day.
You might be right to say this is impossible because of the complexity. I had exactly the same thought two years ago about a JavaScript PDF reader and it seems now that the result is being pretty good compared to Adobe native reader.
About JavaScript, I hate this language, but this is the only one supported client side.
\newcommand{\killyourbrowser}{\killyourbrowser}\killyourbrowser– Andrew Stacey Aug 24 '12 at 11:42pdflatex what-I-downloaded.tex. LaTeX - or rather TeX - is not a kind of markup language. It is a programming language. That makes it a very different task than, say, converting Markdown. Moreover I disagree with your last sentence. I do not think this is a laudable initiative. LaTeX documents are source code. – Andrew Stacey Aug 24 '12 at 13:43comp.text.texmight be more appropriate). That means this is likely to get closed, I'm afraid. – Joseph Wright Aug 24 '12 at 15:43