From d0f493e95d79a56d32f033553031a84c51510e8d Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 8 Jan 2025 10:21:25 -0600 Subject: [PATCH] Only use -no-pdf for xelatex rendering --- 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}",