Feat: latexmk worker to compile tex

This commit is contained in:
2022-04-10 16:27:12 +02:00
parent 76a033cf43
commit ac8fe3dfdd
2 changed files with 47 additions and 0 deletions

12
bopytex/worker/compile.py Normal file
View File

@@ -0,0 +1,12 @@
import subprocess
def latexmk(args: dict, deps, output):
compile_process = subprocess.Popen(
["latexmk", deps[0]],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True
)
yield from compile_process.stderr