Color changing under graphic inclusion with graphicx

Paulo Ney de Souza pauloney at gmail.com
Sat Jan 9 22:03:59 CET 2021


Hi Herbet,

Yes, this does work. ....but it leaves me with more questions than before
....

1- \usepackage[RGB]{xcolor} -- Does that imply that everything in this
document has to be done in RGB???
That seems to be a pretty big restriction.

2-  Is the use of:

    \usepackage{xcolor}
    \definecolor{bgcolor}{RGB}{80,64,83}

not enough to specify that RGB is being used?

3- What does the second row of mages have that the first do not???

Paulo Ney



On Sat, Jan 9, 2021 at 12:41 PM Herbert Voss <Herbert.Voss at fu-berlin.de>
wrote:

>
>
> Am 09.01.21 um 21:08 schrieb Paulo Ney de Souza:
> > I have (a couple) of PNG images with a background color of, for
> > example, RGB(80,64,83), that when placed on a page of the same
> > background color with {graphicx} -- they show a distinct tonality
> > against the background -- which is of the same color.
> >
> > ````
> > \documentclass{report}
> >
> > \usepackage{xcolor}
>
> try
>
> \usepackage[RGB]{xcolor}
>
> to use xcolor with the colormodel RGB. A color in different models
> is not always the same!
>
> my output is attached.
>
>
> Herbert
>
>
>
>
>
> > \definecolor{bgcolor}{RGB}{80,64,83}
> >
> > \usepackage{graphicx}
> > \pagestyle{empty}
> >
> > \begin{document}
> >
> > \pagecolor{bgcolor}
> > \includegraphics[width=0.5\textwidth]{A.png}
> > \quad
> > \includegraphics[width=0.5\textwidth]{B.png}
> >
> > \medskip
> >
> > \includegraphics[width=0.5\textwidth]{A-gimp.png}
> > \quad
> > \includegraphics[width=0.5\textwidth]{B-gimp.png}
> >
> > \end{document}
> > ````
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/texhax/attachments/20210109/d4bc7035/attachment-0001.html>


More information about the texhax mailing list.