addMathEquation

addMathEquation

BASIC / ADVANCED / PREMIUM

Inserts a math equation in OMML or MathML format.

Description
public void addMathEquation(String equation, String type)
public void addMathEquation(String equation, String type, OptionsMathEquation options)

Adds a math equation to the DOCX.

Parameters

equation

The equation code.

type

The equation type: omml or mathml.

options

Option Type Description
align String left, center, right
Code samples

Example #1

The resulting Word document looks like: