File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ def construct(self):
34
34
myTemplate .tex_compiler = "pdflatex"
35
35
myTemplate .output_format = ".pdf"
36
36
37
- # To use this template in a Tex() or MathTex object
37
+ # To use this template in a Tex() or MathTex() object
38
38
# use the keyword argument tex_template
39
39
text = MathTex (r"\vv{vb}" , tex_template = myTemplate )
40
40
self .play (Write (text ))
Original file line number Diff line number Diff line change @@ -172,10 +172,7 @@ def rebuild(self):
172
172
def file_not_mutable ():
173
173
raise Exception ("Cannot modify TexTemplate when using a template file." )
174
174
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 ):
179
176
self .file_not_mutable ()
180
177
181
178
def add_to_document (self , txt ):
You can’t perform that action at this time.
0 commit comments