Skip to main content

Interface: MathTexOptions

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

Properties

color?

optional color: string

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

Color as CSS color string. Default: WHITE ('#ffffff')


displayMode?

optional displayMode: boolean

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

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


fillOpacity?

optional fillOpacity: number

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

Fill opacity for glyph interiors. Default: 1


fontSize?

optional fontSize: number

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

Scale factor (1 = standard math size). Default: 1


height?

optional height: number

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

Explicit target height in world units. Overrides fontSize scaling.


latex

latex: string | string[]

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

LaTeX string or array of strings for multi-part expressions.


macros?

optional macros: Record<string, string>

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

Custom LaTeX macros as { name: expansion }.


position?

optional position: Vector3Tuple

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

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


strokeWidth?

optional strokeWidth: number

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

Stroke width for glyph outlines. Default: 0