AddMathEquation

function AddMathEquation(sText: string = null, sFormat: unicode | latex = "unicode"): void

Description

Add a math equation

Parameters

sTextstringdefault: null

An equation written as a linear text string

sFormatunicode | latexdefault: "unicode"

The format of the specified linear representation

Returns

void

Try It

var oDocument = Api.GetDocument();
oDocument.AddMathEquation("e^x = 1 + x + \\frac{x^2}{2} + \\frac{x^3}{6} + \\cdots = \\sum_{n\\geq 0} \\frac{x^n}{n!}", "latex");

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).