Skip to content

Commit

Permalink
Quick fix to allow usage of tectonic tex compiler
Browse files Browse the repository at this point in the history
No extensive testing done. Someone would have to look over it. Would be a nice feature though.
  • Loading branch information
0x7969 authored Oct 8, 2021
1 parent 1a73261 commit 0477170
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pylatex/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,18 @@ 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}

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:
Expand Down

0 comments on commit 0477170

Please sign in to comment.