Latex
LaTeX mathematical formula component.
Properties
| Property | Type | Description |
|---|---|---|
latex | SimpleSignal<string, this> | LaTeX formula |
fontSize | SimpleSignal<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,
});