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}",