From ebf2ee58494b59a3895965aa627f9a7805aa686a Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 1 Feb 2023 20:12:06 -0800 Subject: [PATCH] Update tex patterns --- manimlib/utils/tex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/utils/tex.py b/manimlib/utils/tex.py index 719d228a..791cdc5c 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"] + for s in ["begin", "end", "phantom", "text"] ) tex = re.sub(pattern, "", tex)