From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91071 Path: news.gmane.org!not-for-mail From: Christian Prim Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt-defined colours broken in TikZ in MkIV with latest betas Date: Thu, 16 Apr 2015 21:34:45 +0200 Message-ID: References: <552C2C44.3060101@wxs.nl> <552CD2DA.80500@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1705020721==" X-Trace: ger.gmane.org 1429212950 11704 80.91.229.3 (16 Apr 2015 19:35:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Apr 2015 19:35:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 16 21:35:37 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YipZV-0006Y3-I4 for gctc-ntg-context-518@m.gmane.org; Thu, 16 Apr 2015 21:35:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8A8310224 for ; Thu, 16 Apr 2015 21:35:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Le0Hs_kKXNcQ for ; Thu, 16 Apr 2015 21:35:31 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6733B1023A for ; Thu, 16 Apr 2015 21:34:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54DFE10201 for ; Thu, 16 Apr 2015 21:34:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id a7KlIKe5cLxG for ; Thu, 16 Apr 2015 21:34:51 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 19325101EA for ; Thu, 16 Apr 2015 21:34:47 +0200 (CEST) Original-Received: from mail-lb0-x233.google.com (mail-lb0-x233.google.com [IPv6:2a00:1450:4010:c04::233]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t3GJYjm2001956 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 16 Apr 2015 21:34:46 +0200 Original-Received: by lbbzk7 with SMTP id zk7so66744312lbb.0 for ; Thu, 16 Apr 2015 12:34:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=MwRKIn15q1tYvP01X6OmqxXdknVzzdiONx3oRRFq77E=; b=BiwLjU4hPa4sHWNhTVVq61beWgtkNRR9pfUEGg8iUUheAwskkfLY+ozTLyq1yENdU/ K23gYvz/bEUpLvk+KRmEMgFGZCYkO8wKPfsGbI8cgDzTmLrHIJ4vReoXi/4GRvGm7tp+ wST27AojBHQvcOc8O36i/cHdeU/fIpYLIPbBpXoR9eaJaNLf1yKDMeF8wWy01mTEwKmY BSZPJrY/B3joaa5apFUN68O0Vlpp41MplEVYlIMatTrr89bQtvkbuGJKerUvU8KwSH4Q CFVyZlI9JSHO2K6FkU0+cjUW8DHoVOp/LWJv/aruVOJumpAFg8v21bEiYgQhQ8dpbTf3 1NJg== X-Received: by 10.152.238.43 with SMTP id vh11mr30038777lac.45.1429212885363; Thu, 16 Apr 2015 12:34:45 -0700 (PDT) Original-Received: by 10.112.53.200 with HTTP; Thu, 16 Apr 2015 12:34:45 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: V52h09vodEkMpzS_t6eVRpSpUXc X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c04::233; country=IE; latitude=53.3478; longitude=-6.2597; http://maps.google.com/maps?q=53.3478,-6.2597&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03OgHyKaW - 4f7f22c0e5ac - 20150416 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of christian.prim@gmail.com designates 2a00:1450:4010:c04::233 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:4010:c04::233; envelope-from=; helo=mail-lb0-x233.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91071 Archived-At: --===============1705020721== Content-Type: multipart/alternative; boundary=001a1133ae2c5731160513dc8ef7 --001a1133ae2c5731160513dc8ef7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Hans is it correct, that with the new beta one can just use rgb-colors using tikz or is there a bug preventing the usage of cmyk-colors as it used to work before? Thanks! Christian PS.: See mail below for MWE showing false cmyk colors in tikz. 2015-04-14 11:54 GMT+02:00 Christian Prim : > Thanks Hans for clarification. But even with simple context color models > (that worked before) I get other colors. > > MWE: > > \usemodule[tikz] > \setupbodyfont[40pt] > \starttext > \definecolor[mycol][c=3D0.23,m=3D0.58,y=3D0.88,k=3D0.45] > \definecolor[mycol_h][c=3D0.115,m=3D0.29,y=3D0.44,k=3D0.225] > \definecolor[mycol_q][c=3D0.055,m=3D0.145,y=3D0.22,k=3D0.1125] > \startcolor[mycol] > {\bfa =E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2=E2= =80=A2 Test} > \stopcolor > > \starttikzpicture > \fill[mycol] (0, 0) rectangle (2,4); > \fill[mycol_h] (2, 0) rectangle ++(2,4); > \fill[mycol_q] (4, 0) rectangle ++(2,4); > \stoptikzpicture > \stoptext > > I'm not so familiar with metafun, so I couldn't do the rectangle with > metafun (the different colors between context/metafun and tikz would > certainly be better visible so). But the bullet shows, that the text colo= r > isn't the same as the tikz-figure. But they should as they are identical. > Something must have changed in color handling. > > Christian > > 2015-04-14 10:42 GMT+02:00 Hans Hagen : > >> On 4/14/2015 10:29 AM, Christian Prim wrote: >> >>> Thanks Hans for the fix! >>> >>> I have noticed, that spotcolors can be used in tikz, but they are >>> darker. Is that wanted or a bug? >>> >> >> they will map onto cmyk or rgb depending on definitions ... don't expect >> advanced context color models to work with tikz (but they do work with >> metafun) >> >> >> Hans >> >> ----------------------------------------------------------------- >> Hans Hagen | PRAGMA ADE >> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com >> | www.pragma-pod.nl >> ----------------------------------------------------------------- >> ____________________________________________________________ >> _______________________ >> If your question is of interest to others as well, please add an entry t= o >> 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 : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ____________________________________________________________ >> _______________________ >> > > --001a1133ae2c5731160513dc8ef7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Hans

is it correct, that with the ne= w beta one can just use rgb-colors using tikz or is there a bug preventing = the usage of cmyk-colors as it used to work before?

Thanks!

Christian

PS.: = See mail below for MWE showing false cmyk colors in tikz.

2015-04-14 11:54 GMT+02:00 Chri= stian Prim <christian.prim@gmx.ch>:
Thanks Hans for clarification. But even with= simple context color models (that worked before) I get other colors.
<= br>
MWE:

\usemodule[tikz]
\setupbodyfont[40pt]
\starttext
\definecolor[mycol][c= =3D0.23,m=3D0.58,y=3D0.88,k=3D0.45]
\definecolor[mycol_h][c=3D0.1= 15,m=3D0.29,y=3D0.44,k=3D0.225]
\definecolor[mycol_q][c=3D0.055,m= =3D0.145,y=3D0.22,k=3D0.1125]
\startcolor[mycol]
{\bfa = =E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2=E2=80=A2 Te= st}
\stopcolor

\startti= kzpicture
\fill[mycol] (0, 0) rectangle (2,4);
\fill[my= col_h] (2, 0) rectangle ++(2,4);
\fill[mycol_q] (4, 0) rectangle = ++(2,4);
\stoptikzpicture
\stoptext

I'm not so familiar with metafun, so I couldn't do the= rectangle with metafun (the different colors between context/metafun and t= ikz would certainly be better visible so). But the bullet shows, that the t= ext color isn't the same as the tikz-figure. But they should as they ar= e identical. Something must have changed in color handling.

Christian

2015-04-14 10:42 GMT+02:00 Hans Hagen &l= t;pragma@wxs.nl><= /span>:
On 4/14/2015 10:29 AM, Christian Prim wro= te:
Thanks Hans for the fix!

I have noticed, that spotcolors can be used in tikz, but they are
darker. Is that wanted or a bug?

they will map onto cmyk or rgb depending on definitions ... don't expec= t advanced context color models to work with tikz (but they do work with me= tafun)


Hans

-------------------------------------------------------------= ----
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| www.p= ragma-pod.nl
-------------------------------------------------------------= ----
_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 :
http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/contextrev/=
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_____________________________________________________________= ______________________

=

--001a1133ae2c5731160513dc8ef7-- --===============1705020721== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1705020721==--