Forum


Replies: 3   Views: 2013
Replacevariablebywordfragment inline removes the font size of the rest of the text
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 06-12-2019 - 10:30

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.