Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

latex document.tex

How do I then abort the process? Ctrl-C doesn't work.

share|improve this question
up vote 9 down vote accepted

Ctrl-D 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.

share|improve this answer
1  
Ctrl-D seems to skip over the current error, but continues compiling. Is there a shortcut to abort compiling altogether? FYI I'm using latexmk – Jeff May 2 '13 at 21:48

Ctrl-C should work while latex is "running".

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .