Make arara close pdflatex upon error

You can pass arara the command line option halt-on-error:

% arara: pdflatex: { options: [-halt-on-error]}
% arara: bibtex
% arara: pdflatex

\documentclass{article}

\begin{document}

\ERROR

\end{document}

enter image description here

As you see from the picture, I clicked the “compile” button and it became green again after arara stopped.

Here I used TeXworks, but it should be the same with TeXStudio.


Instead of trying to fix the behaviour of the stop compile button, I would avoid to having to use it in the first place.

If you call arara with:

% arara: pdflatex: {interaction: nonstopmode}

(arara version 4.0)

% arara: pdflatex: {action: nonstopmode}

(arara version 3.0)

this will tell pdflatex to finish its run, no matter if there had beed errors or not - so you will not need to aboard pdflatex manually.