ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Christian Prim <christian.prim@gmx.ch>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Date: Tue, 14 Apr 2015 10:29:55 +0200	[thread overview]
Message-ID: <CA+9XOxo2LLXAWG1A9rkE+HECxcPWYdturz5_wPrVVV3=ZADE8w@mail.gmail.com> (raw)
In-Reply-To: <552C2C44.3060101@wxs.nl>


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

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?

MWE:

\usemodule[tikz]
\starttext
\definecolor[gruen][c=0.52,y=0.86]
\definespotcolor[mycol][gruen][p=1]
\definespotcolor[mycol_h][gruen][p=0.5]
\definespotcolor[mycol_q][gruen][p=0.25]
\startcolor[mycol]
{\bfa Test Test Test Test 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 expect the first rectangle to have the same color as the (wanted) color
of the text. But the color of the text is closer to the color of the
rectangle in the middle (50%).

Christian

2015-04-13 22:51 GMT+02:00 Hans Hagen <pragma@wxs.nl>:

> On 4/13/2015 7:45 PM, Mojca Miklavec wrote:
>
>> Hi,
>>
>> The following example works in MkII and it works in TeX Live 2014, but
>> it fails with the latest beta (it draws a black rectangle instead of
>> using the defined colour):
>>
>> \usemodule[tikz]
>> \starttext
>> \definecolor[mycol][r=0.9,g=0.8,b=0.8]
>> \starttikzpicture
>> \fill[mycol] (0, 0) rectangle (2,4);
>> \stoptikzpicture
>> \stoptext
>>
>> It would be really nice to fix this in time for TeX Live 2015.
>>
>
> Hm, i'm a bit puzzled why some suggested patched are nto in the
> distribution. Anyway, attached a more modern variant
>
> you need a beta that i just uploaded because i found out that when tijz
> predefines some mixed colors it assumes rgb color space
>
> your example then runs ok here
>
> 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
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2015-04-14  8:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-13 17:45 Mojca Miklavec
2015-04-13 18:13 ` Christian Prim
2015-04-13 20:51 ` Hans Hagen
2015-04-14  8:29   ` Christian Prim [this message]
2015-04-14  8:42     ` Hans Hagen
2015-04-14  9:54       ` Christian Prim
2015-04-16 19:34         ` Christian Prim
2015-04-16 19:58           ` Hans Hagen
2015-04-16 21:29             ` Christian Prim
2015-04-16 23:27               ` Hans Hagen
2015-04-24 13:05                 ` Christian Prim
2015-04-25 21:18                   ` Hans Hagen
2015-05-14  7:56                     ` Christian Prim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+9XOxo2LLXAWG1A9rkE+HECxcPWYdturz5_wPrVVV3=ZADE8w@mail.gmail.com' \
    --to=christian.prim@gmx.ch \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).