Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a need to match colors in the originaly raster EPS graphics and background color. Relevant parts of the code:

\usepackage[dvipsnames,prologue,table]{pstricks}
\usepackage{pst-text}
\usepackage{graphicx}

...

\newsavebox\LBox
\sbox\LBox{\includegraphics[height=9.23mm]{logo.eps}}  % raster

\newcmykcolor{reddish}{.0 .7 0.89 .16}

The end result is a PDF (through dvi, ps).

Also tried using same RBG in both eps and LaTeX markup. It even prints fine on my own color printer, but not elsewhere. Fortunately, there is no need to have exact color, just match EPSs background with the rest of the layout background.

Update:

The question is, how do I specify the same color by newcmykcolor (or newrgbcolor) and the color of png (which I convert then to eps)? I am using GIMP. GIMP has CMYK specification, but it is not in .0 .7 0.89 .16 mode, but rather 0-100 range.

I have tried to use the same RGB colors (in LaTeX and png/eps), for example, and it works for some printers.

In any case, does this require use of color profiles or how to get naive approach to work (I do not need exact color, just same).

share|improve this question

closed as off topic by yo', egreg, Marco Daniel, Joseph Wright Apr 14 '12 at 22:08

Questions on TeX - LaTeX Stack Exchange are expected to relate to TeX, LaTeX or related typesetting systems within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
So what is the question here? You have an EPS file and you want to find out which colours were used in some parts? For example, did you find the CMYK values for reddish through trial-and-error, but you want a more sounds way of finding them? –  Werner Feb 25 '12 at 7:10
    
Some photo editors have a tool to know the RGB or CMYK values for a sampled point on the given picture. Have you done it yet? –  stalking is prohibited Feb 25 '12 at 7:42
    
I have control over what to put into EPS file: its raster, made from png. On screen both colors are the same. The dissonance happens because (some) printer's software treats latex-generated background color differently from the colors from EPS. And I want to know the way, how to specify both colors reliably to the same value. I can't use trial-n-error approach, because my printer prints right - the problem happens when I send the file to be printed. –  Roman Susi Feb 25 '12 at 10:21
    
If you start with a PNG file using pdfTeX or LuaTeX would be a workaround to avoid the conversion to your CMYK EPS which is inherently coupled to some color profile. –  Alexander Feb 29 '12 at 18:44
    
Look into the eps if it defines rgb or cmyk colors. You have to choose the same color model for the background color! –  Herbert Feb 29 '12 at 19:45

Browse other questions tagged or ask your own question.