eNnkv‖

dBGoG‖Applying Color to Formula Parts

ckGgG‖Use the command color to apply color to the subsequent formula part.

BnqGh‖The example below creates a formula where a is shown using the default color (black) and b is shown in red.

a + color red b

QBxDL‖Be aware that the color command only changes the color of the formula part that comes immediately after it. For example, in the formula below only b will be shown in red, whereas c will be shown in black.

a + color red b + c

hLeFX‖Use braces to apply color to more parts of the formula. In the following example, b and c are shown in red.

a + color red { b + c }

tip

gLttS‖A list with predefined color names is available here.


8cnuJ‖

beAyt‖Using RGB colors

tj2xF‖Use the command color rgb to apply colors using RGB (Red, Green, Blue) values.

color rgb 192 0 128 var

note

eYWCg‖RGB values range between 0 and 255.


ryiJu‖

mdvQM‖Using hex notation

zLQWy‖Use the command color hex to apply colors using the hexadecimal notation.

color hex C00080 var

rPHnc‖Combining color with other commands

WiZz8‖It is possible to combine the color command with other commands as bold, italic or size.

qDEtC‖The example below writes var in bold blue:

color blue bold var

vSVUb‖To change color and font size, use color in combination with size and the desired font size.

color blue size 20 var

kEERk‖

wbRDh‖Predefined color names

FGJS8‖LibreOfficeDev provides a set of predefined color names that can be used along with the color command.

auAPG‖Markup language

Qf5tX‖Color

Y4DMa‖Hex value

3kWLW‖RGB values

4Vu7A‖aqua or cyan

xcaVa‖Aqua

00FFFF

rgb(0, 255, 255)

black

D73X6‖Black

000000

rgb(0, 0, 0)

blue

iGEDP‖Blue

0000FF

rgb(0, 0, 255)

coral

Umsp6‖Coral

FF7F50

rgb(255, 127, 80)

crimson

YcrNE‖Crimson

DC143C

rgb(220, 20, 60)

G6mfq‖fuchsia or magenta

DD2RU‖Fuchsia

FF00FF

rgb(255, 0, 255)

WSeur‖gray or grey

gdQ5j‖Gray

808080

rgb(128, 128, 128)

green

YCrBe‖Green

008000

rgb(0, 128, 0)

hotpink

Zqix6‖Hot pink

FF69B4

rgb(255, 105, 180)

indigo

9oHjZ‖Indigo

4B0082

rgb(75, 0, 130)

lavender

X4Y45‖Lavender

E6E6FA

rgb(230, 230, 250)

lime

g5GKD‖Lime

00FF00

rgb(0, 255, 0)

maroon

kAo5q‖Maroon

800000

rgb(128, 0, 0)

midnightblue

n7uXk‖Midnight

191970

rgb(25, 25, 112)

navy

Ymn82‖Navy

000080

rgb(0, 0, 128)

olive

aedBY‖Olive

808000

rgb(128, 128, 0)

orange

pNCBH‖Orange

FFA500

rgb(255, 165, 0)

orangered

BGG7c‖Orange red

FF4500

rgb(255, 69, 0)

purple

opiDJ‖Purple

0x800080

rgb(128, 0, 128)

red

42wFB‖Red

FF0000

rgb(255, 0, 0)

seagreen

p5ox4‖Sea green

2E8B57

rgb(46, 139, 87)

silver

AF8R7‖Silver

C0C0C0

rgb(192, 192, 192)

teal

8XVN7‖Teal

008080

rgb(0, 128, 128)

violet

KejUr‖Violet

EE82EE

rgb(238, 130, 238)

yellow

pXf2z‖Yellow

FFFF00

rgb(255, 255, 0)