Fork me on GitHub


This module outputs a formula to LaTeX.

To use it, use the MathAtom.toLatex() method.


latexify(value: string | MathAtom | MathAtom[]): stringprivateinner

Given an atom or an array of atoms, return a LaTeX string representation

value : string | MathAtom | MathAtom[]
: string   

latexifyArray(parent: MathAtom, atoms: MathAtom[], expandMacro: boolean)inner

parent : MathAtom

the parent or predecessor of the atom list

atoms : MathAtom[]

the list of atoms to transform to LaTeX

expandMacro : boolean

true if macros should be expanded