This module implements some utility functions to search some shapes (formulas, symbols) inside a Tex (or MathTex) mobject.
The approach is to compare the shapes (bezier curves) of the symbols, instead of the particular strings that produced them.
This approach is generic and avoids the use of other manim mechanisms that would break under some circunstances, such as
the presence of \frac{}{}
in a formula.
The function you would probably want to use is group_shapes_in_tex()
. Despite the confusing name, the goal is to
find all the occurences of a given symbol (or group of symbols, or list of symbols) inside a Tex mobject, and return a VGroup containing them