From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91028 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: Tue, 14 Apr 2015 11:54:08 +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="===============1954373131==" X-Trace: ger.gmane.org 1429005324 32400 80.91.229.3 (14 Apr 2015 09:55:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Apr 2015 09:55:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 14 11:55:11 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 1YhxYd-0002gO-Mu for gctc-ntg-context-518@m.gmane.org; Tue, 14 Apr 2015 11:55:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D2CDA10221 for ; Tue, 14 Apr 2015 11:54:57 +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 RdGyMnsp_Yuq for ; Tue, 14 Apr 2015 11:54:56 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 91DA51023E for ; Tue, 14 Apr 2015 11:54:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 78C1E101FA for ; Tue, 14 Apr 2015 11:54:16 +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 Lhz548PJxcxH for ; Tue, 14 Apr 2015 11:54:14 +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 8825A101EA for ; Tue, 14 Apr 2015 11:54:14 +0200 (CEST) Original-Received: from mail-lb0-x22a.google.com (mail-lb0-x22a.google.com [IPv6:2a00:1450:4010:c04::22a]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t3E9s9E0024450 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 14 Apr 2015 11:54:11 +0200 Original-Received: by lbcga7 with SMTP id ga7so3741078lbc.1 for ; Tue, 14 Apr 2015 02:54:09 -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=uQII9QeOzAx2UFBAim9hUTuxEIlc4t20wCx75nxBSnA=; b=x+2e1UBa13EWCjtPWQO85PK2H/yIuIs9oHBqMMbawX5mLGxJNsth2NxalLpSdK2jCQ 1/Q/SfAENrlRK5STP6kWpAPG0RUI+ZCOl5uKmRjPnx6kru42GtW22N131lQtDTpuK0XT h74wQKxFHn0A9wYuqy3BKDvV9ejojQlJmJgiunZMGDmd9ZCMJv7MB7fXlvuSZE/0Ib2Y KeLYFOcEQVomf6MSwwyPUZk6Gds1GfVCG+meKqTxeR28TFpyXn6isQop5UaS0xrC7mI9 9QsSpva/ZYA7Xeg9mSikB+5g/Q2Id+xJNEwF8IuXzS9lEYWQCWStU7B8u/JtfhvZstpz 1ayw== X-Received: by 10.152.116.102 with SMTP id jv6mr17130921lab.50.1429005248999; Tue, 14 Apr 2015 02:54:08 -0700 (PDT) Original-Received: by 10.112.53.200 with HTTP; Tue, 14 Apr 2015 02:54:08 -0700 (PDT) In-Reply-To: <552CD2DA.80500@wxs.nl> X-Google-Sender-Auth: jORKeSXWMzXHDUgqYJNpca3zGio X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c04::22a; 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: 03OfJSa49 - c90f02a4516f - 20150414 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of christian.prim@gmail.com designates 2a00:1450:4010:c04::22a as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:4010:c04::22a; envelope-from=; helo=mail-lb0-x22a.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:91028 Archived-At: --===============1954373131== Content-Type: multipart/alternative; boundary=001a11c3654e3fb5ad0513ac366f --001a11c3654e3fb5ad0513ac366f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 color 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 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ > --001a11c3654e3fb5ad0513ac366f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Hans for clarification. But even with simple contex= t color models (that worked before) I get other colors.

= MWE:

\usemodule[tikz]
\setupbodyfon= t[40pt]
\starttext
\definecolor[mycol][c=3D0.23,m=3D0.5= 8,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=3D= 0.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[myc= ol] (0, 0) rectangle (2,4);
\fill[mycol_h] (2, 0) rectangle ++(2,= 4);
\fill[mycol_q] (4, 0) rectangle ++(2,4);
\stoptikzp= icture
\stoptext

I'm not so familiar= with metafun, so I couldn't do the rectangle with metafun (the differe= nt colors between context/metafun and tikz would certainly be better visibl= e so). But the bullet shows, that the text color isn't the same as the = tikz-figure. But they should as they are identical. Something must have cha= nged in color handling.

Christian

2015-04-14 10:42 GMT+02:00 = Hans Hagen <pragma@wxs.nl>:
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 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
_____________________________________________________________= ______________________

--001a11c3654e3fb5ad0513ac366f-- --===============1954373131== 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= --===============1954373131==--