Re: [NTG-context] Renaming spot colours
Peter Rolf said
\definecolor[PANTONE 294CV] [c=1,m=.56,y=0,k=.18]
% test \framed[background=color, backgroundcolor={PANTONE 294CV}]{Test}
\color[PANTONE 294CV] Test
% the only thing that doesn't work is \PANTONE 294CV
Thanks very much for responding Peter! Interesting behaviour - the above will process in ConTeXt, but to match the Corel name I need a space after the '294' as well, which results in: -- [MP to PDF] (./ifs-fmar-bk-mpgraph.1 [unknown MP special 294] ! Missing number, treated as zero. <to be read again> C \@@cl@@r ->C V etc. -- But in any case - did you get a functioning PDF file when you used the above definition? Despite the fact that ConTeXt completes its run, I get a broken file with your definition. Maybe this is because I am using multiple tints of the spot? My color defs look like this: \setupcolors[rgb=no,cmyk=no,spot=yes,state=start] \definecolor[PANTONE 294CV][c=1,m=.56,y=0,k=.18] \definecolor[IFSblue][{PANTONE 294CV}][p=1] \definecolor[IFSbluetint][{PANTONE 294CV}][p=.2] \definecolor[IFSblueheadertint][{PANTONE 294CV}][p=.12] \definecolor[IFSbluetabletint][{PANTONE 294CV}][p=.15] As I say, even with this definition (missing the final space) the PDF result won't open in Acrobat (colour space error). Does your open? Thanks again, much appreciated. Duncan dh@capdm.com
Duncan Hothersall wrote:
Peter Rolf said
\definecolor[PANTONE 294CV] [c=1,m=.56,y=0,k=.18]
% test \framed[background=color, backgroundcolor={PANTONE 294CV}]{Test}
\color[PANTONE 294CV] Test
% the only thing that doesn't work is \PANTONE 294CV
Thanks very much for responding Peter! Interesting behaviour - the above will process in ConTeXt, but to match the Corel name I need a space after the '294' as well, which results in:
-- [MP to PDF] (./ifs-fmar-bk-mpgraph.1 [unknown MP special 294] ! Missing number, treated as zero. <to be read again> C \@@cl@@r ->C V etc. --
But in any case - did you get a functioning PDF file when you used the above definition? Despite the fact that ConTeXt completes its run, I get a broken file with your definition. Maybe this is because I am using multiple tints of the spot? My color defs look like this:
\setupcolors[rgb=no,cmyk=no,spot=yes,state=start] \definecolor[PANTONE 294CV][c=1,m=.56,y=0,k=.18] \definecolor[IFSblue][{PANTONE 294CV}][p=1] \definecolor[IFSbluetint][{PANTONE 294CV}][p=.2] \definecolor[IFSblueheadertint][{PANTONE 294CV}][p=.12] \definecolor[IFSbluetabletint][{PANTONE 294CV}][p=.15]
As I say, even with this definition (missing the final space) the PDF result won't open in Acrobat (colour space error). Does your open?
The problem is in the space in the name; since this name is used all over the place, an internal cleanup will not help, so this is why we have (yes, undocumented, so ... add to the wiki) \setupcolors[rgb=no,cmyk=no,spot=yes,state=start] \definecolor[IFSbluebase] [c=1,m=.56,y=0,k=.18] \doregisterspotcolorname{IFSbluebase}{PANTONE 294CV} \definecolor[IFSblue] [IFSbluebase][p=1] \definecolor[IFSbluetint] [IFSbluebase][p=.2] \definecolor[IFSblueheadertint][IFSbluebase][p=.12] \definecolor[IFSbluetabletint] [IFSbluebase][p=.15] \starttext \color[IFSbluetabletint]{Interesting} \stoptext So, use nice names internally and register the name using a low level feature; in a next version i will provide \definecolor[IFSbluebase] [c=1,m=.56,y=0,k=.18,e=PANTONE 294CV] (e for equivalent) which is nicer. [multitone colors are even nastier, but they are cleaned up automatically] Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Duncan Hothersall
-
h h extern