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

MathML

Community Beginner ,
Nov 24, 2024 Nov 24, 2024

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>
TOPICS
Feature request
857
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

correct answers 6 Correct answers

Community Expert , Nov 24, 2024 Nov 24, 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/

Translate
Community Expert , Nov 25, 2024 Nov 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 screensh

...
Translate
Community Expert , Nov 25, 2024 Nov 25, 2024

It does indeed when I tried again. No idea what went wrong earlier.

 

But now I understand even less. @æ½”38992292yczw reported an MML structure which he said doesn't work, but which is in fact correct and works. Then he reports that he fixed it, but the fix is ungrammatical and doesn't work. Oh, well.

Translate
Community Expert , Nov 25, 2024 Nov 25, 2024

@Peter Kahrel

 

With <mrow> it doesn't work - but if you remove it - it works.

 

Translate
Community Expert , Nov 27, 2024 Nov 27, 2024

Start reading this thread from the top.

Translate
Community Expert , Nov 27, 2024 Nov 27, 2024

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

Translate
Community Expert ,
Nov 24, 2024 Nov 24, 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/

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 ,
Nov 25, 2024 Nov 25, 2024

Thanks!! Eugene

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 ,
Nov 25, 2024 Nov 25, 2024

Thanks!! jimmy!!

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

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 ,
Nov 25, 2024 Nov 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>
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 Expert ,
Nov 25, 2024 Nov 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?

 

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 Expert ,
Nov 25, 2024 Nov 25, 2024

@Peter Kahrel 

 

You are right - but color change works without <mrow>:

 

RobertatIDTasker_0-1732533036922.pngexpand image

 

 

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 Expert ,
Nov 25, 2024 Nov 25, 2024

It does indeed when I tried again. No idea what went wrong earlier.

 

But now I understand even less. @æ½”38992292yczw reported an MML structure which he said doesn't work, but which is in fact correct and works. Then he reports that he fixed it, but the fix is ungrammatical and doesn't work. Oh, well.

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 Expert ,
Nov 25, 2024 Nov 25, 2024

@Peter Kahrel

 

With <mrow> it doesn't work - but if you remove it - it works.

 

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 ,
Nov 27, 2024 Nov 27, 2024

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

 

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 Expert ,
Nov 27, 2024 Nov 27, 2024

Start reading this thread from the top.

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 Expert ,
Nov 27, 2024 Nov 27, 2024
quote

Start reading this thread from the top.


By Peter Kahrel

 

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

 

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 Expert ,
Nov 27, 2024 Nov 27, 2024

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

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 Expert ,
Nov 27, 2024 Nov 27, 2024
quote

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


By Peter Kahrel

 

Yeah, you are right 😞 

 

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 ,
Nov 27, 2024 Nov 27, 2024

Yes ymathsize2.pngexpand imageou can change font attibutes.

But I guess we can not change font type...

 

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 ,
Nov 27, 2024 Nov 27, 2024

HI! You can chage fontsize too!!

mathsize.pngexpand image

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 Expert ,
Feb 09, 2025 Feb 09, 2025
LATEST
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