# Is it possible to get different parts of a text string shown in different colours, and if so how ?

Morten Eyrich shared this question 9 months ago

Is it possible to get different parts of a text string shown in different colors, and if so how ?

I would like do it both with LaTex and non-LaTex strings

2

with LaTeX

eg : \text{\textcolor{WildStrawberry}{Geo}\textcolor{blue}{G}\textcolor{red}{ebra}}\,\textcolor{green}}

2

So

FormulaText("\text{\textcolor{WildStrawberry}{Geo}\textcolor{blue}{G}\textcolor{red}{ebra}}")

1

Thanks.

Just to make it clear: Does that mean that it isn't possible to get different parts of a text string shown in different colours in a non-LaTex string ?

1

No, it’s not possible without LaTeX

1

Then I would appreciate if the GeoGebra-developers would make it possible to also get different parts of a non-LaTex text string shown in different colors.

But I also totally understand why this won't be made soon, as it is possible in LaTex or by creating several individual strings.

1

\text{\red{geo}\blue{gebra}\green{2021}}

• GeoGebra
• Help
• Partners
• Feedback & Questions
• This email address is being protected from spambots. You need JavaScript enabled to view it.
• +43 677 6137 2693