[NTG-context] TikZ colors in cmyk mode broken

Mojca Miklavec mojca.miklavec.lists at gmail.com
Thu Jun 11 19:12:20 CEST 2015

Dear Hans (and other TikZ gurus),

Here's a small example that fails to compile:

\tikz\shade[shading=ball,ball color=yellow] (0,0) circle (1cm);

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,
\pgfutil at emu@@unpack ...pt\pgf at xb =#2pt\pgf at xc =#3
\pgfutil at emu@mix ... \string \color@ #1\endcsname
                                                  \pgf at ya =\pgf at xa \pgf at yb =...
\pgfutil at colorlet ...ix \pgf at marshal !white!\@nil
                                                  \xdef \pgf at marshal {\noexp...
l.570 ...l at colorlet{tikz at axis@middle}{gray!50!white}

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



More information about the ntg-context mailing list