Skip to content

ppt equation add

zmworm edited this page Apr 29, 2026 · 51 revisions

PowerPoint: Equation - Add

Add mathematical equations and formulas to a slide.

Path: /slide[N] (parent)

Properties

Property Default Description
formula (required) OMML formula text
name Equation {N} Element name
x, y defaults Position (EMU or units)
width, height defaults Size (EMU or units)

Examples

# Add Einstein's formula
officecli add slides.pptx /slide[1] --type equation --prop "formula=E = mc^2" --prop x=5cm --prop y=10cm

# Add quadratic formula
officecli add slides.pptx /slide[1] --type equation --prop "formula=x = (-b +/- sqrt(b^2 - 4ac)) / 2a" --prop name="Quadratic" --prop x=3cm --prop y=5cm --prop width=8cm --prop height=2cm

Based on OfficeCLI v1.0.64

Clone this wiki locally