ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Strange behaviour with colors and figures
@ 2008-10-22 20:20 Flavien Lambert
  2008-10-22 20:43 ` luigi scarso
  2008-10-23  7:42 ` Taco Hoekwater
  0 siblings, 2 replies; 3+ messages in thread
From: Flavien Lambert @ 2008-10-22 20:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 849 bytes --]

Dear all, as expressed by the title, I have a very strange behaviour between
colors and figures. Here is the example :
\setupcolors[state=start]
\definecolor[gris][r=0.310,g=0.333,b=0.341]

\starttext
  \placefigure{}{\externalfigure[myfigure]}
  \color[gris]{\tfd Some text}
\stoptext

If myfigure is a PDF file, everything is ok with MKII, MKIV and XeTeX. If
myfigure is a PNG file with transparency, then the "gris" color is ok with
MKII but not with MKIV and XeTeX if the resulting document is read with
Adobe Reader on Linux (when read with evince, colors are ok !!!!!). In the
latter case, the "gris" color is very dark close to black and the green of
myfigure becomes flashy...
Quite puzzling !

-- 
Flavien.
----------------------------
"Quantum objects are completely crazy but, at least, they are all crazy in
the same way." R.P. Feynman.

[-- Attachment #1.2: Type: text/html, Size: 952 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Strange behaviour with colors and figures
  2008-10-22 20:20 Strange behaviour with colors and figures Flavien Lambert
@ 2008-10-22 20:43 ` luigi scarso
  2008-10-23  7:42 ` Taco Hoekwater
  1 sibling, 0 replies; 3+ messages in thread
From: luigi scarso @ 2008-10-22 20:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1095 bytes --]

On Wed, Oct 22, 2008 at 10:20 PM, Flavien Lambert <petit.lepton@gmail.com>wrote:

> Dear all, as expressed by the title, I have a very strange behaviour
> between colors and figures. Here is the example :
> \setupcolors[state=start]
> \definecolor[gris][r=0.310,g=0.333,b=0.341]
>
> \starttext
>   \placefigure{}{\externalfigure[myfigure]}
>   \color[gris]{\tfd Some text}
> \stoptext
>
> If myfigure is a PDF file, everything is ok with MKII, MKIV and XeTeX. If
> myfigure is a PNG file with transparency, then the "gris" color is ok with
> MKII but not with MKIV and XeTeX if the resulting document is read with
> Adobe Reader on Linux (when read with evince, colors are ok !!!!!). In the
> latter case, the "gris" color is very dark close to black and the green of
> myfigure becomes flashy...
> Quite puzzling !
>

\setupcolors[state=start]
\definecolor[gris][r=0.310,g=0.333,b=0.341]
\starttext
\placefigure{}{\externalfigure[myfigure]}
\color[red]{\tfd Some text}
\stoptext

minimals-beta seems to be ok
tested with myfigure.png in attachment,
acroread, xpdf,evince, psv seem ok
-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1495 bytes --]

[-- Attachment #2: myfigure.png --]
[-- Type: image/png, Size: 8747 bytes --]

[-- Attachment #3: test-lambert.pdf --]
[-- Type: application/pdf, Size: 18889 bytes --]

[-- Attachment #4: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Strange behaviour with colors and figures
  2008-10-22 20:20 Strange behaviour with colors and figures Flavien Lambert
  2008-10-22 20:43 ` luigi scarso
@ 2008-10-23  7:42 ` Taco Hoekwater
  1 sibling, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2008-10-23  7:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Flavien Lambert wrote:
> Dear all, as expressed by the title, I have a very strange behaviour 
> between colors and figures. Here is the example :
> \setupcolors[state=start]
> \definecolor[gris][r=0.310,g=0.333,b=0.341]
> 
> \starttext
>   \placefigure{}{\externalfigure[myfigure]}
>   \color[gris]{\tfd Some text}
> \stoptext
> 
> If myfigure is a PDF file, everything is ok with MKII, MKIV and XeTeX. 
> If myfigure is a PNG file with transparency, then the "gris" color is ok 
> with MKII but not with MKIV and XeTeX if the resulting document is read 
> with Adobe Reader on Linux (when read with evince, colors are ok !!!!!). 
> In the latter case, the "gris" color is very dark close to black and the 
> green of myfigure becomes flashy...
> Quite puzzling !

The MKIV version of this problem is fixed in 0.30.0, it was broken in
luatex 0.29.0.

Best wishes,
Taco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-23  7:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-22 20:20 Strange behaviour with colors and figures Flavien Lambert
2008-10-22 20:43 ` luigi scarso
2008-10-23  7:42 ` Taco Hoekwater

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).