markdown2pdf: Added -interaction nonstopmode.
Otherwise it can hang if the error requests user input!
This commit is contained in:
parent
7d1940e037
commit
8ed75af42c
1 changed files with 2 additions and 2 deletions
|
@ -87,8 +87,8 @@ runPandoc inputsAndArgs output = do
|
|||
runLatexRaw :: String -> FilePath -> IO (Either (Either String String) FilePath)
|
||||
runLatexRaw latexProgram file = do
|
||||
-- we ignore the ExitCode because pdflatex always fails the first time
|
||||
run latexProgram ["-halt-on-error", "-output-directory",
|
||||
takeDirectory file, dropExtension file] >> return ()
|
||||
run latexProgram ["-halt-on-error", "-interaction", "nonstopmode",
|
||||
"-output-directory", takeDirectory file, dropExtension file] >> return ()
|
||||
let pdfFile = replaceExtension file "pdf"
|
||||
let logFile = replaceExtension file "log"
|
||||
txt <- tryJust (guard . isDoesNotExistError)
|
||||
|
|
Loading…
Add table
Reference in a new issue