Can we use colored latex?

  • Context: LaTeX 
  • Thread starter Thread starter Amer
  • Start date Start date
  • Tags Tags
    Latex
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 4K views
Amer
Messages
259
Reaction score
0
can we colored latex ?
 
Physics news on Phys.org
Re: is there colors in latex

Amer said:
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.
 
Re: is there colors in latex

Opalg said:
${\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}}$
 
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.
 
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: