(cmd: list[str])
| 367 | shutil.copy2(bib, tmp / bib.name) |
| 368 | |
| 369 | def _run(cmd: list[str]) -> subprocess.CompletedProcess: |
| 370 | r = subprocess.run( |
| 371 | cmd, cwd=str(tmp), |
| 372 | stdout=subprocess.PIPE, stderr=subprocess.STDOUT, timeout=120, |
| 373 | ) |
| 374 | return r |
| 375 | |
| 376 | # pdflatex pass 1 |
| 377 | r1 = _run(["pdflatex", "-interaction=nonstopmode", "main.tex"]) |