From 7a7bf83f117034b5cdf60ae85511c1b004769651 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 8 Jan 2025 10:22:03 -0600 Subject: [PATCH] Only use -no-pdf for xelatex rendering (#2298) --- manimlib/utils/tex_file_writing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/utils/tex_file_writing.py b/manimlib/utils/tex_file_writing.py index 2778a0dc..cfc91f4f 100644 --- a/manimlib/utils/tex_file_writing.py +++ b/manimlib/utils/tex_file_writing.py @@ -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}",