addMathEquation

addMathEquation

BASIC / ADVANCED / PREMIUM

Inserts a math equation in OMML or MathML format.

Description
public addMathEquation ( string $equation, string $type [, array $options] )

Adds a math equation to the DOCX.

Parameters

equation

The OMML equation code.

type

The equation type: docx, omml or mathml.

options

The possible keys and values are (required options are shown with yellow background):

Key Type Description
align string left, center, right
Code samples

Example #1

The resulting Word document looks like: