From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48611 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Strange interaction between textcolor and backgrounds in mkii Date: Fri, 20 Mar 2009 19:32:36 +0100 Message-ID: <49C3E144.3050301@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237574006 4290 80.91.229.12 (20 Mar 2009 18:33:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Mar 2009 18:33:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 20 19:34:43 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LkjYC-0005Xd-8J for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 19:34:36 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C0D011FD09; Fri, 20 Mar 2009 19:33:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21715-01-3; Fri, 20 Mar 2009 19:32:45 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E17651FCF6; Fri, 20 Mar 2009 19:32:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 36AC61FCF6 for ; Fri, 20 Mar 2009 19:32:44 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21715-01-2 for ; Fri, 20 Mar 2009 19:32:37 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by ronja.ntg.nl (Postfix) with ESMTP id D430F1FCF4 for ; Fri, 20 Mar 2009 19:32:37 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter4-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2KIWaCO013324 for ; Fri, 20 Mar 2009 19:32:36 +0100 Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-1 (SurgeMail 3.9e) with ESMTP id 21360-1840426 for ; Fri, 20 Mar 2009 19:32:36 +0100 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Originating-IP: 10.100.1.100 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=16; city=Dronten; latitude=52.5333; longitude=5.7167; http://maps.google.com/maps?q=52.5333,5.7167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 196789004 - e118a5e29062 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48611 Archived-At: Aditya Mahajan wrote: > Hi Hans, > > Something has changed recently with the mkii color model, due to which > page backgrounds do not change. (I am guessing that this is a grouping > issue, but then colors are like a black box to me). Consider the > following example > > \setuppapersize[S6][S6] > \setupcolors[state=start] > > \definecolor [simpleslidestextcolor][s=0] > \setupcolors[textcolor=simpleslidestextcolor] > > \startuseMPgraphic{simpleslides:MP:horizontal} > StartPage ; > fill Page withcolor 0.5white ; > StopPage ; > \stopuseMPgraphic > > \defineoverlay > [simpleslides:background:title] > [\useMPgraphic{simpleslides:MP:horizontal}] > > \starttext > test \page > > \setupbackgrounds[page][background={simpleslides:background:title}] > > test again > \stoptext > > In MKII, the background of the second page does not change. This used to > work until a few months ago (around Dec, 2008) but stopped working after > that. (It does not work in the Jan 18 version that I have). > > In MKIV, this works fine. this is one of those messy areas where no robust solution is possible the same can happen with header and footers and such (it does not happen with color in mkiv because we use attributes) I wonder, if we add \page here we might solve this kind of problems but it might also have other side effects ... let's do it for a while (i probably need to move some code) \def\stoptext {\global\advance\textlevel\minusone \ifnum\textlevel>\zerocount \else \page % new, flushes headers, colors etc etc etc \the\everystoptext \expandafter\finalend \fi} ----------------------------------------------------------------- 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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________