Page 1 of 1

How to publish mathml in dita to PDF

Posted: Fri Sep 04, 2020 4:04 pm
by lisazeng99
HI Oxygen experts,

In my dita source, i use the mathml from below page and publish it with the default PDF output.

I can the the math equation in the Oxygen Author, however it is missing in the output PDF.

Should I customize some logic in the pdf plugin? Would you please share some suggestion, thanks!

mathml is from : https://www.oxygenxml.com/dita/1.3/spec ... athml.html
<equation-block>
<mathml>
<m:math xmlns:m ="http://www.w3.org/1998/Math/MathML">
<m:semantics>
<m:mrow>
<m:msqrt>
<m:mrow>
<m:msup>
<m:mi>a</m:mi>
<m:mn>2</m:mn>
</m:msup>
<m:mo>+</m:mo><m:msup>
<m:mi>b</m:mi>
<m:mn>2</m:mn>
</m:msup>
</m:mrow>
</m:msqrt>
</m:mrow>
</m:semantics>
</m:math>
</mathml>
</equation-block>

Re: How to publish mathml in dita to PDF

Posted: Sat Sep 05, 2020 12:59 pm
by Radu
Hi,

Using the DITA Open Toolkit bundled with Oxygen, the equation you posted does appear for me in the classic PDF output and in the PDF built using our CSS-based transformation. Is it possible you are using an external DITA OT publishing engine? If so, on this DITA OT issue there are links to some older discussions where I explained how the support can be be added in the DITA OT:

https://github.com/dita-ot/dita-ot/issues/1774

Regards,
Radu