Replace all unbalanced \left \right text in TexMobject

This commit is contained in:
Grant Sanderson
2018-05-17 11:31:58 -07:00
parent 1c71a00073
commit 76fc648615

View File

@ -86,7 +86,7 @@ class SingleStringTexMobject(SVGMobject):
should_replace = reduce(op.and_, [
t1 in tex,
t2 not in tex,
len(tex) > len(t1) and tex[len(t1)] in "()[]<>|.\\"
len(tex) > len(t1)
])
if should_replace:
tex = tex.replace(t1, "\\big")