Only use -no-pdf for xelatex rendering

This commit is contained in:
Grant Sanderson 2025-01-08 10:21:25 -06:00
parent 24eefef5bf
commit d0f493e95d

View file

@ -105,7 +105,7 @@ def full_tex_to_svg(full_tex: str, compiler: str = "latex", message: str = ""):
process = subprocess.run(
[
compiler,
"-no-pdf",
*(['-no-pdf'] if compiler == "xelatex" else []),
"-interaction=batchmode",
"-halt-on-error",
f"-output-directory={temp_dir}",