Fix typo bug and change default alignment for text

This commit is contained in:
Grant Sanderson 2021-01-05 22:04:16 -08:00
parent dde085094f
commit 06f0374143

View file

@ -33,7 +33,7 @@ class SingleStringTexMobject(SVGMobject):
"font_size": 48, "font_size": 48,
"height": None, "height": None,
"organize_left_to_right": False, "organize_left_to_right": False,
"alignment": "", "alignment": "", # Could be "\\centering",
"math_mode": True, "math_mode": True,
} }
@ -233,7 +233,7 @@ class TexMobject(SingleStringTexMobject):
return self return self
def set_color_by_tex_to_color_map(self, tex_to_color_map, **kwargs): def set_color_by_tex_to_color_map(self, tex_to_color_map, **kwargs):
for texs, color in list(tex_to_color_map.items()): for tex, color in list(tex_to_color_map.items()):
self.set_color_by_tex(tex, color, **kwargs) self.set_color_by_tex(tex, color, **kwargs)
return self return self
@ -267,7 +267,6 @@ class TexMobject(SingleStringTexMobject):
class TextMobject(TexMobject): class TextMobject(TexMobject):
CONFIG = { CONFIG = {
"math_mode": False, "math_mode": False,
"alignment": "\\centering",
"arg_separator": "", "arg_separator": "",
} }