Hello,
On https://www.phpdocx.com/api-documentation/word-content/add-math-OMML-Word-document-with-PHP you can read the supported styles when inserting MathML contents:
options
The possible keys and values are (required options are shown with yellow background):
Key Type Description
align string left, center, right
As the font size style is not directly supported by the method, you need to use a custom paragraph style (https://www.phpdocx.com/api-documentation/layout-and-general/create-Word-custom-paragraph-style-with-PHP) or DOCXCustomizer (https://www.phpdocx.com/documentation/introduction/docxcustomizer). Or set it in the imported MathML tags.
The current beta of phpdocx includes new options for addMathEquation (such as font size, underscore, bold and others) to be applied to math equations). If you upgrade your license to the latest release, the dev team will send you the new classes and new samples to illustrate how to use them. You can upgrade your license on MY PHPDOCX page after login.
Regards.