跳到主要内容

Latex

LaTeX mathematical formula component.

Properties

PropertyTypeDescription
latexSimpleSignal<string, this>LaTeX formula
fontSizeSimpleSignal<number, this>Font size

Examples

import {Latex} from '@wangyaoshen/locus';

const formula = new Latex({
latex: 'x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}',
fontSize: 48,
});