From 6effe4553bfc8a57e6d718bfb147905393c2a943 Mon Sep 17 00:00:00 2001 From: flyx Date: Tue, 31 Jan 2017 10:31:48 +0100 Subject: [PATCH] execute pdflatex in nonstopmode (#5305) * Name is irritating; nonstopmode stops execution if an error occurs instead of asking the user for input. --- tools/nimweb.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/nimweb.nim b/tools/nimweb.nim index 9a21a0fb51..2c905057e9 100644 --- a/tools/nimweb.nim +++ b/tools/nimweb.nim @@ -322,11 +322,12 @@ proc buildPdfDoc(c: var TConfigData, destPath: string) = if os.execShellCmd("pdflatex -version") != 0: echo "pdflatex not found; no PDF documentation generated" else: + const pdflatexcmd = "pdflatex -interaction=nonstopmode " for d in items(c.pdf): exec(findNim() & " rst2tex $# $#" % [c.nimArgs, d]) # call LaTeX twice to get cross references right: - exec("pdflatex " & changeFileExt(d, "tex")) - exec("pdflatex " & changeFileExt(d, "tex")) + exec(pdflatexcmd & changeFileExt(d, "tex")) + exec(pdflatexcmd & changeFileExt(d, "tex")) # delete all the crappy temporary files: let pdf = splitFile(d).name & ".pdf" let dest = destPath / pdf