XML API - pdx:addMathEquation

pdx:addMathEquation

Inserts a math equation in OMML or MathML format.

Note

You are reading the XML API documentation. For the PHP API method please go to addMathEquation.

Description

Element definition

Adds a math equation to the DOCX.

Attributes and sub-elements

equation

The OMML equation code.

type

The equation type: docx, omml or mathml.

align

left, center, right

bold

color

ffffff, ff0000...

fontSize

8, 9, 10...

italic

underline

single...

Code samples

Example #1

config.xml

content.xml

settings.xml

PHP code

The resulting Word document looks like: