@@ -87,8 +87,8 @@ runPandoc inputsAndArgs output = do
8787runLatexRaw :: String -> FilePath -> IO (Either (Either String String) FilePath)
8888runLatexRaw latexProgram file = do
8989 -- we ignore the ExitCode because pdflatex always fails the first time
90− run latexProgram ["-halt-on-error", "-output-directory",
91− takeDirectory file, dropExtension file] >> return ()
90+ run latexProgram ["-halt-on-error", "-interaction", "nonstopmode",
91+ "-output-directory", takeDirectory file, dropExtension file] >> return ()
9292 let pdfFile = replaceExtension file "pdf"
9393 let logFile = replaceExtension file "log"
9494 txt <- tryJust (guard . isDoesNotExistError)