Skip to content

Commit

Permalink
Run pdflatex twice
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 24, 2024
1 parent d517a06 commit a98318d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ async def render_latex(job_id, output_format, code, density, quality):
f.close()
try:
try:
output = await run_command_async(
COMMAND_LATEX.format(pdir = pdir, fname = fname),
timeout = 8
)
for i in range(0, 2):
await run_command_async(
COMMAND_LATEX.format(pdir = pdir, fname = fname),
timeout = 8
)
finally:
log_file = fname.replace('.tex', '.log')
try:
Expand Down

0 comments on commit a98318d

Please sign in to comment.