addMathEquation
addMathEquation
BASIC / ADVANCED / PREMIUM
Inserts a math equation into the PowerPoint presentation.
Description
public addMathEquation($equation, $type, $position, $options = array())
This method inserts OMML or MathML equations into the PowerPoint presentation.
Parameters
equation
OMML equation string or MathML.
type
Type of equation: omml, mathml.
position
Key | Type | Description |
---|---|---|
placeholder | array |
The content is added in a placeholder of the layout. One of the following options can be used to get the text box.
|
new | array |
A new position is generated.
|
options
Key | Type | Description |
---|---|---|
align | string | left, center, right. |
color | string | Hexadecimal color value: 'FF0000', '000000'... |
fontSize | int | 8, 9, 10... |
Exceptions
Not valid type.
Position not valid.
Release notes
- phppptx 2.0:
- new method.