From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48615 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Strange interaction between textcolor and backgrounds in mkii Date: Fri, 20 Mar 2009 18:14:30 -0400 (EDT) Message-ID: References: <49C3E144.3050301@wxs.nl> 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 1237587505 14223 80.91.229.12 (20 Mar 2009 22:18:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Mar 2009 22:18:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Mar 20 23:19:42 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from mail-forward2.uio.no ([129.240.10.71]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lkn3z-0003Hm-Qp for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:19:39 +0100 Original-Received: from exim by mail-out2.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1Lkn2V-0004z1-NJ for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:18:07 +0100 Original-Received: from mail-mx6.uio.no ([129.240.10.47]) by mail-out2.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1Lkn2V-0004yy-MH for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:18:07 +0100 Original-Received: from mail-forward2.uio.no ([129.240.10.71]) by mail-mx6.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1Lkn2V-0001aB-JO for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:18:07 +0100 Original-Received: from exim by mail-out2.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1Lkn2B-0004t9-Fm for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:17:47 +0100 Original-Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out2.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1Lkn2B-0004t6-Em for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:17:47 +0100 Original-Received: from mail-forward2.uio.no ([129.240.10.71]) by mail-mx4.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1Lkn2B-0004HY-Di for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:17:47 +0100 Original-Received: from exim by mail-out2.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1Lkn1r-0004s0-GI for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:17:27 +0100 Original-Received: from mail-mx3.uio.no ([129.240.10.44]) by mail-out2.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1Lkn1r-0004rx-FG for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:17:27 +0100 Original-Received: from mail-forward1.uio.no ([129.240.10.70]) by mail-mx3.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1Lkn1r-0000nq-E8 for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:17:27 +0100 Original-Received: from exim by mail-out1.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1Lkn1X-000195-GM for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:17:07 +0100 Original-Received: from mail-mx1.uio.no ([129.240.10.29]) by mail-out1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1Lkn1X-000192-FC for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:17:07 +0100 Original-Received: from mail-forward2.uio.no ([129.240.10.71]) by mail-mx1.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1Lkn1X-0008Cj-E6 for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:17:07 +0100 Original-Received: from exim by mail-out2.uio.no with local-bsmtp (Exim 4.69) (envelope-from ) id 1Lkn1D-0004fZ-Bv for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:16:47 +0100 Original-Received: from mail-mx4.uio.no ([129.240.10.45]) by mail-out2.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1Lkn1D-0004fW-Ax for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:16:47 +0100 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by mail-mx4.uio.no with esmtp (Exim 4.69) (envelope-from ) id 1Lkn1C-00044R-IL for gctc-ntg-context-518@m.gmane.org; Fri, 20 Mar 2009 23:16:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7940A1FD60; Fri, 20 Mar 2009 23:15:45 +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 06120-08; Fri, 20 Mar 2009 23:15:18 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8DF871FD38; Fri, 20 Mar 2009 23:15:18 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CC32C1FD38 for ; Fri, 20 Mar 2009 23:15:17 +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 30306-08-2 for ; Fri, 20 Mar 2009 23:15:10 +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 334A61FD37 for ; Fri, 20 Mar 2009 23:15:10 +0100 (CET) Original-Received: from skycaptain.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.160]) by filter4-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2KMF8iA022343 for ; Fri, 20 Mar 2009 23:15:09 +0100 Original-Received: FROM dhcp128036150046.central.yale.edu (dhcp128036150046.central.yale.edu [128.36.150.46]) BY skycaptain.mr.itd.umich.edu ID 49C4156B.2A9D3.23767 ; 20 Mar 2009 18:15:07 -0400 In-Reply-To: <49C3E144.3050301@wxs.nl> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.93.160; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 196842575 - a9454707d1f1 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 X-UiO-Spam-info: not spam, SpamAssassin (score=0.0, required=5.0, autolearn=disabled, none, uiobl=NO, uiouri=NO) X-UiO-Scanned: D24A8D70B00C3BC1B9DE114587BA890323F8A060 X-UiO-SPAM-Test: remote_host: 131.211.172.88 spam_score: 0 maxlevel 200 minaction 2 bait 0 mail/h: 2 total 15249 max/h 26 blacklist 0 greylist 0 ratelimit 0 Xref: news.gmane.org gmane.comp.tex.context:48615 Archived-At: On Fri, 20 Mar 2009, Hans Hagen wrote: > 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} Thanks. This works in the bigger examples that I have. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________