[OS X TeX] the color of color

Piet van Oostrum piet at cs.uu.nl
Tue Dec 27 10:50:59 CET 2005


>>>>> Alain Schremmer <Schremmer.Alain at gmail.com> (AS) wrote:

>AS> With
>AS>     \usepackage{color}

>AS> the following

>AS>     \begin{displaymath}
>AS>     \colorbox{yellow}{$(+2)\oplus(+5)\oplus(-8)\oplus(+4)\oplus(-7)$}
>AS>     \end{displaymath}

>AS> works as well with green and blue but not with, say, orange.


>AS> Bent Petersen's Oct 24, 2000 "color-package-demo" says to use

>AS>     \usepackage[usenames]{color}

>AS> but after I added the option [usenames] in my preamble, even

>AS>     \textcolor{Orange}{this is Orange}

>AS> where Orange is one of "the 68 standard colors known to dvips", wouldn't
>AS> work.

That's because you are not using dvips, but pdflatex, which doesn't know
these names by default. Just add also the option dvipsnames to make these
known: \usepackage[usenames,dvipsnames]{color}
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org
------------------------- 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 Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list