I ported LaTeX to Javascript
11–20 of 73 posts
Re: I ported LaTeX to Javascript
#12Promising. I am getting some error messages though. lstat(/bin) failed ... /bin : No such file or directory warning: kpathsea: configuration file texmf.cnf not found in these directories:
These errors are save to ignore. You have to wait some seconds until compiling has completed. Note that the browser might prevent the website from opening the PDF (Pop-up blocking)
Would a download button appearing when the pdf has compiled be harder to do?
Nice demo
Re: I ported LaTeX to Javascript
#13Re: I ported LaTeX to Javascript
#14Some background would be nice. Wasn't LaTeX notoriously hard to port – to the point that a LateX app for iPad actually ran in an emulator initially [1]. Is this port based on web2c as well? [1] http://www.litchie.com/?p=419
Re: I ported LaTeX to Javascript
#15Note that it is somewhat broken for me: http://imgur.com/twIG75m
Re: I ported LaTeX to Javascript
#16Re: I ported LaTeX to Javascript
#17Re: I ported LaTeX to Javascript
#18Some background would be nice. Wasn't LaTeX notoriously hard to port – to the point that a LateX app for iPad actually ran in an emulator initially [1]. Is this port based on web2c as well? [1] http://www.litchie.com/?p=419
I'd also appreciate info on whether Latex packages will be supported in the future. At the moment this does not seem to be the case, though I can imagine this would be a challenging problem to solve for in-browser compilation of documents.
Re: I ported LaTeX to Javascript
#19Fun demo, but I can't get the .pdf back right now!
Firefox 18.0
Re: I ported LaTeX to Javascript
#20Yes, I used emscripten to port it to Javascript. It was not that hard. Emscripten had three bugs I had to fix (the hardest was to find that the %g format was not supported by emscripten's sscanf).
But it was compiled almost like for x86: first convert the pdftex 'web' souce code to c using web2c, then compile it to LLVM bytecode and the LLVM bytecode to JS.