Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

quick fix

Aron Fischer38096897e9ea
diff --git a/example_scenes/customtex.py b/example_scenes/customtex.py
index 6d119ba58..a4f9a0146 100644
--- a/example_scenes/customtex.py
+++ b/example_scenes/customtex.py
@@ -34,7 +34,7 @@ class InCodeTexTemplate(Scene):
myTemplate.tex_compiler = "pdflatex"
myTemplate.output_format = ".pdf"
- # To use this template in a Tex() or MathTex object
+ # To use this template in a Tex() or MathTex() object
# use the keyword argument tex_template
text = MathTex(r"\vv{vb}", tex_template=myTemplate)
self.play(Write(text))
diff --git a/manim/utils/tex.py b/manim/utils/tex.py
index 64080c43d..4fded8006 100644
--- a/manim/utils/tex.py
+++ b/manim/utils/tex.py
@@ -172,10 +172,7 @@ class TexTemplateFromFile(TexTemplate):
def file_not_mutable():
raise Exception("Cannot modify TexTemplate when using a template file.")
- def prepend_to_preamble(self, txt):
- self.file_not_mutable()
-
- def add_to_preamble(self, txt):
+ def add_to_preamble(self, txt, prepend=False):
self.file_not_mutable()
def add_to_document(self, txt):