Community

Our Precalculus course starts on Dec. 4. Master trig, complex numbers, and vectors and matrices in 2 and 3 dimensions. Click here to enroll today!
Login Register Memberlist Search AoPS Blogs Contests Galleries Forum Index
The time now is Tue Nov 24, 2009 1:49 pm
All times are UTC - 8
View posts since last visit
View unanswered posts
LATEX colors
Moderators: fedja, stevem
Post new topic   Reply to topic View previous topicView next topic
4 Posts • Page 1 of 1
Author Message
yetti
Navier-Stokes Equations
Navier-Stokes Equations

Offline
Joined: 31 Dec 2004
Posts: 2110
Location: New York
Czech Republic

To rate posts you must be logged in
#1
LATEX colors

Testing \LaTeX colors:

Code:
$\color{red} \int_a^b f(x)\ \text dx = \color{green} F(b) - F(a)$


\color{red} \int_a^b f(x)\ \text dx = \color{green} F(b) - F(a)
\color{blue} \int_a^b f(x)\ \text dx = \color{cyan} F(b) - F(a)
\color{magenta} \int_a^b f(x)\ \text dx = \color{yellow} F(b) - F(a)

Basic colors (red, green, blue, cyan, magenta, yellow) work fine, but I am unable to guess names of other colors. It would be nice to know names of basic colors with less luminosity (dark red, dark green, dark blue, ...). Can dark colors be used for \LaTeX on Mathlinks and if yes, what are their names ?

Thank you.
_________________
Carthage must be destroyed.

PostPosted: Fri Jun 26, 2009 11:02 am  Back to top 
  ProfilePM
stevem
Navier-Stokes Equations
Navier-Stokes Equations

Offline
Joined: 25 Apr 2004
Posts: 2190
Location: Dorset, UK

To rate posts you must be logged in
#2
I think the following is true:
The following colours are defined: red, green, blue, yellow, cyan, magenta, black, yellow. But you can extend this a long way by using the RGB system which is the way you mix the primary colours Red, Green, Blue.
The syntax is:

\color[rgb]{x,y,z} where 0 \leq x,y,z \leq 1} and each represents the proportion of red, green and blue in the colour.

Thus
\color[rgb]{1,0,0} is \color[rgb]{1,0,0}{red}
\color[rgb]{0,1,0} is \color[rgb]{0,1,0}{green}
\color[rgb]{0,0,1} is \color[rgb]{0,0,1}{blue}
and then you mix them so
\color[rgb]{0.5,0.5,0.5} is \color[rgb]{0.5,0.5,0.5}{grey}
\color[rgb]{0.82,0.41,0.12} is \color[rgb]{0.82,0.41,0.12}{chocolate}

Then for fun: \text{\Large\color[rgb]{ 0.2000 , 0.3922 , 0.7647}G \color[rgb]{ 0.9529 , 0.0980 , 0.0118}o \color[rgb]{ 0.9686 , 0.8431 , 0....
(taken from David Gleich's Notebook)

You will need to experiment. You can use RGB to Color Name Mapping to help, provided you use their numbers as a proportion of 255. Thus on that page chocolate is 210,105,30. Change that to \frac {210}{255},\frac {105}{255},\frac {30}{255} \approx 0.82,0.41,0.12 to get {\color[rgb]{0.82,0.41,0.12}\int_{0}^{1}\frac {x^{4}\left( 1 - x\right) ^{4}}{1 + x^{2}}\,dx} = \frac {22}{7} - \pi

You can apply colours to selected parts of the expression by
1) using {} as in {\color{red}x}y {\color{red}x}y
or
2) using a new colour \color{red}x\color{black}y \color{red}x\color{black}y
or
3) using \normalcolor \color{red}x\normalcolor y \color{red}x\normalcolor y

PLEASE only use LaTeX colours for maths - for text like this, use the forum's font colour drop-down box

(I have moved this thread into the LaTeX forum as others may want to refer to it).
Last edited by stevem on Sat Jun 27, 2009 1:00 am; edited 1 time in total 
PostPosted: Fri Jun 26, 2009 2:40 pm  Back to top 
  ProfilePMWWW
Kent Merryfield
Birch & Swinnerton Dyer
Birch & Swinnerton Dyer

Offline
Joined: 11 Jun 2004
Posts: 11365
Location: Long Beach, CA
United States

To rate posts you must be logged in
#3
\color[rgb]{.8,.75,0}\text{Yellow you can see?}

\color[rgb]{1,0,0}r\color[rgb]{.9,0,0}e\color[rgb]{.8,0,0}d\ \color[rgb]{.7,0,0}t\color[rgb]{.6,0,0}o\ \color[rgb]{.5,0,0}d\c...

\color[rgb]{0,0,1}b\color[rgb]{0,0,.9}l\color[rgb]{0,0,.8}u\color[rgb]{0,0,.7}e\ \color[rgb]{0,0,.6}t\color[rgb]{0,0,.5}o\ \c...
Last edited by Kent Merryfield on Fri Jun 26, 2009 3:16 pm; edited 1 time in total 
PostPosted: Fri Jun 26, 2009 2:53 pm  Back to top 
  ProfilePM
stevem
Navier-Stokes Equations
Navier-Stokes Equations

Offline
Joined: 25 Apr 2004
Posts: 2190
Location: Dorset, UK

To rate posts you must be logged in
#4
Image
Source: LaTeXe's Colour Extensions: Shades of colours

PostPosted: Fri Jun 26, 2009 3:12 pm  Back to top 
  ProfilePMWWW
Display posts from previous:   Sort by:   
4 Posts • Page 1 of 1
Post new topic   Reply to topic View previous topicView next topic
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
You cannot post calendar events in this forum


© Copyright 2008 AoPS Incorporated. All Rights Reserved. • FoundationPrivacyContact Us