Skip to content

Commit 3809689

Browse files
author
Aron Fischer
committed
quick fix
1 parent d41f00f commit 3809689

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

example_scenes/customtex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def construct(self):
3434
myTemplate.tex_compiler = "pdflatex"
3535
myTemplate.output_format = ".pdf"
3636

37-
# To use this template in a Tex() or MathTex object
37+
# To use this template in a Tex() or MathTex() object
3838
# use the keyword argument tex_template
3939
text = MathTex(r"\vv{vb}", tex_template=myTemplate)
4040
self.play(Write(text))

manim/utils/tex.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,7 @@ def rebuild(self):
172172
def file_not_mutable():
173173
raise Exception("Cannot modify TexTemplate when using a template file.")
174174

175-
def prepend_to_preamble(self, txt):
176-
self.file_not_mutable()
177-
178-
def add_to_preamble(self, txt):
175+
def add_to_preamble(self, txt, prepend=False):
179176
self.file_not_mutable()
180177

181178
def add_to_document(self, txt):

0 commit comments

Comments
 (0)