Forum


Replies: 3   Views: 2139
10 to the power of x is not position at the top
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 teacheradvisor  · 13-02-2019 - 23:32

Hi,

Some HTML files contain math expressions like 10<span style="vertical-align: super;font-size:50%;">x+z</span> which is displayed fine on Chrome.

But, when converting the file to Word, the x+y power is displayed (position) on the same line as the number ten instead of verticaly aligned to the top of the line.

Is there a right way to write it so the generated Word document position the power right?

Please advise,

Thanks

Posted by teacheradvisor  · 14-02-2019 - 12:21

The HTML files are generated by MaxJax (https://www.mathjax.org), which uses CSS to position math expressions such as power.

That include CSS properties: position, top, left, and vertical-align.

Looks like "top" and "left" properties are not supported by phpdocx. Any plan to support them?

 

Thanks

Posted by admin  · 14-02-2019 - 12:28

Hello,

We have moved the request to the dev team to add support.

Regards.