How to publish mathml in dita to PDF

lisazeng99
Posts: 14
Joined: Thu Sep 14, 2017 10:24 am

How to publish mathml in dita to PDF

Post by lisazeng99 » Fri Sep 04, 2020 4:04 pm

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>

Radu
Posts: 7150
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to publish mathml in dita to PDF

Post by Radu » Sat Sep 05, 2020 12:59 pm

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply