How to cancel LaTeX compiling in Terminal?

Posted on

Problem :

When I compile a LaTeX document in the terminal like so:

latex document.tex

How do I then abort the process? CtrlC doesn’t work.

Solution :

CtrlD will do the trick.

However, use -file-line-error -halt-on-error on the command line. Or learn how to edit LaTeX from the compiler if you wanted to be hard core.

CtrlC should work while latex is “running”.

If an error occurs, and latex presents you its prompt, CtrlD, which signifies “end-of-input” can be used to get on.

Leave a Reply

Your email address will not be published. Required fields are marked *