From 34d8ab81f95a30cdc54a1c18ecbbe43bb95fe2f9 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 28 Dec 2022 13:38:15 -0800 Subject: [PATCH] Fix for num_tex_symbols --- 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 b8d45b42..e3ea53bb 100644 --- a/manimlib/utils/tex.py +++ b/manimlib/utils/tex.py @@ -32,7 +32,7 @@ def get_pattern_symbol_count_pairs() -> List[Tuple[str, int]]: ) for count, tex_list in count_to_tex_list.items(): - pattern = "|".join(r"\\" + s + r"(\s|\\)" + s for s in tex_list) + pattern = "|".join(r"\\" + s for s in tex_list) pattern_symbol_count_pairs.append((pattern, count)) # Assume all other expressions of the form \thing are drawn with one path