Skip to main content

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?

optional color: string

Defined in: mobjects/text/MathTex.ts:40

Color as CSS color string. Default: '#ffffff'


displayMode?

optional displayMode: boolean

Defined in: mobjects/text/MathTex.ts:44

Use display mode (block) vs inline mode. Default: true


fontSize?

optional fontSize: 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?

optional position: Vector3Tuple

Defined in: mobjects/text/MathTex.ts:46

Position in 3D space. Default: [0, 0, 0]


renderer?

optional renderer: 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)