execute pdflatex in nonstopmode (#5305)
* Name is irritating; nonstopmode stops execution if an error occurs instead of asking the user for input.
This commit is contained in:
parent
51c764e048
commit
6effe4553b
1 changed files with 3 additions and 2 deletions
|
|
@ -322,11 +322,12 @@ proc buildPdfDoc(c: var TConfigData, destPath: string) =
|
||||||
if os.execShellCmd("pdflatex -version") != 0:
|
if os.execShellCmd("pdflatex -version") != 0:
|
||||||
echo "pdflatex not found; no PDF documentation generated"
|
echo "pdflatex not found; no PDF documentation generated"
|
||||||
else:
|
else:
|
||||||
|
const pdflatexcmd = "pdflatex -interaction=nonstopmode "
|
||||||
for d in items(c.pdf):
|
for d in items(c.pdf):
|
||||||
exec(findNim() & " rst2tex $# $#" % [c.nimArgs, d])
|
exec(findNim() & " rst2tex $# $#" % [c.nimArgs, d])
|
||||||
# call LaTeX twice to get cross references right:
|
# call LaTeX twice to get cross references right:
|
||||||
exec("pdflatex " & changeFileExt(d, "tex"))
|
exec(pdflatexcmd & changeFileExt(d, "tex"))
|
||||||
exec("pdflatex " & changeFileExt(d, "tex"))
|
exec(pdflatexcmd & changeFileExt(d, "tex"))
|
||||||
# delete all the crappy temporary files:
|
# delete all the crappy temporary files:
|
||||||
let pdf = splitFile(d).name & ".pdf"
|
let pdf = splitFile(d).name & ".pdf"
|
||||||
let dest = destPath / pdf
|
let dest = destPath / pdf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue