Skip to main content

Function: ensureKatexStyles()

ensureKatexStyles(): void

Defined in: src/mobjects/text/katexStyles.ts:45

Ensure KaTeX styles are loaded in the document. This is called automatically by MathTex on first use.

The stylesheet is loaded from a CDN for convenience. In production, you may want to bundle the CSS directly.

Returns

void