コード例 #1
0
 def __init__(self, tex_string, **kwargs):
     digest_config(self, kwargs)
     assert (isinstance(tex_string, str))
     self.tex_string = tex_string
     file_name = tex_to_svg_file(self.get_modified_expression(tex_string),
                                 self.template_tex_file_body)
     SVGMobject.__init__(self, file_name=file_name, **kwargs)
     if self.height is None:
         self.scale(TEX_MOB_SCALE_FACTOR)
     if self.organize_left_to_right:
         self.organize_submobjects_left_to_right()
コード例 #2
0
 def __init__(self, tex_string, **kwargs):
     digest_config(self, kwargs)
     assert(isinstance(tex_string, str))
     self.tex_string = tex_string
     file_name = tex_to_svg_file(
         self.get_modified_expression(tex_string),
         self.template_tex_file
     )
     SVGMobject.__init__(self, file_name=file_name, **kwargs)
     if self.height is None:
         self.scale(TEX_MOB_SCALE_FACTOR)
     if self.organize_left_to_right:
         self.organize_submobjects_left_to_right()