Only use -no-pdf for xelatex rendering (#2298)

This commit is contained in:
Grant Sanderson 2025-01-08 10:22:03 -06:00 committed by GitHub
parent 24eefef5bf
commit 7a7bf83f11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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