Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

XML/MathML to PDF

Community Beginner ,
Apr 28, 2014 Apr 28, 2014

Hi,

I have XML with MathML inside, and I want to generate PDF. I have imported XML in FrameMaker template and formatted the XML with EDD support. However, all my MathML coding appear as text instead of Equation. I want to render all inline MathML tags as Equation. I aware that I can create Equation through "Special->MathML Equation" menu, but this approach seems like I need to re-create all equations one by one. Please advise.

3.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 19, 2014 May 19, 2014

First you need to wrap the mathML inside an element.

For ex:-

<MathML><math overflow="scroll">

   <mrow>

      <mover accent="true">

       <mrow>

           <mi>A</mi>

           <mi>B</mi>

        </mrow>

        <mrow>

           <mo>&rarr;</mo>

        </mrow>

      </mover>

   </mrow>

</math>

</MathML>

in your EDD you need to define a new element MathML which is MathMlEquation you also need to add InitailObjectFormat.-> All Context Rule ->MathMlEquation With Style -> Anchored frame Style.

Create an Anchor frame style with position as inline.

Also make sure that your dtd support your new MathMl Element.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 19, 2014 May 19, 2014

Hi Jite,

Thanks. This is helpful. I have some difficult to set this. But, will it base-align the inline MathML equations as like as FM inbuilt equations? Because, the base-align in inline equations are the critical requirement in my automated project.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 23, 2014 May 23, 2014

You need to manually set the baseline in the object style mentioned in the EDD currently. You can create three object style small , medium, large and adjust the Anchored frame style attribute  distance from baseline accordingly. (this will be negative in this case)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 23, 2014 May 23, 2014
LATEST

Hi Jite,

Thanks. We do professional typography service wherein base-align needs to be 100% accurate and no negotiations applicable. Unfortunately, your suggestion would not work fit for our requirement. The purpose of FrameMaker for us is to expect the professional output in PDF.

Thank you so much for helping on this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines