From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95424 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Different colors in LaTeX and ConTeXt Date: Tue, 12 Jul 2016 14:23:34 -0400 (EDT) Message-ID: References: <5784DA25.4000206@gmail.com> <1b9dbb52-06c7-043c-9855-f13179f49a9f@wxs.nl> <5784F432.8010301@gmail.com> <959a3c5c-c11a-d8f9-f031-05f6b128313e@wxs.nl> <7151a210-c02b-3b15-cde7-cea5cdd67d5e@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-166198420-1468347815=:5341" X-Trace: ger.gmane.org 1468347863 4497 80.91.229.3 (12 Jul 2016 18:24:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jul 2016 18:24:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 12 20:24:13 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bN2Ls-00089p-CP for gctc-ntg-context-518@m.gmane.org; Tue, 12 Jul 2016 20:24:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7999B11790; Tue, 12 Jul 2016 20:23:52 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ywh_yrGZPF83; Tue, 12 Jul 2016 20:23:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 7D6AF11793; Tue, 12 Jul 2016 20:23:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DE64E11791 for ; Tue, 12 Jul 2016 20:23:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uZ5cMbA0woQs for ; Tue, 12 Jul 2016 20:23:48 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 05C1211790 for ; Tue, 12 Jul 2016 20:23:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2016-05-12; t=1468347815; bh=iAO4rNeQ8wRQplhAsnzmc2Jujm9SCLpVx9Vw/nQjWR8=; h=Date:From:To:Subject:In-Reply-To:References; b=Hdh7UbCi2rymF8CZ6RZx1SFUGk6uWsGvIqUfv3npyhcAxiJFpnh6yRCP01rfu5wAy mYdV1ffKWCao/ly/BifV5Fr+skJ6Sp5papWg2yoQ3rg/PoQrgxcpBHtEHFHpwklIqn 6Xxb6FJU77h4zo7B5sS1hkGqqhmxrcwXt2TmmgYTA2UPgkll4KXTNHGPqkyJ6mFj21 O6I0YFdjymBSN1/q1G+5jBbZr0JfRSqOwcmTHPvg7ixk8rf8iVUoO8RhnvGuVvaT5l r73nJu/9rZct/TbQ4bexFYQkPj60sBNtIcWfPYk5bCcRGFH9ET6BxA/fQSiuQYpB2+ jld2hCkXld8ew== Authentication-Results: tombraider.mr.itd.umich.edu; iprev=permerror policy.iprev=135.0.221.172 (unknown); auth=pass smtp.auth=adityam Original-Received: FROM [192.168.0.14] (unknown [135.0.221.172]) By tombraider.mr.itd.umich.edu ID 578535A7.9264D.11372; Authuser adityam; Tue, 12 Jul 2016 14:23:35 -0400 In-Reply-To: <7151a210-c02b-3b15-cde7-cea5cdd67d5e@wxs.nl> User-Agent: Alpine 2.02 (OSX 1266 2009-07-14) 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:95424 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-166198420-1468347815=:5341 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 12 Jul 2016, Hans Hagen wrote: > On 7/12/2016 5:07 PM, Aditya Mahajan wrote: >> On Tue, 12 Jul 2016, Hans Hagen wrote: >> >>> On 7/12/2016 3:44 PM, Henri Menke wrote: >>>> Dear Hans, >>>> >>>> thanks for your reply. Indeed there are color definitions in >>>> `pgfutil-context.def`. However, they are commented out with the=20 > message >>>> >>>>> % no need for x colors (users can load it if needed) >>>>> ... >>>>> %\pgfutil@definecolor{gray}{gray}{0.5} >>>> >>>> If I add >>>> >>>>> \csname pgfutil@definecolor\endcsname{gray}{gray}{0.5} >>>> >>>> to my document the gray shows up fine. So that's for sure a feasible >>>> workaround. >>>> >>>> Can you comment on the phrase =C2=BBno need for x colors (users can lo= ad it >>>> if needed)=C2=AB? I'm not quite sure what it means and it suggests th= at >>>> there exists a proper solution to my color problem. >>> >>> normally you want the same colors in tikz images as in context so then >>> defining them in tikz is creating incompatibilities (your case is the >>> reverse and a-typical) >> >> However, without such redefinitions, tikz does not understand ConTeXt >> colors. I use a similar workaround in my documents as well. > > I have no clue what you mean. > > \definecolor[red][g=3D1] > > \startTEXpage > \starttikzpicture > \fill[red] (0,0) circle (1cm); > \stoptikzpicture > \stopTEXpage > > works ok here and gives green. So, one can collect a list of colors=20 > defined in tikz in a colo-imp-tikz.mkiv and load that one if needed. I guess it is a bug with pgfplots rather than tikz (which also means that= =20 it may be easier to pursuade pgfplot maintainers to use low level tikz=20 interface, since tikz is already playing nice with context). \usemodule[tikz,pgfplots] \definecolor[red][g=3D1] \startmode[bug] \unprotect \pgfutil@definecolor{red} {rgb} {0,1,0} \protect \stopmode \starttext \startTEXpage \starttikzpicture \startaxis \addplot[color=3Dred] coordinates { (0,0) (1,1) }; \stopaxis \stoptikzpicture \stopTEXpage \stoptext Aditya --0-166198420-1468347815=:5341 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= --0-166198420-1468347815=:5341--