diff --git a/manimlib/utils/tex.py b/manimlib/utils/tex.py index 791cdc5c..719d228a 100644 --- a/manimlib/utils/tex.py +++ b/manimlib/utils/tex.py @@ -16,7 +16,7 @@ def num_tex_symbols(tex: str) -> int: # \begin{array}{cc}, etc. pattern = "|".join( rf"(\\{s})" + r"(\{\w+\})?(\{\w+\})?(\[\w+\])?" - for s in ["begin", "end", "phantom", "text"] + for s in ["begin", "end", "phantom"] ) tex = re.sub(pattern, "", tex)