You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#112766 Mathml

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by timpennington on Monday, 09 January 2023 12:12 GMT

timpennington
I am not quite sure how to add Mathml coding to articles; the item on "Code Block" is a little vague.

Can someone provide a link where I can read more, or offer some guidance so I can add Mathml content in articles where I have code from another source?

Thanks

Ryan
In Editor Profiles -> Editor Parameters -> Advanced, set Enable Code Blocks and Allow Custom XML to Yes. In the editor, select XML from the Format list (the list that contains Paragraph, DIV, Heading 1 etc.). This will create an XML code block. Paste or type in your MathML, eg:

<math>
    <mrow>
      <msup>
        <mi>a</mi>
        <mn>2</mn>
      </msup>
      <mo>+</mo>
      <msup>
        <mi>b</mi>
        <mn>2</mn>
      </msup>
      <mo>=</mo>
      <msup>
        <mi>c</mi>
        <mn>2</mn>
      </msup>
    </mrow>
  </math>

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

timpennington
Thank you; that worked perfectly.

Much appreciated.