Discussion:
No color using xcolor
(too old to reply)
Foucault
2006-02-20 12:52:39 UTC
Permalink
Hi everyone,
I was trying to find out how to use colors in LaTeX documents. I've
found xcolor and thought that would suit me best for what I need.
However there is no color in output, apart from gray. Whatever color I
choose the output is presented in grayscale.

For example look at this code:

\documentclass[a4paper,12pt]{report}
\usepackage{xcolor}

\begin{document}

\textcolor[rgb]{1.0,1.0,0.5}{foo text}

\end{document}

The above is supposed to present foo text in light yellow color,
however all I see is pale, barely readable, gray. It seems that the
text's color is being "transformed" to the corresponded tone of gray.
This happens to any form of output (dvi, ps, pdf)

I would appreciate any help,
Spyros "Foucault" Stathopoulos
Enrico Gregorio
2006-02-20 13:43:35 UTC
Permalink
Post by Foucault
Hi everyone,
I was trying to find out how to use colors in LaTeX documents. I've
found xcolor and thought that would suit me best for what I need.
However there is no color in output, apart from gray. Whatever color I
choose the output is presented in grayscale.
\documentclass[a4paper,12pt]{report}
\usepackage{xcolor}
\begin{document}
\textcolor[rgb]{1.0,1.0,0.5}{foo text}
\end{document}
The above is supposed to present foo text in light yellow color,
however all I see is pale, barely readable, gray. It seems that the
text's color is being "transformed" to the corresponded tone of gray.
This happens to any form of output (dvi, ps, pdf)
Doesn't happen to me. The text comes out light yellow. What output
device are you using?

Ciao
Enrico
Foucault
2006-02-20 14:03:20 UTC
Permalink
Sorry, but I do not understand what do you mean by "output device". I
am pretty new to LaTeX and only know the very basics.
José Carlos Santos
2006-02-20 14:28:15 UTC
Permalink
Post by Foucault
Sorry, but I do not understand what do you mean by "output device". I
am pretty new to LaTeX and only know the very basics.
The output device is whatever software you're using to see DVI files.

Best regards,

Jose Carlos Santos
Dan Luecking
2006-02-20 20:42:07 UTC
Permalink
Post by Foucault
Sorry, but I do not understand what do you mean by "output device".
You said it is the same in any output (dvi, ps, pdf).

I would say:
"It is the same whether I view dvi with windvi (vers. 0.67.3),
or view the .ps (generated with dvips 5.95b) in GSview (4.7),
or view the pdf (from pdflatex 1.30.3) in AcroRead (7.0.5)."

I might add (if pertinent) what happens when I print from any of the
three (windvi, GSview, AcroRead) and give the name of the printer.

The difference is the detail, reflecting all the programs that
mediate between the .tex file and the thing you see.
Post by Foucault
I am pretty new to LaTeX and only know the very basics.
You only need to know that the means by which you make computer
files usable to a human being is often called a "device".


Dan
To reply by email, change LookInSig to luecking
*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
Ulrike Fischer
2006-02-20 13:47:36 UTC
Permalink
Post by Foucault
Hi everyone,
I was trying to find out how to use colors in LaTeX documents. I've
found xcolor and thought that would suit me best for what I need.
However there is no color in output, apart from gray. Whatever color I
choose the output is presented in grayscale.
\documentclass[a4paper,12pt]{report}
\usepackage{xcolor}
\begin{document}
\textcolor[rgb]{1.0,1.0,0.5}{foo text}
\end{document}
The above is supposed to present foo text in light yellow color,
however all I see is pale, barely readable, gray. It seems that the
text's color is being "transformed" to the corresponded tone of gray.
This happens to any form of output (dvi, ps, pdf)
I don't have any problems with your example but I get a gray output if
I use \usepackage[gray]{xcolor}. Perhaps you are using a color.cfg or
another configuration file that sets the default color model to gray.
--
Ulrike Fischer
e-mail: zusätzlich meinen Vornamen vor dem @ einfügen.
e-mail: add my first name between the news and the @.
Continue reading on narkive:
Loading...