From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14864 Path: main.gmane.org!not-for-mail From: pawcoo Newsgroups: gmane.comp.tex.context Subject: Re: color in pdfTeX Date: Thu, 04 Mar 2004 23:24:34 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <4047ACA2.7080005@poczta.onet.pl> References: <40452A8E.2020704@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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1078439172 27098 80.91.224.253 (4 Mar 2004 22:26:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Mar 2004 22:26:12 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Thu Mar 04 23:26:07 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 1Az1I7-0000Fb-00 for ; Thu, 04 Mar 2004 23:26:07 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 342C710B2E; Thu, 4 Mar 2004 23:23:50 +0100 (MET) Original-Received: from acchsh.com (dilbert.acchsh.krakow.pl [62.233.163.90]) by ref.ntg.nl (Postfix) with ESMTP id 446F210B0D for ; Thu, 4 Mar 2004 23:22:37 +0100 (MET) Original-Received: from poczta.onet.pl (ch170.neoplus.adsl.tpnet.pl [::ffff:80.54.204.170]) by acchsh.com (Postfix) with ESMTP id 06C1D173758 for ; Thu, 4 Mar 2004 23:24:39 +0100 (CET) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: 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:14864 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14864 > On Wed, 3 Mar 2004, pawcoo wrote: > > >>please, consider the following simple example of pdftex code: >> >>\pdfliteral{0 1 0 0 k} % Magenta (ugly) >>\hrule height 1pt >>\hrule height 1.1pt >>\end >> >>The upper hairline remains black. What should I do to colorize thin >>lines also? > > > 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: > > \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 Any clues? Regards, Pawe/l