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