Bug 131247 - formula: cannot have only binary operator (+) in color
Summary: formula: cannot have only binary operator (+) in color
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-09 20:15 UTC by hardy
Modified: 2020-03-09 21:50 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hardy 2020-03-09 20:15:15 UTC
Description:
Is is not (intuitivly) possible to mark a binary operator in a formula with a color. The use case is to display a = b + c with a red "+" sign.

Steps to Reproduce:
1. create a new libre office document (I normally use Impress).
2. create a formula object in this document
3. use the following formula code for example: a  =b color red {+} c 

Actual Results:
The display shows: a = b + ?c?
The characters starting from the + sign are in red color.

Expected Results:
The display should show: a = b + c
My expextation was that the "plus" sign only gets the red color.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.0.0.alpha0+
Build ID: 7fddb9a1f69a1bac676ad48421256a1ba0274c83
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2020-02-16_19:33:19
Locale: de-DE (de_DE.UTF-8); UI-Language: en-US
Calc: threaded
Comment 1 V Stuart Foote 2020-03-09 21:50:02 UTC
To apply to the operator, you have to apply a color to each element of the formula.

size 20 { color green a color red + color green b = c}

or

color black a^2 color red + color black b^2 = color green c^ color red 2

Glyph for a 'relation' or 'set operator' can not be colored individually, but will take a color applied to the whole formula.

Colors available to work with are:

black, white, red, green, blue, cyan, magenta, yellow, 
teal, silver, gray, maroon, purple, lime, olive, navy, and fuchsia

No support yet of MathML hex-tupple RGB custom colors (see bug 40436)