diff --git a/pylatex/document.py b/pylatex/document.py index 47d4c73f..a68b686f 100644 --- a/pylatex/document.py +++ b/pylatex/document.py @@ -235,8 +235,6 @@ def generate_pdf(self, filepath=None, *, clean=True, clean_tex=True, ('pdflatex', []) ) - main_arguments = ['--interaction=nonstopmode', filepath + '.tex'] - check_output_kwargs = {} if python_cwd_available: check_output_kwargs = {'cwd': dest_dir} @@ -244,6 +242,11 @@ def generate_pdf(self, filepath=None, *, clean=True, clean_tex=True, os_error = None for compiler, arguments in compilers: + if compiler == 'tectonic': + main_arguments = [filepath + '.tex'] + else: + main_arguments = ['--interaction=nonstopmode', filepath + '.tex'] + command = [compiler] + arguments + compiler_args + main_arguments try: