[OS X TeX] color palettes

Alan Munn amunn at msu.edu
Mon Dec 25 03:06:36 CET 2006


At 8:24 PM -0500 12/24/06, Bruce Kellogg wrote:
>I am having trouble using color palettes that I have found on the 
>web. For example,
>I have a tex file with the statements
>
>
>\usepackage[named]{color}
>{\color{OliveGreen} Olive Green}
>
>and I cannot process the file. I get the error message:
>

This is not the correct usage for the color package.  [named] is not 
an option for calling the package, but is an option for the \color 
command.  So, for example,

\usepackage{color}

\color[named]{OliveGreen}

works for me (assuming TeX+Ghotscript), because OliveGreen is a named 
color in the dvips driver.

The named colors that are available differ from driver to driver.  To 
get pdftex to recognize dvips names use

\usepackage[dvipsnames]{color}

Then you can typeset the document using pdflatex and it will work.

You should check the documentation for more information.  (in 
Terminal type "texdoc grfguide" (no quotes)).

Alan


-- 
Alan Munn                                                   amunn at msu.edu
Department of Linguistics                                   amunn at acm.org
and Germanic, Slavic, Asian and African Languages   Fax.  +1-517-432-2736
Michigan State University, East Lansing MI 48824    Tel.  +1-517-355-7491

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list