-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Labels
pr:bugfixBug fix for use in PRs solving a specific issue:bugBug fix for use in PRs solving a specific issue:bug
Description
TexMobject("\{") gives an error, because the string "\\{" goes through the function remove_stray_braces which balances the unbalanced { to make a "\{}", which gives a Latex error.
The same thing applies to TexMobject("\}").
A quick fix would be to add those lines to the remove_stray_braces, although this should be consulted with more knowledgable person in Latex (or Python as a matter of fact):
num_lefts_bogus, num_rights_bogus = [
tex.count(char)
for char in ['\\{','\\}']
]
num_lefts -= num_lefts_bogus
num_rights -= num_rights_bogus
Metadata
Metadata
Assignees
Labels
pr:bugfixBug fix for use in PRs solving a specific issue:bugBug fix for use in PRs solving a specific issue:bug