From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Strange interaction between textcolor and backgrounds in mkii
Date: Fri, 20 Mar 2009 18:14:30 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.00.0903201812570.11353@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <49C3E144.3050301@wxs.nl>
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
___________________________________________________________________________________
prev parent reply other threads:[~2009-03-20 22:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-20 2:22 Aditya Mahajan
2009-03-20 18:32 ` Hans Hagen
2009-03-20 22:14 ` Aditya Mahajan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.00.0903201812570.11353@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).