ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Christian Feuersaenger <ludewich@users.sourceforge.net>
Subject: TikZ colors in cmyk mode broken
Date: Thu, 11 Jun 2015 19:12:20 +0200	[thread overview]
Message-ID: <CALBOmsYkFN7QSotdP96eBzSWFu1uDowQa7wE0SyEp+LC8Szn5A@mail.gmail.com> (raw)

Dear Hans (and other TikZ gurus),

Here's a small example that fails to compile:

\setupcolors
    [rgb=no,cmyk=yes]
\usemodule
    [tikz]
\starttext
\tikz\shade[shading=ball,ball color=yellow] (0,0) circle (1cm);
\stoptext

Do you have any idea how to fix this?


tex error       > error on line 570 in file
/path/to/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex: ! Illegal
unit of measure (pt inserted)

<to be read again>
,
<argument> 0.000,
      0.100
\pgfutil@emu@@unpack ...pt\pgf@xb =#2pt\pgf@xc =#3
                                                  pt
\pgfutil@emu@mix ... \string \color@ #1\endcsname
                                                  \pgf@ya =\pgf@xa \pgf@yb =...
\pgfutil@colorlet ...ix \pgf@marshal !white!\@nil
                                                  \xdef \pgf@marshal {\noexp...
l.570 ...l@colorlet{tikz@axis@middle}{gray!50!white}


560     \def\tikz@shade@angle{0}
561
562     \pgfdeclareverticalshading[tikz@axis@top,tikz@axis@middle,tikz@axis@bottom]{axis}{100bp}{%
563       color(0bp)=(tikz@axis@bottom);
564       color(25bp)=(tikz@axis@bottom);
565       color(50bp)=(tikz@axis@middle);
566       color(75bp)=(tikz@axis@top);
567       color(100bp)=(tikz@axis@top)}
568
569     \pgfutil@colorlet{tikz@axis@top}{gray}
570 >>  \pgfutil@colorlet{tikz@axis@middle}{gray!50!white}
571     \pgfutil@colorlet{tikz@axis@bottom}{white}
572
573     \pgfdeclareradialshading[tikz@ball]{ball}{\pgfqpoint{-10bp}{10bp}}{%
574      color(0bp)=(tikz@ball!15!white);
575      color(9bp)=(tikz@ball!75!white);
576      color(18bp)=(tikz@ball!70!black);
577      color(25bp)=(tikz@ball!50!black);
578      color(50bp)=(black)}
579
580     \pgfutil@colorlet{tikz@ball}{blue}

?

Mojca
___________________________________________________________________________________
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-06-11 17:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-11 17:12 Mojca Miklavec [this message]
2015-06-11 21:35 ` Hans Hagen

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=CALBOmsYkFN7QSotdP96eBzSWFu1uDowQa7wE0SyEp+LC8Szn5A@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ludewich@users.sourceforge.net \
    --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).