Download it now!
Bug 40436 - Custom colours in Math
Summary: Custom colours in Math
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
(earliest affected)
3.3.3 release
Hardware: Other All
: medium enhancement
Assignee: Not Assigned
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
Reported: 2011-08-28 08:55 UTC by v_2e
Modified: 2019-03-27 00:55 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description v_2e 2011-08-28 08:55:19 UTC
  LibreOffice Math supports only few pre-defined colours to use in the equation. It is very inconvenient itself, but moreover the colours defined there are too dark to be used for usual tasks (at least, in my case).

  It would be nice to have an ability to use custom colours in equations, and it looks like a lot of people wish such a feature.
  Here is the corresponding OOo bug:

Comment 1 Björn Michaelsen 2011-12-23 12:40:00 UTC Comment hidden (obsolete)
Comment 2 Florian Reisinger 2012-08-14 14:00:09 UTC Comment hidden (obsolete)
Comment 3 Florian Reisinger 2012-08-14 14:01:17 UTC Comment hidden (obsolete)
Comment 4 Florian Reisinger 2012-08-14 14:06:02 UTC Comment hidden (obsolete)
Comment 5 Florian Reisinger 2012-08-14 14:08:03 UTC Comment hidden (obsolete)
Comment 6 Ruslan Kabatsayev 2013-01-01 01:26:20 UTC
It seems the bug is still present. At least I've not found any evidence that there's a way to use custom colors in LO Math.
(I'm using Version (Build ID: 6869aaa2b36316e50b512e0ba4819743d834cea)).
Comment 7 Christophe Strobbe 2013-08-13 18:52:18 UTC
The new URL of the corresponding Apache OpenOffice bug is
Comment 8 José Guilherme Vanz 2013-11-02 22:51:00 UTC
@marcos, do you have implemented it right?
Comment 9 Marcos Souza 2013-11-03 14:40:50 UTC
(In reply to comment #8)
> @marcos, do you have implemented it right?

No, what I did was introducing a more easy way to users can change the colors of the formula.

We need to take a look in the code for trying to extend to more colors...
Comment 10 Gerry 2014-10-31 08:37:08 UTC
It seems that a first step is made with regards to custom colours in Math:

Now, 16 colours are possible instead of 8. 

However, I think it is not yet accessible from the UI, is it? (I mean the left formula bar in Math which shows the eight colours)
Comment 11 Regina Henschel 2014-10-31 12:11:16 UTC
I have no build system for LibreOffice (I'm still on MSVC 2008) and Apache OpenOffice does not have this side pane. Therefore I could not adapt the pane in my patch.

The patch is about the named colors on MathML. The #rrggbb and #rgb cases are still missing. But 16 colors are better then 8 ;)
Comment 12 Gerry 2014-11-10 11:35:28 UTC
@Regina: thanks for the increase to 16 colors in Math. Marcos Souza has put them to the Math elements bar, so they will be accessible from the UI in LibreOffice 4.4. See here:

There might be a small bug, though: Magenta and Fuchsia look exactly the same. On screen and PDF output one cannot tell a difference. Also, Cyan and Aqua are the same. Do you also see this problem on your system?
Comment 13 Regina Henschel 2014-11-10 14:18:41 UTC
They must be the same, see table in The table handles more color names than allowed in MathML, but W3C holds naming consistent throughout the standards, only some standards have more names than others. We should follow the color names used by W3C.

I have kept cyan and magenta in the UI although they do not belong to the color names allowed in MathML, because that names are used in StarMath, and people are nowadays used to that names because of inks in color printer.
Comment 14 Roman Kuznetsov 2015-12-01 19:57:22 UTC
in 4.4 was added 16 HTML colors for Math. this is not enough? =)
Comment 15 Tobias Hemm 2017-02-06 20:24:21 UTC
In my opinion, and for my use, it is definitely not enough.
LibreOffice is great program; I use it for desktop publishing. And in this case, it is a great downside that the colors for formulas are limited and not precisely customizable.

In the OpenOffice-Bugzilla (, Mathias Bauer (Comment 12) wrote that it would be possible to use RGB values, and he asked if that was what users want. – I would say: Definitely!

benji2, in Comment 13, suggested a "hex-tuple like #FFCC00". I think this would be good, as well.

Is it possible to implement one – or even both – of these ways?
Comment 16 Shunesburg69 2019-03-27 00:55:29 UTC
Some news ?