Difference between revisions of "Documentation/FAQ/Formula/How do I change the color of a subformula?"
From Apache OpenOffice Wiki
< Documentation | FAQ | Formula
m |
|||
Line 7: | Line 7: | ||
<section begin=answer/> | <section begin=answer/> | ||
You can use the color command as follows: | You can use the color command as follows: | ||
− | <font color="brown">'''color red ABC '''</font>typesets <FONT COLOR="#ff0000">ABC</FONT>. | + | <font color="brown">'''color red ABC'''</font> typesets <FONT COLOR="#ff0000">ABC</FONT>. |
Line 23: | Line 23: | ||
You can apply a color to an entire subformula if you group it with { } or other brackets. | You can apply a color to an entire subformula if you group it with { } or other brackets. | ||
− | Example: Enter<font color="brown">''' A B color green {C D} E '''</font>to typeset AB<FONT COLOR="#00ff00">CD</FONT>E. | + | Example: Enter <font color="brown">'''A B color green {C D} E'''</font> to typeset AB<FONT COLOR="#00ff00">CD</FONT>E. |
When several colors are applied, the innermost takes precedence as shown in this example: | When several colors are applied, the innermost takes precedence as shown in this example: | ||
− | Enter<font color="brown">''' color blue {A B color yellow C D} '''</font>to get <FONT COLOR="#0000ff">AB<FONT COLOR="#ffff00">C</FONT>D</FONT>. | + | Enter <font color="brown">'''color blue {A B color yellow C D}'''</font> to get <FONT COLOR="#0000ff">AB<FONT COLOR="#ffff00">C</FONT>D</FONT>. |
Latest revision as of 14:02, 7 October 2021
How do I change the color of a subformula?
You can use the color command as follows: color red ABC typesets ABC.
There are eight different colors to choose from:
- white
- black
- cyan
- magenta
- red
- blue
- green
- yellow.
You can apply a color to an entire subformula if you group it with { } or other brackets.
Example: Enter A B color green {C D} E to typeset ABCDE.
When several colors are applied, the innermost takes precedence as shown in this example:
Enter color blue {A B color yellow C D} to get ABCD.
You cannot select the background color; a Math formula is always transparent. This means that it inherits the background color from the document (for example a Writer document) it is contained in.