Interface: MathTexOptions
Defined in: mobjects/text/MathTex.ts:34
Options for creating a MathTex object
Properties
_padding?
optional_padding:number
Defined in: mobjects/text/MathTex.ts:48
Internal: padding in pixels around the rendered content. Default: 10
color?
optionalcolor:string
Defined in: mobjects/text/MathTex.ts:40
Color as CSS color string. Default: '#ffffff'
displayMode?
optionaldisplayMode:boolean
Defined in: mobjects/text/MathTex.ts:44
Use display mode (block) vs inline mode. Default: true
fontSize?
optionalfontSize:number
Defined in: mobjects/text/MathTex.ts:42
Base font size in pixels. Default: 48
latex
latex:
string|string[]
Defined in: mobjects/text/MathTex.ts:38
LaTeX string or array of strings for multi-part expressions. When an array is provided, each string becomes a separate sub-mobject accessible via getPart(index), matching Python Manim's behavior.
position?
optionalposition:Vector3Tuple
Defined in: mobjects/text/MathTex.ts:46
Position in 3D space. Default: [0, 0, 0]
renderer?
optionalrenderer:TexRenderer
Defined in: mobjects/text/MathTex.ts:55
Which renderer to use.
- 'katex' : KaTeX only (fast)
- 'mathjax': MathJax SVG only (full LaTeX support)
- 'auto' : KaTeX first, MathJax fallback (default)