-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to run multiple times for longtable #50
Comments
What is the error that you are getting? What is the code that you are running? |
I'm using the code at http://manuels.github.com/texlive.js/ However if I duplicate the line https://github.com/manuels/texlive.js/blob/master/pdftex.js#L171, it still only runs one time. I can't really tell why. |
You cannot re-run emscripten scripts without configuring this at runtime. |
You can move files, e.g., .aux and .toc, from one compilation to another like this though:
Works like magic. |
Ok, interesting. Ended up changing the return statement of compileRaw to this and made the related changes that you see here, such as moving onMessage out of the constructor and adding a few arguments to compileRaw. Written in typescript. return PromiseHelper.chain(commands)
.then(sendCompile)
.then(() => self.FS_readFile('/input.aux'))
.then(file => {
console.log(file);
if (count < 3) {
worker = new Worker(opt_workerPath);
worker.onmessage = workerOnMessage.bind(self);
initialized = false;
return self.compileRaw(source_code, file, count + 1);
} else {
return self.FS_readFile('/input.pdf');
}
//return PromiseHelper.chain(commands);
}) |
I'm trying to figure out how I would run this multiple times, which is needed when using longtable.
Any thoughts?
The text was updated successfully, but these errors were encountered: