From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/18925 Path: news.gmane.org!not-for-mail From: h h extern Newsgroups: gmane.comp.tex.context Subject: Re: Renaming spot colours Date: Sun, 13 Mar 2005 20:36:09 +0100 Message-ID: <42349629.5070504@wxs.nl> References: <20050311142456.F072412847@ronja.ntg.nl> <4231AED0.50804@capdm.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1110758991 578 80.91.229.2 (14 Mar 2005 00:09:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2005 00:09:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 14 01:09:51 2005 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DAd7Y-0007Ep-Pg for gctc-ntg-context-518@m.gmane.org; Mon, 14 Mar 2005 01:07:44 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 48690127A0; Mon, 14 Mar 2005 01:08:41 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31222-05; Mon, 14 Mar 2005 01:08:41 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CCCD912877; Mon, 14 Mar 2005 00:33:23 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E60B81285C for ; Mon, 14 Mar 2005 00:33:22 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30785-01 for ; Mon, 14 Mar 2005 00:33:20 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id E6ACB12862 for ; Mon, 14 Mar 2005 00:08:05 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j2DN7x8Z005188 for ; Mon, 14 Mar 2005 00:07:59 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 6068217C21; Sun, 13 Mar 2005 23:52:34 +0100 (CET) Original-Received: from [127.0.0.1] (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id BC65E17B39 for ; Sun, 13 Mar 2005 22:52:30 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <4231AED0.50804@capdm.com> X-Virus-Scanned: ClamAV 0.80/744/Fri Mar 4 04:01:45 2005 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:18925 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:18925 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. > > 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 -----------------------------------------------------------------