Function
src/index.ts:432nerdamer.convertFromLaTeX
nerdamer.convertFromLaTeX(TeX: string): ParserEntityParses the supported TeX subset into a Nerdamer parser entity.
Parameters
| Name | Type | Description |
|---|---|---|
TeX | string | TeX source accepted by Converter.fromTeX. |
Returns
ParserEntity — The parsed parser entity. Not every TeX construct is supported.
Examples
nerdamer.convertFromLaTeX('x^{2}+2 \\cdot x+1').text(); // '1+2*x+x^2'