Skip to main content
潔38992292yczw
Participating Frequently
November 25, 2024
Answered

MathML

  • November 25, 2024
  • 5 replies
  • 1792 views

Hi there!!

MathML for InDesign is great!!

I wish I could change font color something like below...

 

            <math mathcolor="#000000">
                <mrow>            
                    <mi>a</mi>            
                    <mi>b</mi>
                    <mi>c</mi>
                    <mi>d</mi>
                    <mi>e</mi>
                    <mi>f</mi>
                    <mi mathcolor="#d0111b">g</mi>
                    <mi>h</mi>
                    <mi>i</mi>        
                </mrow>            
            </math>
Correct answer Peter Kahrel
quote

Start reading this thread from the top.


By @Peter Kahrel

 

I can swear the question was for "font" - not "color"? 

 


They asked "change fonts for MathML, like color?" Meaning, I guess, "change font attributes, like colour".

5 replies

Robert at ID-Tasker
Legend
February 10, 2025
Peter Kahrel
Community Expert
Community Expert
November 25, 2024

There's something I don't understand. @jimmy_2799 wrote 

 

>To change the font color in MathML for InDesign, you can use the mathcolor attribute as you've done in your example. This should apply the specified color to the elements within the tag.

 

That's what you did originally. He didn't say anything about mrow, which you applied, and which you claim worked. But when I tried it InDesign said that the structure is invalid (after inserting / in the closing <mrow> tag). Can you give us a screenshot that shows that it worked?

 

muralir77854934
Participating Frequently
November 27, 2024

Hi, Is there any option to change fonts for MathML, like color?

 

Robert at ID-Tasker
Legend
November 27, 2024

Start reading this thread from the top.


quote

Start reading this thread from the top.


By @Peter Kahrel

 

I can swear the question was for "font" - not "color"? 

 

潔38992292yczw
Participating Frequently
November 25, 2024

This Worked!!!

I had to insert <mrow>...

 

            <math mathcolor="#000000">
                <mrow>            
                    <mi>a</mi>            
                    <mi>b</mi>
                    <mi>c</mi>
                    <mi>d</mi>
                    <mi>e</mi>
                    <mi>f</mi>
                     <mrow>        
                        <mi mathcolor="#d0111b">g</mi>
                     <mrow> 
                    <mi>h</mi>
                    <mi>i</mi>        
                </mrow>            
            </math>
潔38992292yczw
Participating Frequently
November 25, 2024

Thanks!! jimmy!!

It Woked!!!!!!!!!!!!!!!!!!!!!!!!

Community Expert
November 25, 2024

As far as I'm aware it's SVG - so you'd need to export it from InDesign - manipulate it and replace it - or manipulate it after exporting for InDesign.

 

SVG is RGB only and can't do 100% black in CMYK - -it's RGB black

https://creativepro.com/how-to-avoid-print-problems-with-mathml-in-indesign/

潔38992292yczw
Participating Frequently
November 25, 2024

Thanks!! Eugene