Skip to main content

Interface: MathTexImageOptions

Defined in: src/mobjects/text/MathTexImage.ts:48

Options for creating a MathTexImage object

Properties​

_padding?​

optional _padding: number

Defined in: src/mobjects/text/MathTexImage.ts:62

Internal: padding in pixels around the rendered content. Default: 10


color?​

optional color: string

Defined in: src/mobjects/text/MathTexImage.ts:54

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


displayMode?​

optional displayMode: boolean

Defined in: src/mobjects/text/MathTexImage.ts:58

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


fontSize?​

optional fontSize: number

Defined in: src/mobjects/text/MathTexImage.ts:56

Base font size in pixels. Default: 48


latex​

latex: string | string[]

Defined in: src/mobjects/text/MathTexImage.ts:52

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: src/mobjects/text/MathTexImage.ts:60

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


renderer?​

optional renderer: TexRenderer

Defined in: src/mobjects/text/MathTexImage.ts:69

Which renderer to use.

  • 'katex' : KaTeX only (fast)
  • 'mathjax': MathJax SVG only (full LaTeX support)
  • 'auto' : KaTeX first, MathJax fallback (default)