From 266a75a4ef4da789f48c51a25036a704ba86df0f Mon Sep 17 00:00:00 2001 From: Waf Project Date: Thu, 7 Dec 2023 21:13:00 +0100 Subject: [PATCH] Switch to nonstopmode for latex prompts #2421 --- demos/tex/src/document-glossaries.ltx | 3 ++- demos/tex/src/wscript | 2 +- waflib/Tools/tex.py | 8 ++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/demos/tex/src/document-glossaries.ltx b/demos/tex/src/document-glossaries.ltx index 647a7371..267daa9e 100644 --- a/demos/tex/src/document-glossaries.ltx +++ b/demos/tex/src/document-glossaries.ltx @@ -10,7 +10,8 @@ \maketitle \tableofcontents -\glossarystyle{altlist} +% next line is broken after using a newer texlive version +%\glossarystyle{altlist} %% The glossary entries \newglossaryentry{african} diff --git a/demos/tex/src/wscript b/demos/tex/src/wscript index 7e45efae..f3f4a6fa 100644 --- a/demos/tex/src/wscript +++ b/demos/tex/src/wscript @@ -17,7 +17,7 @@ def build(bld): # optional parameters obj.outs = 'ps' # we want a postscript output too - 'ps pdf' works too - obj.prompt = 1 # put 0 for the batchmode (conceals the debug output) + obj.prompt = 1 # put 0 for the nonstopmode (conceals the debug output) obj.deps = 'wscript crossreferencing.ltx' # use this to give dependencies directly # or more simply, for a pdf.. diff --git a/waflib/Tools/tex.py b/waflib/Tools/tex.py index b4792c3f..22f78d0e 100644 --- a/waflib/Tools/tex.py +++ b/waflib/Tools/tex.py @@ -355,9 +355,9 @@ class tex(Task.Task): env = self.env if not env.PROMPT_LATEX: - env.append_value('LATEXFLAGS', '-interaction=batchmode') - env.append_value('PDFLATEXFLAGS', '-interaction=batchmode') - env.append_value('XELATEXFLAGS', '-interaction=batchmode') + env.append_value('LATEXFLAGS', '-interaction=nonstopmode') + env.append_value('PDFLATEXFLAGS', '-interaction=nonstopmode') + env.append_value('XELATEXFLAGS', '-interaction=nonstopmode') # important, set the cwd for everybody self.cwd = self.inputs[0].parent.get_bld() @@ -458,7 +458,7 @@ def apply_tex(self): outs = Utils.to_list(getattr(self, 'outs', [])) - # prompt for incomplete files (else the batchmode is used) + # prompt for incomplete files (else the nonstopmode is used) try: self.generator.bld.conf except AttributeError: