Skip to main content
Inspiring
Oct 23, 2026 5:56 PM UTC
Answered

How can I iterate through the mathematical expressions in a text flow and retrieve their MathML in the latest InDesign C++ SDK?

How can I iterate through the mathematical expressions in a text flow and retrieve their MathML in the latest InDesign C++ SDK?

    Eugene TysonCorrect answer
    Community Expert
    Oct 26, 2026 8:46 AM UTC

     

    ​@Marc Autret  has written a useful technical investigation of InDesign's MathML implementation, including the `MathObject` class and its scripting properties:

    https://indiscripts.com/post/2025/03/indesign-20-goes-to-mathml-2

    One important point from that investigation is that native MathObject instances don't appear in the normal allGraphics collection, so enumerating graphics alone won't find them.

    Are you specifically looking for a pure C++ implementation, or would calling the scripting DOM from your plug-in be acceptable?

    2 replies

    Eugene TysonCommunity ExpertCorrect answer
    Community Expert
    Oct 26, 2026 8:46 AM UTC

     

    ​@Marc Autret  has written a useful technical investigation of InDesign's MathML implementation, including the `MathObject` class and its scripting properties:

    https://indiscripts.com/post/2025/03/indesign-20-goes-to-mathml-2

    One important point from that investigation is that native MathObject instances don't appear in the normal allGraphics collection, so enumerating graphics alone won't find them.

    Are you specifically looking for a pure C++ implementation, or would calling the scripting DOM from your plug-in be acceptable?

    Translate
    lyj2871Author
    Inspiring
    Oct 27, 2026 4:43 AM UTC

    Thanks for the answer; I’ll give it a try.

    Translate