From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14866 Path: main.gmane.org!not-for-mail From: Hartmut Henkel Newsgroups: gmane.comp.tex.context Subject: Re: color in pdfTeX Date: Thu, 4 Mar 2004 23:56:10 +0100 (CET) Sender: ntg-context-admin@ntg.nl Message-ID: References: <40452A8E.2020704@poczta.onet.pl> <4047ACA2.7080005@poczta.onet.pl> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1078441114 31658 80.91.224.253 (4 Mar 2004 22:58:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Mar 2004 22:58:34 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Mar 04 23:58:15 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Az1nD-0002aG-00 for ; Thu, 04 Mar 2004 23:58:15 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 5174810B31; Thu, 4 Mar 2004 23:55:58 +0100 (MET) Original-Received: from hahepc1.hahe (unknown [213.221.78.62]) by ref.ntg.nl (Postfix) with ESMTP id 1BE2010B0D for ; Thu, 4 Mar 2004 23:53:59 +0100 (MET) Original-Received: from hahe (helo=localhost) by hahepc1.hahe with local-esmtp (Exim 4.14) id 1Az1lC-0000SX-KY for ntg-context@ntg.nl; Thu, 04 Mar 2004 23:56:10 +0100 Original-To: ntg-context@ntg.nl In-Reply-To: <4047ACA2.7080005@poczta.onet.pl> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14866 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14866 On Thu, 4 Mar 2004, pawcoo wrote: > > Lines with width <= 1 bp are stroked by pdftex, lines wider than that > > are filled (procedure pdf_set_rule). Stroking CMYK color is set by K, > > nonstroking by k, so you need both: Note, forgot this: This only affects the \hrule and \vrule primitives. When you do lines by literals, you are on your own... > > \pdfliteral{0 1 0 0 k} > > \pdfliteral{0 1 0 0 K} > > Thanks! That works. I'll dare to ask one more question. How to use > colors in (some kind of) groups, meaning localy? In example, how to > set some nice color for given object only (word, letter or rule)? Or > should I always say something like > > \pdfliteral{0 1 0 0 k} > colorized text > \pdfliteral{0 0 0 1 k} % come back to black Seems to be currently the only way. The \pdfliteral{} primitives are done between two x/y transformations, so you can't use q/Q grouping. And the \pdfliteral direct{} variant doesn't help either, as it comes before BT, but also _before_ ET, so grouping would be broken also. Probably something to consider for a change... Regards, Hartmut