Forum


Replies: 13   Views: 4116
Add mathequation with bold-itlatic not working
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 243127387@qq.com  · 12-10-2015 - 07:46

Hi :

    I have bought the Version pro 5.0

    when add MathEquation with bold-itlatic,  In the generated word by office2013, can't  display properly; but in office 2007 , it can display properly , I don't  know reason. According to the code is as follows:

$docx->addText('We write a math equation using MathMML:');

$mathML = '<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML">
    <mml:mrow>
        <mml:mi mathvariant= "bold-italic">x</mml:mi>
        <mml:mi >y</mml:mi>
    </mml:mrow>
</mml:math>';

$docx->addMathEquation($mathML, 'mathml');

 

Looking forward to the reply, thank you!