Improve LaTeX compilation code
This commit is contained in:
parent
f7af1b4863
commit
c45e17e531
1 changed files with 4 additions and 4 deletions
|
@ -140,10 +140,10 @@ class Lectures(list):
|
|||
return l
|
||||
|
||||
def compile_master(self):
|
||||
subprocess.Popen(
|
||||
['latexmk', '-g', '-f', str(self.master_file)],
|
||||
cwd=str(self.root),
|
||||
result = subprocess.run(
|
||||
['latexmk', '-f', '-interaction=nonstopmode', str(self.master_file)],
|
||||
stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.DEVNULL
|
||||
stderr=subprocess.DEVNULL,
|
||||
cwd=str(self.root)
|
||||
)
|
||||
return result.returncode
|
||||
|
|
Loading…
Reference in a new issue