Welcome to our community

Be a part of something great, join today!

Are there colors in latex?

Amer

Active member
Mar 1, 2012
275
can we colored latex ?
 

Opalg

MHB Oldtimer
Staff member
Feb 7, 2012
2,708
Re: is there colors in latex

can we colored latex ?
${\color{red}1}\ {\color{blue}2}\ {\color{green}3}\ {\color{magenta}4}\ {\color{yellow}5}\ {\color{cyan}6}$

I don't know if any others are available through MathJax.
 

Amer

Active member
Mar 1, 2012
275
Re: is there colors in latex

${\color{red}1}\ {\color{blue}2}\ {\color{green}3}\ {\color{magenta}4}\ {\color{yellow}5}\ {\color{cyan}6}$

I don't know if any others are available through MathJax.
${\color{red}{Th}}\ {\color{blue}{an}}\ {\color{green}{ks}}$
 

Krizalid

Active member
Feb 9, 2012
118
Re: is there colors in latex

If you're trying to make a paper, then you can use in the preamble:

Code:
\definecolor{namethecolor}{rgb}{1,1,1}
Then change the 1s values to generate the color you want.
 

dwsmith

Well-known member
Feb 1, 2012
1,673
Re: is there colors in latex

If it is for a paper, \documentclass[dvipsnames]{what ever you want here}
\usepackage{xcolor}.

Now you can specify html colors and extend color names such as Cyan, Aquamarine, and a lot more. You will need to check out the documentation find out your options.

Warning:

The html color options may only work in LuaTex and XeTeX not 100% sure.
 
Last edited: