Difference between revisions of "Documentation/FAQ/Formula/How do I change the color of a subformula?"

From Apache OpenOffice Wiki
Jump to: navigation, search
(New page: {{DISPLAYTITLE: How do I change the color of a subformula?}} <section begin=question/> '''How do I change the color of a subformula?''' <section end=question/> <section begin=answer/> Yo...)
 
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>.
 
  
 
There are eight different colors to choose from:
 
There are eight different colors to choose from:
 +
*white
 +
*black
 +
*cyan
 +
*magenta
 +
*red
 +
*blue
 +
*green
 +
*yellow.
  
*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.
  
You can apply a color to an entire subformula if you group it with
+
Example: Enter<font color="brown">''' A B color green {C D} E '''</font>to typeset AB<FONT COLOR="#00ff00">CD</FONT>E.
{ } 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.
 
  
When several colors are applied, the innermost takes precedence as
+
When several colors are applied, the innermost takes precedence as shown in this example:
shown in this example:
+
  
*Enter<font color="brown">''' color blue {A B color yellow C D} '''</font>to get
+
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>.
<FONT COLOR="#0000ff">AB<FONT COLOR="#ffff00">C</FONT>D</FONT>.
+
  
  
You cannot select the background color; a ''Math'' formula is
+
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.
always transparent. This means that it inherits the background color
+
from the document (for example a writer document) it is contained in.
+
 
<section end=answer/>
 
<section end=answer/>
  
 
[[Category:Documentation/FAQ/Formula]]
 
[[Category:Documentation/FAQ/Formula]]

Revision as of 08:46, 8 April 2009


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.

Personal tools