Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Small change to generate_tex_file: optional params

Philipp Imhof1e8adce2fa5e
diff --git a/manim/utils/tex_file_writing.py b/manim/utils/tex_file_writing.py
index 5171e82a5..892a0b37b 100644
--- a/manim/utils/tex_file_writing.py
+++ b/manim/utils/tex_file_writing.py
@@ -47,7 +47,7 @@ def tex_to_svg_file(expression, environment=None, tex_template=None):
return convert_to_svg(dvi_file, tex_template.output_format)
-def generate_tex_file(expression, environment, tex_template):
+def generate_tex_file(expression, environment=None, tex_template=None):
"""Takes a tex expression (and an optional tex environment),
and returns a fully formed tex file ready for compilation.