texlive.js
texlive.js copied to clipboard
compilation fails the second time
I go to the github project page. I follow the link to the website. I compile. Works great-- you are great!
I compile again, with or without changing the input text. It never returns.
When I try it on my home machine I get an error that I do not understand pointing to the first line of the webworker.js file. Sorry; I don't know enough js to fix it myself.
Jim
Hi Jim,
thanks for your bug report! Yes, I can reproduce the bug. It occurs when the script doesn't create a new instance of pdflatex and texlive when it runs.
// this should NOT work:
var pdftex = new PDFTeX('./');
var texlive = new TeXLive(pdftex);
button.click(function() {
texlive.compile(...);
}
// this should work:
button.click(function() {
var pdftex = new PDFTeX('./');
var texlive = new TeXLive(pdftex);
texlive.compile(...);
}
when I find the time, I'll fix it in the demo!
Thanks so much.
I appreciate your work, a lot.
Jim
Does not the Captain seek your advice, sir?' Not always,' said Stephen.