texlive.js – A LaTeX Compiler for Javascript

Fork me on GitHub

Usage

var pdftex = new PDFTeX();
var latex_code = "" +
  "\\documentclass{article}" +
  "\\begin{document}" +
  "\\LaTeX is great!" +
  "$E = mc^2$" +
  "\\end{document}";

pdftex.compile(latex_code)
      .then(function(pdf) { window.open(pdf) });

Demo

LaTeX Input

Console Output

        Click "Compile this LaTeX code to PDF" at the top of this page and watch the console output here.
        

License

GNU/GPL

More Information

Checkout the wiki page

Related Projects