Closed DrXyzzy closed 2 months ago
I think the solution to this is:
That's it. latex is a very complicated programming language and it's totally impossible to know whether latex is properly processing the document or stuck in some weird infinite loop that will never terminate. Also, often people do have large documents where latex takes a LONG time to process them (several minutes) so a uniform timeout is a non-starter. But a stop button makes perfect sense, just like there is a top button with Jupyter.
@haraldschilly would your brand new async execution functionality make it easy to solve this problem, finally!? https://github.com/sagemathinc/cocalc/pull/7686
Note as part of this, there shouldn't be any timeout by default at all. Instead, just let the user explicitly kill their running latex if they give up on it, and make it very clear one is running.
Note -- this should also be sure to properly deal with multiple distinct clients trying to latex at the same time...
Reported by Amanda Loudon.
\draw
statement and Save or Build.Running Latex... latexmk -pdf -f -g -bibtex -synctex=1 -interaction=nonstopmode tkx.tex
.pkill pdflatex
.