Replies: 1   Views: 870
Mathml linebreak not work
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 trinvh  · 15-04-2017 - 05:49

Hi, I am using PHPDOCX trial. If everything works I would buy a license.

I am facing an issue with MathML, some tags do not work properly.

1. Integral: when open with MS Word it always inserts an empty input after integral, how can i remove it?

2. Linebreak: not work

<mspace linebreak="newline"/>

Posted by admin  · 15-04-2017 - 08:35


linebreak is not supported, so we recommend you to use the API of phpdocx to add MS Word breaks or split the equation into multiple math elements.

You can change the output of the document using DOCXPath ( to remove contents (for example that empty input you refer), inserting new elements (for example adding breaks instead of using the linebreak tag), moving elements and cloning contents.

DOCXPath is available in Advanced and Premium licenses. After you have purchased an Advanced or Premium license please contact us again and we'll create a script to show you how to accomplish both tasks.