From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/8069 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: color question Date: Mon, 27 May 2002 23:02:51 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020527230058.02cfad30@remote-1> References: <200205230403.GAA25434@bar.loria.fr> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035398505 24540 80.91.224.250 (23 Oct 2002 18:41:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:41:45 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: "Denis B. Roegel" In-Reply-To: <200205230403.GAA25434@bar.loria.fr> Xref: main.gmane.org gmane.comp.tex.context:8069 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:8069 At 06:03 AM 5/23/2002 +0200, you wrote: >When I try > >\startcolor[blue] >\rightaligned{\framed[background=screen]{historic background}} >\stopcolor the problem seems to be related to screens, background=color,backgroundcolor=red works ok, (screens are normally only used in (page) backgrounds and there they don't nest, and since they don't form a color stack (just raw gray scale switches) this goes wrong inside color, maybe i should implement a stack) Hans ================ can go into cont-new.tex ================ \def\setrastercolor#1% {\edef\@@cl@@s{#1}% \ifx\@@cl@@s\empty \let\@@rsraster \fi \setevalue{\??cr\??rs}{\colorSpattern}} \def\localstartraster[#1]% {\bgroup\setrastercolor{#1}\localstartcolor[\??rs]} \def\localstopraster {\localstopcolor\egroup} \def\startraster[#1]% {\bgroup\setrastercolor{#1}\startcolor[\??rs]} \def\stopraster {\stopcolor\egroup} This alternative is slower, but run on top of the color mechanism ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------