[OS X TeX] using color in LaTeX

lichtner lichtner at lanl.gov
Sun Apr 10 02:14:38 CEST 2005


It looks like simply

\usepackage{color}

works ok, but not \usepackage[usenames]{color}.  New colors can be 
defined with e.g.
\definecolor{myred}{rgb}{0.6,0,0}
\definecolor{myblue}{rgb}{0,0.2,0.4}

So I am good to go!
...Peter

On Apr 9, 2005, at 17:48, lichtner wrote:

> I now want to add colors to my headers and footers but my LaTeX seems 
> to have problems recognizing colors. Here is what I get latexing the 
> demo package:
>
> This is pdfeTeX, Version 3.141592-1.20a-2.2 (Web2C 7.5.3)
>  \write18 enabled.
> output format initialized to PDF
> entering extended mode
> (./color-package-demo.tex
> LaTeX2e <2003/12/01>
> Babel <v3.8c> and hyphenation patterns for american, french, german, 
> ngerman, n
> ohyphenation, loaded.
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/article.cls
> Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/base/size11.clo))
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/color.sty
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/color.cfg)
> (/usr/local/teTeX/share/texmf.tetex/tex/latex/graphics/pdftex.def))
> (./color-package-demo.aux)
> (/usr/local/teTeX/share/texmf.tetex/tex/context/base/supp-pdf.tex
> (/usr/local/teTeX/share/texmf.tetex/tex/context/base/supp-mis.tex
> loading : Context Support Macros / Miscellaneous
>
> ! LaTeX Error: Undefined color `BrickRed'.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...
>
> l.29 produces {\color{BrickRed}
>                                 BrickRed}. Alternately one can use the
> ? ing : Context Support Macros / PDF (2004.03.26)
> )
>
> ! LaTeX Error: Undefined color `Blue'.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...
>
> l.17 \maketitle
>
> ?
>
> Is there a problem with my LaTeX installation?
> Thanks, ...Peter
>
> --------------------- Info ---------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>           & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list