@@ -48,7 +48,7 @@ runPandoc inputsAndArgs output = do
4848runLatexRaw :: String -> FilePath -> IO (Either (Either String String) FilePath)
4949runLatexRaw latexProgram file = do
5050 -- we ignore the ExitCode because pdflatex always fails the first time
51− run latexProgram ["-interaction=batchmode", "-output-directory",
51+ run latexProgram ["-halt-on-error", "-output-directory",
5252 takeDirectory file, dropExtension file] >> return ()
5353 let pdfFile = replaceExtension file "pdf"
5454 let logFile = replaceExtension file "log"