mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Update tex patterns
This commit is contained in:
parent
f4a6f99b54
commit
ebf2ee5849
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue