@@ -77,7 +77,7 @@ def __init__(
77
77
if post_doc_commands is not None
78
78
else TexTemplate .default_post_doc_commands
79
79
)
80
- self ._rebuild \(\ )
80
+ self ._rebuild ( )
81
81
82
82
def _rebuild (self ):
83
83
""" Assembles a fully formed tex document (documentclass, preamble, body ...) and stores it as self.body """
@@ -109,7 +109,7 @@ def add_to_preamble(self, txt, prepend=False):
109
109
self .preamble = txt + "\n " + self .preamble
110
110
else :
111
111
self .preamble += "\n " + txt
112
- self ._rebuild \(\ )
112
+ self ._rebuild ( )
113
113
114
114
def add_to_document (self , txt ):
115
115
"""Adds txt to the TeX template just after \\ begin{document}, e.g. ``\\ boldmath``
@@ -120,7 +120,7 @@ def add_to_document(self, txt):
120
120
String containing the text to be added.
121
121
"""
122
122
self .post_doc_commands += "\n " + txt + "\n "
123
- self ._rebuild \(\ )
123
+ self ._rebuild ( )
124
124
125
125
def get_texcode_for_expression (self , expression ):
126
126
"""Inserts expression verbatim into TeX template.
@@ -166,7 +166,7 @@ def __init__(self, **kwargs):
166
166
self .template_file = kwargs .pop ("filename" , "tex_template.tex" )
167
167
super ().__init__ (** kwargs )
168
168
169
- def rebuild (self ):
169
+ def _rebuild (self ):
170
170
with open (self .template_file , "r" ) as infile :
171
171
self .body = infile .read ()
172
172
0 commit comments