Skip to content

Intermact API Reference / @intermact/core / layoutMathJaxLatex

Function: layoutMathJaxLatex()

layoutMathJaxLatex(tex, props?): Promise<{ glyphs: PlacedGlyph[]; width: number; }>

Defined in: packages/core/src/text/mathjax-latex.ts:166

Lay out a TeX string via MathJax SVG into PlacedGlyphs ready for composeGlyphs. Math output uses serif glyph outlines by default.

Parameters

tex

string

props?

Omit<LatexObjectProps, "tex"> = {}

Returns

Promise<{ glyphs: PlacedGlyph[]; width: number; }>

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)