quick fix

This commit is contained in:
Aron Fischer 2020-10-12 17:18:42 +02:00
commit 38096897e9
2 changed files with 2 additions and 5 deletions

View file

@ -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))

View file

@ -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):