mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
quick fix
This commit is contained in:
parent
d41f00fc54
commit
38096897e9
2 changed files with 2 additions and 5 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue