Tex¶
Qualified name: manim.mobject.text.tex\_mobject.Tex
- class Tex(*tex_strings, arg_separator='', tex_environment='center', **kwargs)[source]¶
Bases:
MathTexA string compiled with LaTeX in normal mode.
The color can be set using the
colorargument. Any parts of thetex_stringthat are colored by the TeX commands\coloror\textcolorwill retain their original color.Tests
Check whether writing a LaTeX string works:
>>> Tex('The horse does not eat cucumber salad.') Tex('The horse does not eat cucumber salad.')
Methods
Attributes
alwaysCall a method on a mobject every frame.
animateUsed to animate the application of any method of
self.animation_overridescolordepthThe depth of the mobject.
fill_colorIf there are multiple colors (for gradient) this returns the first one
font_sizeThe font size of the tex mobject.
hash_seedA unique hash representing the result of the generated mobject points.
heightThe height of the mobject.
n_points_per_curvesheen_factorstroke_colorwidthThe width of the mobject.
- Parameters:
tex_strings (str)
arg_separator (str)
tex_environment (str | None)
kwargs (Any)
- _original__init__(*tex_strings, arg_separator='', tex_environment='center', **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
- Parameters:
tex_strings (str)
arg_separator (str)
tex_environment (str | None)
kwargs (Any)