Applying Color to Formula Parts

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

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

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

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

A list with predefined color names is available here.


Using RGB colors

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

color rgb 192 0 128 var

note

RGB values range between 0 and 255.


Using hex notation

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

color hex C00080 var

Combining color with other commands

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

The example below writes var in bold blue:

color blue bold var

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

color blue size 20 var

Predefined color names

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

Π―Π·Ρ‹ΠΊ Ρ€Π°Π·ΠΌΠ΅Ρ‚ΠΊΠΈ

Π¦Π²Π΅Ρ‚

Hex value

RGB values

морской Π²ΠΎΠ»Π½Ρ‹ ΠΈΠ»ΠΈ Π³ΠΎΠ»ΡƒΠ±ΠΎΠΉ

ΠœΠΎΡ€ΡΠΊΠΎΠΉ Π²ΠΎΠ»Π½Ρ‹

00FFFF

rgb(0, 255, 255)

black

Π§Ρ‘Ρ€Π½Ρ‹ΠΉ

000000

rgb(0, 0, 0)

blue

Π‘ΠΈΠ½ΠΈΠΉ

0000FF

rgb(0, 0, 255)

coral

ΠšΠΎΡ€Π°Π»Π»ΠΎΠ²Ρ‹ΠΉ

FF7F50

rgb(255, 127, 80)

crimson

ΠœΠ°Π»ΠΈΠ½ΠΎΠ²Ρ‹ΠΉ

DC143C

rgb(220, 20, 60)

фуксия ΠΈΠ»ΠΈ ΠΏΡƒΡ€ΠΏΡƒΡ€Π½Ρ‹ΠΉ

Ѐуксия

FF00FF

rgb(255, 0, 255)

gray or grey

Π‘Π΅Ρ€Ρ‹ΠΉ

808080

rgb(128, 128, 128)

green

Π—Π΅Π»Ρ‘Π½Ρ‹ΠΉ

008000

rgb(0, 128, 0)

hotpink

Π―Ρ€ΠΊΠΎ-Ρ€ΠΎΠ·ΠΎΠ²Ρ‹ΠΉ

FF69B4

rgb(255, 105, 180)

indigo

Индиго

4B0082

rgb(75, 0, 130)

lavender

Π›Π°Π²Π°Π½Π΄ΠΎΠ²Ρ‹ΠΉ

E6E6FA

rgb(230, 230, 250)

lime

Lime

00FF00

rgb(0, 255, 0)

maroon

Π‘ΠΎΡ€Π΄ΠΎΠ²Ρ‹ΠΉ

800000

rgb(128, 0, 0)

midnightblue

ΠŸΠΎΠ»ΡƒΠ½ΠΎΡ‡Π½Ρ‹ΠΉ

191970

rgb(25, 25, 112)

navy

Π’Ρ‘ΠΌΠ½ΠΎ-синий

000080

rgb(0, 0, 128)

olive

ΠžΠ»ΠΈΠ²ΠΊΠΎΠ²Ρ‹ΠΉ

808000

rgb(128, 128, 0)

orange

ΠžΡ€Π°Π½ΠΆΠ΅Π²Ρ‹ΠΉ

FFA500

rgb(255, 165, 0)

orangered

ΠžΡ€Π°Π½ΠΆΠ΅Π²ΠΎ-красный

FF4500

rgb(255, 69, 0)

purple

ΠŸΡƒΡ€ΠΏΡƒΡ€Π½Ρ‹ΠΉ

0x800080

rgb(128, 0, 128)

red

ΠšΡ€Π°ΡΠ½Ρ‹ΠΉ

FF0000

rgb(255, 0, 0)

seagreen

ΠœΠΎΡ€ΡΠΊΠΎΠΉ Π²ΠΎΠ»Π½Ρ‹

2E8B57

rgb(46, 139, 87)

silver

БСрСбряный

C0C0C0

rgb(192, 192, 192)

teal

Π‘ΠΈΠ½Π΅-Π·Π΅Π»Ρ‘Π½Ρ‹ΠΉ

008080

rgb(0, 128, 128)

violet

Π€ΠΈΠΎΠ»Π΅Ρ‚ΠΎΠ²Ρ‹ΠΉ

EE82EE

rgb(238, 130, 238)

yellow

Π–Ρ‘Π»Ρ‚Ρ‹ΠΉ

FFFF00

rgb(255, 255, 0)