addMathEquation

addMathEquation

BASIC / ADVANCED / PREMIUM

Inserts a math equation in OMML or MathML format.

Description
public addMathEquation ( string $equation, string $type )

Adds a math equation to the DOCX.

Parameters

equation

The OMML equation code.

type

The equation type: docx, omml or mathml.

Return values

Void.

Code samples

Example #1

The resulting Word document looks like: